uk.ac.man.cs.rainbow.simulator.rasm
Class Shrz
java.lang.Object
|
+--uk.ac.man.cs.rainbow.simulator.Instruction
|
+--uk.ac.man.cs.rainbow.simulator.RASM.BinaryIntFunction
|
+--uk.ac.man.cs.rainbow.simulator.rasm.Shrz
- All Implemented Interfaces:
- Serializable
- public class Shrz
- extends RASM.BinaryIntFunction
Shift right with zero extension and no check for underflow. Can
take any enumerable values as input, and generates integer
output.
x y
x>>>y
- See Also:
- Serialized Form
Method Summary |
protected int |
execute(int x,
int y)
Perform an integer binary operation. |
String |
toString()
|
Shrz
public Shrz()
Shrz
public Shrz(RASMCode code)
toString
public String toString()
- Overrides:
toString
in class Object
execute
protected int execute(int x,
int y)
- Description copied from class:
RASM.BinaryIntFunction
- Perform an integer binary operation.
- Overrides:
execute
in class RASM.BinaryIntFunction
- Following copied from class:
uk.ac.man.cs.rainbow.simulator.RASM.BinaryIntFunction
- Parameters:
x
- The first (lower on the stack) value argument.y
- The second (higher on the stack) value argument.- Returns:
- The result of the operation.