|
||||||||||
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.LongInstruction
public class LongInstruction
This class represents instructions of type LONG, 2OP.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.zmpp.vm.AbstractInstruction |
---|
AbstractInstruction.InstructionForm, AbstractInstruction.OperandCount |
Field Summary | |
---|---|
static int |
OP_ADD
|
static int |
OP_AND
|
static int |
OP_CLEAR_ATTR
|
static int |
OP_DEC_CHK
|
static int |
OP_DIV
|
static int |
OP_GET_NEXT_PROP
|
static int |
OP_GET_PROP
|
static int |
OP_GET_PROP_ADDR
|
static int |
OP_INC_CHK
|
static int |
OP_INSERT_OBJ
|
static int |
OP_JE
List of opcodes. |
static int |
OP_JG
|
static int |
OP_JIN
|
static int |
OP_JL
|
static int |
OP_LOADB
|
static int |
OP_LOADW
|
static int |
OP_MOD
|
static int |
OP_MUL
|
static int |
OP_OR
|
static int |
OP_SET_ATTR
|
static int |
OP_STORE
|
static int |
OP_SUB
|
static int |
OP_TEST
|
static int |
OP_TEST_ATTR
|
Fields inherited from class org.zmpp.vm.AbstractInstruction |
---|
FALSE, TRUE |
Constructor Summary | |
---|---|
LongInstruction(Machine machineState,
AbstractInstruction.OperandCount operandCount,
int opcode)
Constructor. |
|
LongInstruction(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_JE
public static final int OP_JL
public static final int OP_JG
public static final int OP_DEC_CHK
public static final int OP_INC_CHK
public static final int OP_JIN
public static final int OP_TEST
public static final int OP_OR
public static final int OP_AND
public static final int OP_TEST_ATTR
public static final int OP_SET_ATTR
public static final int OP_CLEAR_ATTR
public static final int OP_STORE
public static final int OP_INSERT_OBJ
public static final int OP_LOADW
public static final int OP_LOADB
public static final int OP_GET_PROP
public static final int OP_GET_PROP_ADDR
public static final int OP_GET_NEXT_PROP
public static final int OP_ADD
public static final int OP_SUB
public static final int OP_MUL
public static final int OP_DIV
public static final int OP_MOD
Constructor Detail |
---|
public LongInstruction(Machine machineState, int opcode)
machineState
- a reference to a MachineState objectopcode
- the instruction's opcodepublic LongInstruction(Machine machineState, AbstractInstruction.OperandCount operandCount, int opcode)
machineState
- the machine stateoperandCount
- the operand countopcode
- the 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 |