The Pedigree Project  0.1
Public Member Functions | List of all members
DisassemblerBase Class Referenceabstract

#include <Disassembler.h>

+ Inheritance diagram for DisassemblerBase:
+ Collaboration diagram for DisassemblerBase:

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
 

Detailed Description

Abstraction of a code disassembler.

Definition at line 32 of file include/pedigree/kernel/processor/Disassembler.h.

Constructor & Destructor Documentation

DisassemblerBase::~DisassemblerBase ( )
virtualdefault

Destructor does nothing.

Member Function Documentation

virtual void DisassemblerBase::disassemble ( LargeStaticString text)
pure virtual

Disassembles one instruction and populates the given StaticString with a textual representation.

Implemented in X86Disassembler, MipsDisassembler, PPCDisassembler, and Arm926EDisassembler.

virtual uintptr_t DisassemblerBase::getLocation ( )
pure virtual

Gets the location of the next instruction to be disassembled.

Implemented in X86Disassembler, MipsDisassembler, PPCDisassembler, and Arm926EDisassembler.

virtual void DisassemblerBase::setLocation ( uintptr_t  nLocation)
pure virtual

Sets the location of the next instruction to be disassembled.

Implemented in X86Disassembler, MipsDisassembler, PPCDisassembler, and Arm926EDisassembler.

virtual void DisassemblerBase::setMode ( size_t  nMode)
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.

Parameters
nModeMode - 16, 32 or 64.

Implemented in X86Disassembler, MipsDisassembler, PPCDisassembler, and Arm926EDisassembler.


The documentation for this class was generated from the following files: