egetvar

Class: Ext1-X

(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 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.



This page was last updated on January 20, 2006 8:09 PM.
This work is supported by the ONR MURI Project CONTESSA and the NSF under grant number CCR-9970939.