add

Class: B

(legend)

Operand Stack Heap Condition Codes
  • Initial (operands):
    variable 1
    variable 2
  • Final (return values):
    variable

The heap is read if a variable is a location to determine which axis to multiply.

  • 1 = x
  • 2 = y
  • both otherwise

N/A

Description

Pop two variables off the stack and push their sum onto the stack.

If adding a location and value, heap[15] is used: if 0 add value to both x and y, if 1 add only to x, if 2 add only to y.



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