The Pedigree Project  0.1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MipsDisassembler Class Reference

#include <Disassembler.h>

+ Inheritance diagram for MipsDisassembler:
+ Collaboration diagram for MipsDisassembler:

Public Member Functions

void setLocation (uintptr_t nLocation)
 
uintptr_t getLocation ()
 
void setMode (size_t nMode)
 
void disassemble (LargeStaticString &text)
 
- Public Member Functions inherited from DisassemblerBase
virtual ~DisassemblerBase ()
 

Private Member Functions

void disassembleSpecial (uint32_t nInstruction, LargeStaticString &text)
 
void disassembleRegImm (uint32_t nInstruction, LargeStaticString &text)
 
void disassembleOpcode (uint32_t nInstruction, LargeStaticString &text)
 

Private Attributes

uintptr_t m_nLocation
 

Detailed Description

A disassembler for R3000-R6000 MIPS32/64 processors.

Note
Doesn't have 64bit instructions yet.

Definition at line 29 of file kernel/core/processor/mips_common/Disassembler.h.

Member Function Documentation

void MipsDisassembler::disassemble ( LargeStaticString text)
virtual

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

Implements DisassemblerBase.

Definition at line 127 of file mips_common/Disassembler.cc.

References Arm926EDisassembler::m_nLocation.

uintptr_t MipsDisassembler::getLocation ( )
virtual

Gets the location of the next instruction to be disassembled.

Implements DisassemblerBase.

Definition at line 118 of file mips_common/Disassembler.cc.

References Arm926EDisassembler::m_nLocation.

void MipsDisassembler::setLocation ( uintptr_t  nLocation)
virtual

Sets the location of the next instruction to be disassembled.

Implements DisassemblerBase.

Definition at line 113 of file mips_common/Disassembler.cc.

References Arm926EDisassembler::m_nLocation.

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

Implements DisassemblerBase.

Definition at line 123 of file mips_common/Disassembler.cc.

Member Data Documentation

uintptr_t MipsDisassembler::m_nLocation
private

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