The Pedigree Project
0.1
|
#include <Disassembler.h>
Public Member Functions | |
virtual | ~DisassemblerBase () |
virtual void | setLocation (uintptr_t nLocation)=0 |
virtual uintptr_t | getLocation ()=0 |
virtual void | setMode (size_t nMode)=0 |
virtual void | disassemble (LargeStaticString &text)=0 |
Abstraction of a code disassembler.
Definition at line 32 of file include/pedigree/kernel/processor/Disassembler.h.
|
virtualdefault |
Destructor does nothing.
|
pure virtual |
Disassembles one instruction and populates the given StaticString with a textual representation.
Implemented in X86Disassembler, MipsDisassembler, PPCDisassembler, and Arm926EDisassembler.
|
pure virtual |
Gets the location of the next instruction to be disassembled.
Implemented in X86Disassembler, MipsDisassembler, PPCDisassembler, and Arm926EDisassembler.
|
pure virtual |
Sets the location of the next instruction to be disassembled.
Implemented in X86Disassembler, MipsDisassembler, PPCDisassembler, and Arm926EDisassembler.
|
pure virtual |
Sets the mode of disassembly - 16-bit, 32-bit or 64-bit If a disassembler doesn't support a requested mode, it should return without changing anything.
nMode | Mode - 16, 32 or 64. |
Implemented in X86Disassembler, MipsDisassembler, PPCDisassembler, and Arm926EDisassembler.