|
||||||||||
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.Short1Instruction
public class Short1Instruction
This class represents instructions of type SHORT, 1OP.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.zmpp.vm.AbstractInstruction |
---|
AbstractInstruction.InstructionForm, AbstractInstruction.OperandCount |
Field Summary | |
---|---|
static int |
OP_DEC
|
static int |
OP_GET_CHILD
|
static int |
OP_GET_PARENT
|
static int |
OP_GET_PROP_LEN
|
static int |
OP_GET_SIBLING
|
static int |
OP_INC
|
static int |
OP_JUMP
|
static int |
OP_JZ
List of opcodes. |
static int |
OP_LOAD
|
static int |
OP_NOT
|
static int |
OP_PRINT_ADDR
|
static int |
OP_PRINT_OBJ
|
static int |
OP_PRINT_PADDR
|
static int |
OP_REMOVE_OBJ
|
static int |
OP_RET
|
Fields inherited from class org.zmpp.vm.AbstractInstruction |
---|
FALSE, TRUE |
Constructor Summary | |
---|---|
Short1Instruction(Machine machineState,
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 |
isBranch()
Returns true, if this instruction is a branch, false, otherwise. |
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, 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_JZ
public static final int OP_GET_SIBLING
public static final int OP_GET_CHILD
public static final int OP_GET_PARENT
public static final int OP_GET_PROP_LEN
public static final int OP_INC
public static final int OP_DEC
public static final int OP_PRINT_ADDR
public static final int OP_REMOVE_OBJ
public static final int OP_PRINT_OBJ
public static final int OP_RET
public static final int OP_JUMP
public static final int OP_PRINT_PADDR
public static final int OP_LOAD
public static final int OP_NOT
Constructor Detail |
---|
public Short1Instruction(Machine machineState, int opcode)
machineState
- a reference to the MachineState objectopcode
- the instruction's opcodeMethod Detail |
---|
public void execute()
public AbstractInstruction.InstructionForm getInstructionForm()
getInstructionForm
in class AbstractInstruction
public AbstractInstruction.OperandCount getOperandCount()
getOperandCount
in class AbstractInstruction
public boolean storesResult()
storesResult
in class AbstractInstruction
public boolean isBranch()
isBranch
in class AbstractInstruction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |