inc

Class: B

(legend)

Operand Stack Heap Condition Codes
  • Initial (operands):
    value or location
  • Final (return values):
    incremented value or location

heap [11] may be used to determine whether to increment the x (1), y (2), or both (any other value) axis when the top of the stack contains a location.

  • x - heap[11] = 1
  • y - heap[11] = 2
  • both - heap[11] != 1 or 2
N/A

Description

Pops a value or location off the operand stack and pushes the value incremented back onto the stack. If the top of the stack is a location, it increments the location as follows: If heap[11] = <value:1> increment only x, if heap[11] = <value:2> increment only y, otherwise increment both x and y



This page was last updated on December 7, 2005 3:50 AM.
This work is supported by the ONR MURI Project CONTESSA and the NSF under grant number CCR-9970939.