|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zmpp.vm.AbstractInstruction org.zmpp.vm.PrintLiteralInstruction
public class PrintLiteralInstruction
This class implements the print and print_ret instructions.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.zmpp.vm.AbstractInstruction |
---|
AbstractInstruction.InstructionForm, AbstractInstruction.OperandCount |
Field Summary | |
---|---|
static int |
OP_PRINT
|
static int |
OP_PRINT_RET
|
Fields inherited from class org.zmpp.vm.AbstractInstruction |
---|
FALSE, TRUE |
Constructor Summary | |
---|---|
PrintLiteralInstruction(Machine machineState,
int opcode,
MemoryReadAccess memaccess,
int instrAddress)
Constructor. |
Method Summary | |
---|---|
void |
execute()
Execute the instruction. |
AbstractInstruction.InstructionForm |
getInstructionForm()
Returns the instruction's form. |
int |
getLength()
Returns the instruction's length in bytes. |
int |
getLiteralAddress()
Returns the address of the literal. |
AbstractInstruction.OperandCount |
getOperandCount()
Returns the instruction's operand count type. |
void |
setLength(int length)
Sets the instruction's length in bytes. |
Methods inherited from class org.zmpp.vm.AbstractInstruction |
---|
addOperand, branchIfTrue, branchOnTest, getBranchOffset, getMachine, getNumOperands, getOpcode, getOperand, getStoreVariable, getUnsignedValue, getValue, isBranch, nextInstruction, returnFromRoutine, setBranchIfTrue, setBranchOffset, setOpcode, setStoreVariable, storeResult, storesResult, throwInvalidOpcode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int OP_PRINT
public static final int OP_PRINT_RET
Constructor Detail |
---|
public PrintLiteralInstruction(Machine machineState, int opcode, MemoryReadAccess memaccess, int instrAddress)
machineState
- the machine state referenceopcode
- the opcodememaccess
- the memory access objectinstrAddress
- the instruction addressMethod Detail |
---|
public AbstractInstruction.InstructionForm getInstructionForm()
getInstructionForm
in class AbstractInstruction
public AbstractInstruction.OperandCount getOperandCount()
getOperandCount
in class AbstractInstruction
public void setLength(int length)
setLength
in class AbstractInstruction
length
- the length in bytespublic int getLength()
getLength
in class AbstractInstruction
public void execute()
public int getLiteralAddress()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |