|
||||||||||
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.VariableInstruction
public class VariableInstruction
This class represents instructions of type VARIABLE.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.zmpp.vm.AbstractInstruction |
---|
AbstractInstruction.InstructionForm, AbstractInstruction.OperandCount |
Field Summary | |
---|---|
static int |
OP_CALL
List of opcodes. |
static int |
OP_INPUTSTREAM
|
static int |
OP_OUTPUTSTREAM
|
static int |
OP_PRINT_CHAR
|
static int |
OP_PRINT_NUM
|
static int |
OP_PULL
|
static int |
OP_PUSH
|
static int |
OP_PUT_PROP
|
static int |
OP_RANDOM
|
static int |
OP_SET_WINDOW
|
static int |
OP_SOUND_EFFECT
|
static int |
OP_SPLIT_WINDOW
|
static int |
OP_SREAD
|
static int |
OP_STOREB
|
static int |
OP_STOREW
|
Fields inherited from class org.zmpp.vm.AbstractInstruction |
---|
FALSE, TRUE |
Constructor Summary | |
---|---|
VariableInstruction(Machine machineState,
AbstractInstruction.OperandCount operandCount,
int opcode)
Constructor. |
Method Summary | |
---|---|
void |
execute()
Execute the instruction. |
AbstractInstruction.InstructionForm |
getInstructionForm()
Returns the instruction's form. |
AbstractInstruction.OperandCount |
getOperandCount()
Returns the instruction's operand count type. |
boolean |
storesResult()
Returns true, if this instruction stores a result, false, otherwise. |
Methods inherited from class org.zmpp.vm.AbstractInstruction |
---|
addOperand, branchIfTrue, branchOnTest, getBranchOffset, getLength, getMachine, getNumOperands, getOpcode, getOperand, getStoreVariable, getUnsignedValue, getValue, isBranch, nextInstruction, returnFromRoutine, setBranchIfTrue, setBranchOffset, setLength, setOpcode, setStoreVariable, storeResult, 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_CALL
public static final int OP_STOREW
public static final int OP_STOREB
public static final int OP_PUT_PROP
public static final int OP_SREAD
public static final int OP_PRINT_CHAR
public static final int OP_PRINT_NUM
public static final int OP_RANDOM
public static final int OP_PUSH
public static final int OP_PULL
public static final int OP_SPLIT_WINDOW
public static final int OP_SET_WINDOW
public static final int OP_OUTPUTSTREAM
public static final int OP_INPUTSTREAM
public static final int OP_SOUND_EFFECT
Constructor Detail |
---|
public VariableInstruction(Machine machineState, AbstractInstruction.OperandCount operandCount, int opcode)
machineState
- a reference to a MachineState objectoperandCount
- the operand countopcode
- the instruction's opcodeMethod Detail |
---|
public AbstractInstruction.InstructionForm getInstructionForm()
getInstructionForm
in class AbstractInstruction
public AbstractInstruction.OperandCount getOperandCount()
getOperandCount
in class AbstractInstruction
public boolean storesResult()
storesResult
in class AbstractInstruction
public void execute()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |