|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttools.disassembly.Disassembler
public class Disassembler
This class manages the conversion of binary data into disassembly.
| Constructor Summary | |
|---|---|
Disassembler()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getDisassembly(int address,
int[] data,
Opcode opcode,
java.util.List<OpcodeParamFieldReplaceInfo> replacements,
java.lang.String[] resultMnemonics,
int fieldPadding)
This method returns the disassembly mnemonic for the given run of data. |
static java.util.List<CodeLine> |
getDisassemblyOpcodes(Processor processor,
int[] binary,
int origin)
This function disassembles the binary data into a list of opcodes. |
static void |
main(java.lang.String[] args)
This tool disassembles a binary file into text opcodes for a target processor. |
static void |
printDisassembly(java.util.List<CodeLine> lines,
java.lang.String cpu,
java.lang.String[] mnemonicSets,
boolean commentOverride)
This function prints the disassembly of a list of code lines in the given mnemonic set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Disassembler()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - see above
java.lang.Exception - errors opening files
public static java.util.List<CodeLine> getDisassemblyOpcodes(Processor processor,
int[] binary,
int origin)
processor - the target processorbinary - the binary dataorigin - the origin of the first location of the data
public static java.lang.String getDisassembly(int address,
int[] data,
Opcode opcode,
java.util.List<OpcodeParamFieldReplaceInfo> replacements,
java.lang.String[] resultMnemonics,
int fieldPadding)
address - the memory address of this data (needed for relative destinationsdata - the opcode data bytesopcode - the opcode informationreplacements - list of any substitution labels into the mnemonic text (or null for pure numeric values)resultMnemonics - the mnemonics set names to generate in order (within the processor family)fieldPadding - the mnemonic field spacing override. Use 0 for the default.
public static void printDisassembly(java.util.List<CodeLine> lines,
java.lang.String cpu,
java.lang.String[] mnemonicSets,
boolean commentOverride)
lines - the list of linesmnemonicSets - the name of the mnemonic sets to output (in order)commentOverride - true will always add a comment, even if it is blank
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||