getvar

Class: V

(legend)

Operand Stack Heap Condition Codes
  • Initial (operands):
    N/A
  • Final (return values):
    Variable
Retrieves a variable from the heap.

0 - no variable stored at that position in heap

1 - success

Description

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.



This page was last updated on January 10, 2006 1:48 AM.
This work is supported by the ONR MURI Project CONTESSA and the NSF under grant number CCR-9970939.