The Museum of HP Calculators

HP Forum Archive 17

[ Return to Index | Top of Index ]

stack preservation
Message #1 Posted by Arne Halvorsen (Norway) on 21 Sept 2007, 7:12 a.m.

I am a bit stuborn on having (some) of my programs behave as a built in function related to stack and lastx register.

What I have done so fare is to write a subroutine that saves the stack in the indirect registers (will not use the valuable A-H,K-Z for such stuff).

Then I found this thread that offers an elegant second option by Valentin Albillo when you can do it all in an equation.

In the great danger of saying something well known; the x<> operation do come to the rescue if one need to resort to storing the stack in indirect registers.

Stack saving program (challenge?)
Message #2 Posted by Arne Halvorsen (Norway) on 22 Sept 2007, 8:50 a.m.,
in response to message #1 by Arne Halvorsen (Norway)

Program that saves stack in indirect regs here.

Decided did not want to use vector packing and given want tailing part of program to be used as standalone stack recall routine have a feeling must use number of steps...

But I could be wrong? :-)

Edited: 22 Sept 2007, 8:53 a.m.

[ Return to Index | Top of Index ]

Go back to the main exhibit hall