Why is StackReg changing after examine_registers() is called?