getvar |
Class: V |
(legend) |
Operand Stack | Heap | Condition Codes |
|
Retrieves a variable
from the heap. |
0 - no variable stored at that position in heap 1 - success |
Copies a variable from the heap and pushes it onto the stack. The address within the heap is specified by the last 4 bits of the instruction. Since there is only a 16-word heap, only addresses 0-f are valid.
If the position in the heap is empty, nothing is pushed onto the stack and the condition code is set to 0.