Package iota
Class NMarvinArithmetic
java.lang.Object
iota.NMarvinInstruction
iota.NMarvinArithmetic
Representation of an arithmetic instruction of the form "x = y operation z".
-
Field Summary
FieldsModifier and TypeFieldDescriptionResult.Operand 1.Operand 2.Fields inherited from class iota.NMarvinInstruction
mnemonic, mnemonic2Op, pc
-
Constructor Summary
ConstructorsConstructorDescriptionNMarvinArithmetic
(String mnemonic, NPhysicalRegister rX, NPhysicalRegister rY, NPhysicalRegister rZ) Constructs an NMarvinArithmetic object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(PrintWriter out) Writes this instruction to the given output stream.
-
Field Details
-
rX
Result. -
rY
Operand 1. -
rZ
Operand 2.
-
-
Constructor Details
-
NMarvinArithmetic
public NMarvinArithmetic(String mnemonic, NPhysicalRegister rX, NPhysicalRegister rY, NPhysicalRegister rZ) Constructs an NMarvinArithmetic object.- Parameters:
mnemonic
- instruction mnemonic.rX
- result.rY
- operand 1.rZ
- operand 2.
-
-
Method Details
-
write
Writes this instruction to the given output stream.- Specified by:
write
in classNMarvinInstruction
- Parameters:
out
- output stream.
-