stack preservation



#3

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.


#4

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.


Possibly Related Threads...
Thread Author Replies Views Last Post
  HP 50g - select characters on the stack, copy/paste Sean Freeman 7 1,431 11-20-2013, 07:11 AM
Last Post: Sean Freeman
  Prime: Placing more than 1 item on the RPN stack in a single program? John Colvin 4 1,109 11-19-2013, 08:59 AM
Last Post: Miguel Toro
  emu48 - copy stack doesn't work (as expected) Thomas Radtke 2 1,052 11-11-2013, 02:19 PM
Last Post: Thomas Radtke
  HP Prime Stack operations from within a program John Colvin 1 746 11-08-2013, 09:45 PM
Last Post: Helge Gabert
  Prime: Anyway to refresh stack? kris223 5 1,158 10-16-2013, 05:09 PM
Last Post: kris223
  hp prime - sending program results to the stack giancarlo 6 1,146 10-15-2013, 02:00 AM
Last Post: Giancarlo
  HP Prime - RPN stack access from programs? Mike Mander (Canada) 10 1,661 09-30-2013, 11:20 AM
Last Post: steindid
  WP-34S: Stack after divide by 0 Marcel Samek 4 778 08-24-2013, 11:57 PM
Last Post: Paul Dale
  Little curiosity: why the fourth stack register is called "T"? Antlab 34 4,186 07-03-2013, 04:49 PM
Last Post: Walter B
  On calculator preservation (LCD darkening, pouches...) Marc Ferrer (France) 4 972 12-04-2012, 08:01 AM
Last Post: Marc Ferrer (France)

Forum Jump: