Property | Type | Description | |
---|---|---|---|
Content | StringBuilder | ||
Registers | string[] |
Method | Description | |
---|---|---|
Translate ( IEnumerable |
Abstract method to translate multiple instructions. Classes implementing this method must reset the protected Content member instance and cleanup.
|
|
Translate ( Instruction insn ) : string |
Abstract method to translate a single instruction. Classes implementing this method must reset the protected Content member instance and cleanup.
|
Method | Description | |
---|---|---|
RegisterForType ( SharpDisasm type ) : string |
Converts a SharpDisasm.Udis86.ud_type into an index into Registers and returns the result.
|
|
WriteAddress ( Instruction insn ) : void |
Writes the address of the instruction to Content. The width of the address is determined by the ArchitectureMode used during disassembly.
|
|
WriteBinary ( Instruction insn ) : void |
Writes the instruction binary data to Content. The result is padded to 20 characters (supporting instructions up to 10-bytes long). If the instruction was disassembled without Disassembler.CopyBinaryToInstruction a blank 20 character string will be appended.
|
|
ud_syn_print_addr ( Instruction insn, long addr ) : void |
TODO: document and rename ported translator methods
|
|
ud_syn_print_imm ( Instruction insn, Operand op ) : void |
TODO: document and rename ported translator methods
|
|
ud_syn_print_mem_disp ( Instruction insn, Operand op, int sign ) : void |
TODO: document and rename ported translator methods
|
|
ud_syn_rel_target ( Instruction insn, Operand opr ) : ulong |
TODO: document and rename ported translator methods
|
protected RegisterForType ( SharpDisasm type ) : string | ||
type | SharpDisasm | The register |
return | string |
public abstract Translate ( IEnumerable |
||
insns | IEnumerable |
Collection of instructions to be translated |
return | string |
public abstract Translate ( Instruction insn ) : string | ||
insn | Instruction | The instruction to translate |
return | string |
protected WriteAddress ( Instruction insn ) : void | ||
insn | Instruction | The instruction to append the address of. |
return | void |
protected WriteBinary ( Instruction insn ) : void | ||
insn | Instruction | The instruction of which to append the binary data for |
return | void |
protected ud_syn_print_addr ( Instruction insn, long addr ) : void | ||
insn | Instruction | |
addr | long | |
return | void |
protected ud_syn_print_imm ( Instruction insn, Operand op ) : void | ||
insn | Instruction | |
op | Operand | |
return | void |
protected ud_syn_print_mem_disp ( Instruction insn, Operand op, int sign ) : void | ||
insn | Instruction | |
op | Operand | |
sign | int | |
return | void |
protected ud_syn_rel_target ( Instruction insn, Operand opr ) : ulong | ||
insn | Instruction | |
opr | Operand | |
return | ulong |