|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<OpcodeParamField>
tools.processor.OpcodeParamField
public enum OpcodeParamField
This enum defines the parameter primitives that opcodes are built from. Don't think about mnemonics. This is purely binary opcode. For instance: DD36bbii the 'b' field is an immediate byte and the 'i' field is an index byte. 28tltm the 't' field is an address word pointing to code (text). The "tl" is the lsb and the "tm" is the msb. Parameter info: bytes number of opcode bytes taken by the parameter sub the lower-case letter representing the parameter signed true if the numeric value is signed (branch offsets, for instance) address true if the numeric value is an address and not a constant (a RAM address, for instance) pc-offset true if the numeric value is offset from the PC (branch offsets, for instance) io true if the numeric value is a port (IO) address
| Method Summary | |
|---|---|
int |
getNumBytes()
|
static OpcodeParamField |
getParamField(char tag)
This static method returns the OpcodeParamField based on single-letter name. |
char |
getSubChar()
|
boolean |
isAddress()
|
boolean |
isIO()
|
boolean |
isPCOffset()
|
boolean |
isSigned()
|
static OpcodeParamField |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static OpcodeParamField[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final OpcodeParamField INDEX_BYTE
public static final OpcodeParamField SIGNED_INDEX_BYTE
public static final OpcodeParamField SIGNED_INDEX_WORD
public static final OpcodeParamField IMMEDIATE_BYTE
public static final OpcodeParamField IMMEDIATE_WORD
public static final OpcodeParamField ADDRESS_WORD_DATA
public static final OpcodeParamField BASE_ADDRESS_BYTE_DATA
public static final OpcodeParamField PORT_ADDRESS_BYTE
public static final OpcodeParamField ADDRESS_WORD_TEXT
public static final OpcodeParamField REL_BYTE_ADDRESS_TEXT
public static final OpcodeParamField REL_WORD_ADDRESS_TEXT
public static final OpcodeParamField PUSH_6809_U
public static final OpcodeParamField PUSH_6809_S
public static final OpcodeParamField PULL_6809_U
public static final OpcodeParamField PULL_6809_S
public static final OpcodeParamField REG_6809_TFR
public static final OpcodeParamField POST_6809
| Method Detail |
|---|
public static OpcodeParamField[] values()
for (OpcodeParamField c : OpcodeParamField.values()) System.out.println(c);
public static OpcodeParamField valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic static OpcodeParamField getParamField(char tag)
tag - the single letter name
public int getNumBytes()
public char getSubChar()
public boolean isAddress()
public boolean isPCOffset()
public boolean isIO()
public boolean isSigned()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||