|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttools.processor.Opcode
public class Opcode
An opcode represents a CPU instruction for a given target processor. Fundamentally, the opcode
is a sequence of bytes with possible numeric fill-ins. There are also various mnemonic (human
readable) representations of the opcode that also contain the numeric fill-ins.
Fill-ins are single-lower-case-letters. In the "code" representation these letters are followed
by a "m" or "l" for "most significant" and "least significant" where appropriate.
For example:
| Constructor Summary | |
|---|---|
Opcode(Processor processor,
java.lang.String code,
java.lang.String clocks,
java.lang.String flags,
java.lang.String bus,
java.util.Map<java.lang.String,java.lang.String> mnemonicTexts)
This constructs a new opcode. |
|
| Method Summary | |
|---|---|
java.util.Map<OpcodeParamField,java.lang.String> |
decodeData(int[] data)
This method maps the given data bytes into parameter-field values. |
java.lang.String |
getBus()
|
java.lang.String |
getClocks()
|
java.lang.String |
getCode()
|
java.lang.String |
getFlags()
|
java.util.Map<java.lang.String,Mnemonic> |
getMnemonics()
|
int |
getOpcodeSize()
This method returns the number of bytes occupied by the opcode. |
Processor |
getProcessor()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Opcode(Processor processor,
java.lang.String code,
java.lang.String clocks,
java.lang.String flags,
java.lang.String bus,
java.util.Map<java.lang.String,java.lang.String> mnemonicTexts)
processor - backwards link to the owning processorcode - the code bytes of the opcode as hex bytes and lower-case-letter fill-insclocks - information about the number of clocks the opcode takesflags - information about the flags this opcode affectsbus - information about the address/data bus access of this opcodemnemonicTexts - all the various mnemonic representations of this opcode| Method Detail |
|---|
public java.util.Map<OpcodeParamField,java.lang.String> decodeData(int[] data)
data - the data to map into the opcode
public int getOpcodeSize()
public Processor getProcessor()
public java.lang.String getCode()
public java.lang.String getClocks()
public java.lang.String getFlags()
public java.lang.String getBus()
public java.util.Map<java.lang.String,Mnemonic> getMnemonics()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||