Base class for disassemblers.
More...
#include <Disassembler.h>
Base class for disassemblers.
◆ Disassembler()
Disassembler::Disassembler |
( |
InstVec & |
insts | ) |
|
Constructor for Disassembler.
- Parameters
-
[in] | insts | Where disassembled instructions will be placed. |
◆ ~Disassembler()
virtual Disassembler::~Disassembler |
( |
| ) |
|
|
virtualdefault |
◆ Disassemble()
void Disassembler::Disassemble |
( |
| ) |
|
Request disassembled instructions.
◆ DoDisassemble()
virtual void Disassembler::DoDisassemble |
( |
| ) |
|
|
protectedpure virtual |
◆ DoDumpDisassembly()
void Disassembler::DoDumpDisassembly |
( |
std::ostream & |
output | ) |
|
|
protectedvirtual |
Outputs the disassembled code.
- Parameters
-
[out] | output | The output stream. |
◆ DumpDisassembly()
void Disassembler::DumpDisassembly |
( |
std::ostream & |
output | ) |
|
Outputs the disassembled code.
Disassembles code if this has not already been done.
- Parameters
-
[out] | output | The output stream. |
◆ Open()
void Disassembler::Open |
( |
const char * |
filename | ) |
|
|
virtual |
Open a file for disassembly.
- Parameters
-
[in] | filename | The file to Disassemble. |
Reimplemented in FieldDisassembler.
◆ ReadParameter()
Reads data for a single parameter.
- Parameters
-
[in] | inst | The instruction the parameter will belong to. Unused. |
[in] | type | Character describing the type of the parameter. |
- Returns
- The read data.
◆ ReadParams() [1/2]
void Disassembler::ReadParams |
( |
InstPtr |
inst, |
|
|
const char * |
types |
|
) |
| |
|
protected |
Read parameters and associate them with an instruction.
- Parameters
-
[in] | inst | The instruction to associate the parameters with. |
[in] | types | NUL-terminated string describing the type of each parameter. |
◆ ReadParams() [2/2]
void Disassembler::ReadParams |
( |
InstPtr |
inst, |
|
|
const char * |
types, |
|
|
const std::vector< std::string > & |
params |
|
) |
| |
|
protected |
Read parameters but it doesn't associate them with an instruction.
- Parameters
-
[in] | inst | The instruction to associate the parameters with. Unused. |
[in] | types | NUL-terminated string describing the type of each parameter. |
[in] | params | Unused. |
◆ address_
◆ address_base_
uint32 Disassembler::address_base_ |
|
protected |
Base address where the script starts.
◆ insts_
List of disassembled instructions.
◆ stream_
Used to perform file I/O.
The documentation for this class was generated from the following files: