|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttools.processor.Processor
public class Processor
This class encapsulates all the information about a single processor. This is the base information for specific CPUs defined in "ProcessorCPU.java" files where CPU is the processor's name.
| Field Summary | |
|---|---|
protected ProcessorFamily |
family
|
protected java.lang.String |
name
|
protected java.util.List<Opcode> |
opcodes
|
| Constructor Summary | |
|---|---|
Processor(ProcessorFamily family,
org.jdom.Element info,
org.jdom.Element familyInfo)
This parses the generic processor info common to all processors. |
|
| Method Summary | |
|---|---|
Opcode |
findOpcode(java.lang.String comp,
java.util.Map<java.lang.String,OpcodeParameterInfo> params,
java.util.List<java.lang.String> as)
This method finds the opcode for the given mnemonic text string. |
java.util.List<Opcode> |
findPossibleOpcodes(int[] binary,
int start,
int length)
This method looks at the processor's opcode list and returns all that potentially match the given binary stream. |
ProcessorFamily |
getFamily()
|
java.lang.String |
getName()
|
protected void |
parseProcessorOpcodes(org.jdom.Element familyInfo)
This method parses the processor's opcode list from the family's master list of opcodes. |
java.lang.String |
preprocessOpcode(java.lang.String comp,
java.util.List<java.lang.Integer> starts)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String name
protected ProcessorFamily family
protected java.util.List<Opcode> opcodes
| Constructor Detail |
|---|
public Processor(ProcessorFamily family,
org.jdom.Element info,
org.jdom.Element familyInfo)
family - the processor's familyinfo - the processor's info structurefamilyInfo - the XML element for the family (might be some processor-specifics in there)| Method Detail |
|---|
protected void parseProcessorOpcodes(org.jdom.Element familyInfo)
familyInfo -
public java.util.List<Opcode> findPossibleOpcodes(int[] binary,
int start,
int length)
binary - the array of binary datastart - the starting point of the binary stream to decodelength - the number of bytes in the stream
public ProcessorFamily getFamily()
public java.lang.String getName()
public java.lang.String preprocessOpcode(java.lang.String comp,
java.util.List<java.lang.Integer> starts)
public Opcode findOpcode(java.lang.String comp,
java.util.Map<java.lang.String,OpcodeParameterInfo> params,
java.util.List<java.lang.String> as)
comp - the input line with defines substituted in and extraneous white-space collapsedparams - a return map containing fill-in data for the second passas - a list of mnemonic sets to use (or null to use all in the family)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||