libmicroemu 0.2.0
ARM Microcontroller Emulator Library
Loading...
Searching...
No Matches
libmicroemu::EmuContext Class Reference

Public Member Functions

 EmuContext (const me_adr_t &pc, const OpCode &op_code, const IInstrToMnemonic &instr_decoder, IRegAccessor &reg_access, ISpecialRegAccessor &spec_reg_access) noexcept
 
me_adr_t GetPc () const noexcept
 Gets the program counter of the current instruction.
 
IRegAccessorGetRegisterAccessor () noexcept
 Gets the register accessor.
 
ISpecialRegAccessorGetSpecialRegisterAccessor () noexcept
 Gets the special register accessor.
 
const OpCodeGetOpCode () const noexcept
 Gets the opcode of the current instruction.
 
void BuildMnemonic (char *buf, std::size_t buf_len) const noexcept
 Builds the mnemonic of the current instruction This takes the current instruction and decodes it into a human readable string. Attention this is a resource intensive operation.
 

Member Function Documentation

◆ BuildMnemonic()

void libmicroemu::EmuContext::BuildMnemonic ( char * buf,
std::size_t buf_len ) const
inlinenoexcept

Builds the mnemonic of the current instruction This takes the current instruction and decodes it into a human readable string. Attention this is a resource intensive operation.

Parameters
bufThe buffer to store the mnemonic.
buf_lenThe length of the buffer.

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