Differences

This shows you the differences between two versions of the page.

Link to this comparison view

manual:chapter2:stack [2019/12/01 14:34] (current)
jojo1973 created
Line 1: Line 1:
 +===== Working with the stack =====
  
 +The stack is composed by a number of __levels__, each one capable of storing a single [[manual:​chapter3|object]]. Since the stack is the place where data is created, manipulated and computed, its importance is paramount and unsurprisingly many commands are devoted to move, duplicate and delete data on the stack.
 +
 +==== RPL, RPN and Extended RPN modes ====
 +
 +**newRPL** operates the stack in three different modes which differ by the number of levels and the mechanics of the [[manual:​chapter2:​stack#​stack-mechanics|stack movements]]: ​
 +
 +  * **RPL mode** has been introduced by the HP28C/S calculator and used in all following calculators up to the HP50g. It is characterized by a stack with a number of levels limited only by the available memory. The lack of a //top level// simplifies somewhat the management of the stack;
 +  * **RPN mode** is __inspired__ but **not equivalent** to the stack mechanics implemented in most of the calculators produced by HP during its history. Its distinctive feature is the limited number of stack levels (just 4) and the [[manual:​chapter2:​stack#​stack-lift-and stack-drop|stack drop]];
 +  * **Extended RPN mode** is an extension of regular RPN mode, the only difference is the number of stack levels: 8 levels instead of 4.
 +  ​
 +The current stack mode is controlled by flags [[manual:​appendix:​flags#​flag-28|-28]] and [[manual:​appendix:​flags#​flag-29|-29]].
 +
 +^ Stack mode  ^ [[manual:​appendix:​flags#​flag-28|flag -28]]  ^ [[manual:​appendix:​flags#​flag-29|flag -29]]  ^
 +^ RPL  | Clear  | ---  |
 +^ RPN  | Set  | Clear  |
 +^ Extended RPN  | Set  | Set  |
 +
 +==== Stack mechanics ====
  • manual/chapter2/stack.txt
  • Last modified: 2019/12/01 14:34
  • by jojo1973