uk.ac.man.cs.rainbow.simulator.rasm
Class Gt
java.lang.Object
|
+--uk.ac.man.cs.rainbow.simulator.Instruction
|
+--uk.ac.man.cs.rainbow.simulator.RASM.Comparison
|
+--uk.ac.man.cs.rainbow.simulator.rasm.Gt
- All Implemented Interfaces:
- Serializable
- public class Gt
- extends RASM.Comparison
Greater than.
x y
x>y
- See Also:
Data.Comparable
, Serialized Form
Method Summary |
protected boolean |
compare(int compareResult)
Determine the meaning of the result of a comparison between
values. |
String |
toString()
|
Gt
public Gt()
Gt
public Gt(RASMCode code)
toString
public String toString()
- Overrides:
toString
in class Object
compare
protected boolean compare(int compareResult)
- Description copied from class:
RASM.Comparison
- Determine the meaning of the result of a comparison between
values.
- Overrides:
compare
in class RASM.Comparison
- Following copied from class:
uk.ac.man.cs.rainbow.simulator.RASM.Comparison
- Parameters:
executeResults
- Negative if the first argument is less than the
second, positive if the first argument is greater than
the second, and zero otherwise.- Returns:
- The boolean to push onto the stack.