Re: Program Encapsulation on a HP-42S (Was: Re: QPI for the HP-42S) Message #7 Posted by Victor Koechli on 2 Sept 2003, 8:04 p.m., in response to message #6 by Erik Ehrling (Sweden)
No, Werner is right, I've noticed this too. The lines 381 and 383 are too much. Consider: If you do
RCL "T_QPI"
STO ST_T
you will restore the saved T register contents directly to T. But if you now execute
RCL "Z_QPI"
the stack is lifted and the contents of T are lost. Instead you should just do
RCL "T_QPI"
RCL "Z_QPI"
RCL "Y_QPI"
RCL "X_QPI"
as Werner suggests, and the entire stack will be restored.
Cheers, Victor
|