egetvar |
Class: Ext1-X |
(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 6 bits of the instruction. Since the heap only has 20 positions, only address 0-19 are valid
If the position in the heap is empty, nothing is pushed onto the stack and the condition code is set to 0.
This instruction does not remove the variable from the heap.