|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--autohit.vm.VMInstruction
A Virtual Machine instruction base class. All vm instructions extend this class. This class also defines the static/final tokens and related constants used by both the vm and the compiler.
We will implement Serializable with this base class, so all final instruction classes will inherit it,
I thought about making this an interface, but since this IS a vm, it seem like a needless slowdown of a class that is going to get banged around enough as it is.
This class defines the numeric token for all instructions. So, if you create a new instruction, be sure to add a token for it in this class... and recompile ALL of the packages.
All derived-class constructors must set the numeric token.
Field Summary | |
static int |
ADD
|
static int |
CRC
|
static int |
EXEC
|
static int |
FOR
|
static int |
GET
|
static int |
HEADER
|
static int |
IF
|
boolean |
iv
Detected imbedded variable. |
static char |
IVToken
Imbedded variable text token. |
static int |
JUMP
|
static int |
NOP
Numeric token values. |
int |
nToken
Numeric token. |
static int |
NV
|
static int |
RSCOPE
|
static int |
SCOPE
|
static int |
SEEK
|
static int |
SET
|
static int |
VERIFY
|
static int |
WAIT
|
static int |
WHILE
|
Constructor Summary | |
VMInstruction()
Default constructor |
Method Summary | |
void |
orIV(boolean tap)
OR the IV with tap. |
java.lang.String |
toString()
Dump this Instruction. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int NOP
public static final int GET
public static final int FOR
public static final int WHILE
public static final int SET
public static final int WAIT
public static final int SCOPE
public static final int RSCOPE
public static final int HEADER
public static final int IF
public static final int NV
public static final int JUMP
public static final int ADD
public static final int VERIFY
public static final int CRC
public static final int SEEK
public static final int EXEC
public static final char IVToken
public int nToken
public boolean iv
Constructor Detail |
public VMInstruction()
Method Detail |
public void orIV(boolean tap)
iv tap | new iv T T | T T F | T F T | T F F | F
tap
- value to OR against.public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |