ceq

Class: B

(legend)

Operand Stack Heap Condition Codes
  • Initial (operands):
    variable
    variable
  • Final (return values):
    N/A
N/A

1 = the two variables are equal

0 = the two variables are not equal

Description

Pops two variables off the stack. Set the condition to 1 if the two variables have the same type and value. If one variable is an AgentID and the other a Value, the condition is set to true if the AgentID's unique id is equal to the value.

If the two values are both of type location and heap[11] contains a value, the value determines what to compare: 1 = x only, 2 = y only, otherwise both axies are compared.



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