Package iota
Class NMarvinLoad
java.lang.Object
iota.NMarvinInstruction
iota.NMarvinLoad
Representation of an instruction for loading a value from memory into a register.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
Offset (from base memory address) of the value to load (-1 if irrelevant, ie, if mnemonic is popr).Where to load.Base memory address.Fields inherited from class iota.NMarvinInstruction
mnemonic, mnemonic2Op, pc
-
Constructor Summary
ConstructorsConstructorDescriptionNMarvinLoad
(String mnemonic, NPhysicalRegister rX, NPhysicalRegister rY, int N) Constructs an NMarvinLoad object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(PrintWriter out) Writes this instruction to the given output stream.
-
Field Details
-
rX
Where to load. -
rY
Base memory address. -
N
public int NOffset (from base memory address) of the value to load (-1 if irrelevant, ie, if mnemonic is popr).
-
-
Constructor Details
-
NMarvinLoad
Constructs an NMarvinLoad object.- Parameters:
mnemonic
- instruction mnemonic.rX
- where to load.rY
- Base memory address.N
- offset (from base memory address) of the value to load.
-
-
Method Details
-
write
Writes this instruction to the given output stream.- Specified by:
write
in classNMarvinInstruction
- Parameters:
out
- output stream.
-