Package jminusminus

Class CLComparisonInstruction

java.lang.Object
jminusminus.CLInstruction
jminusminus.CLComparisonInstruction

class CLComparisonInstruction extends CLInstruction
Representation for COMPARISON instructions.
  • Constructor Details

    • CLComparisonInstruction

      public CLComparisonInstruction(int opcode, int pc)
      Constructs a CLComparisonInstruction object.
      Parameters:
      opcode - the opcode for this instruction.
      pc - index of this instruction within the code array of a method.
  • Method Details

    • toBytes

      public ArrayList<Integer> toBytes()
      Returns the bytecode for this instruction.
      Specified by:
      toBytes in class CLInstruction
      Returns:
      the bytecode for this instruction.