Package iota
Class NMarvinInc
java.lang.Object
iota.NMarvinInstruction
iota.NMarvinInc
Representation of an instruction for incrementing (or decrementing) a register (target) by a constant value.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
Increment (or decrement) value.Target register.Fields inherited from class iota.NMarvinInstruction
mnemonic, mnemonic2Op, pc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(PrintWriter out) Writes this instruction to the given output stream.
-
Field Details
-
rX
Target register. -
N
public int NIncrement (or decrement) value.
-
-
Constructor Details
-
NMarvinInc
Constructs an NMarvinInc object.- Parameters:
rX
- target register.N
- increment (or decrement) value.
-
-
Method Details
-
write
Writes this instruction to the given output stream.- Specified by:
write
in classNMarvinInstruction
- Parameters:
out
- output stream.
-