edu.arizona.cs.mbel.instructions
Class XOR

java.lang.Object
  extended byedu.arizona.cs.mbel.instructions.Instruction
      extended byedu.arizona.cs.mbel.instructions.XOR

public class XOR
extends Instruction

Exclusive OR instruction.
Stack transition:
..., value1, value2 --> result


Field Summary
protected static int[] OPCODE_LIST
           
static int XOR
           
 
Constructor Summary
XOR()
          Creates a new XOR object
XOR(int opcode, ClassParser parse)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getName()
          Returns the string representation of this instruction (may vary instance-to-instance)
 
Methods inherited from class edu.arizona.cs.mbel.instructions.Instruction
emit, getLength, getOpcode, readInstruction, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

XOR

public static final int XOR
See Also:
Constant Field Values

OPCODE_LIST

protected static final int[] OPCODE_LIST
Constructor Detail

XOR

public XOR()
    throws InstructionInitException
Creates a new XOR object


XOR

public XOR(int opcode,
           ClassParser parse)
    throws java.io.IOException,
           InstructionInitException
Method Detail

getName

public java.lang.String getName()
Description copied from class: Instruction
Returns the string representation of this instruction (may vary instance-to-instance)

Specified by:
getName in class Instruction
Returns:
a string representing this instruction (i.e. "cpblk")

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class Instruction