Stack Manipulation Functions - HP -15C Owner's Handbook Manual

Hide thumbs Also See for HP-15C:
Table of Contents

Advertisement

Section 3: The Memory Stack, LAST X, and Data Storage
Any number that is keyed in or results from the execution of a numeric
function is placed into the display (X-register). This action will cause
numbers already in the stack to lift, remain in the same register, or drop,
depending upon both the immediately preceding and the current operation.
Numbers in the stack are stored on a last-in, first-out basis. The three stacks
drawn below illustrate the three types of stack movement. Assume x, y, z,
and t represent any numbers which may be in the stack.
T
Z
Y
X
Keys:
Notice the number in the T-register remains there when the stack drops,
allowing this number to be used repetitively as an arithmetic constant.

Stack Manipulation Functions

v. Pressing v separates two numbers keyed in one after the
other. It does so by lifting the stack and copying the number in the display
(X-register) into the Y-register. The next number entered then writes over
the value in the X-register; there is no stack lift. The example below shows
what happens as the stack is filled with the numbers 1, 2, 3, 4. (The
Stack Lift
t
z
y
x
|$
T
Z
Y
X
Keys:
No Stack Lift or Drop
lost
z
T
Z
y
Y
x
π
X
Stack Drop
t
z
y
x
+
t
z
y
x
¤
t
t
z
x + y
33
t
z
y
x

Advertisement

Table of Contents
loading

Table of Contents