2-2-7

Special Functions

kStacks

The unit employs memory blocks, called stacks, for storage of low priority values and commands. There is a 10-level numeric value stack, a 26-level command stack, and a 10- level program subroutine stack. An error occurs if you perform a calculation so complex that it exceeds the capacity of available numeric value stack or command stack space, or if execution of a program subroutine exceeds the capacity of the subroutine stack.

Example

Numeric Value Stack

Command Stack

 

 

 

 

 

 

 

 

 

1

2

 

 

b

 

 

 

 

 

 

 

 

 

2

3

 

 

c

(

 

 

3

4

 

 

d

(

 

 

4

5

 

 

e

+

 

 

5

4

 

 

f

 

 

 

 

 

 

 

 

 

 

...

 

 

 

g

(

 

 

 

 

 

 

h

+

 

 

 

 

 

 

...

 

 

 

 

 

 

 

 

 

 

#Calculations are performed according to the priority sequence. Once a calculation is executed, it is cleared from the stack.

#Storing a complex number takes up two numeric value stack levels.

#Storing a two-byte function takes up two command stack levels.

20050901