libmicroemu 0.2.0
ARM Microcontroller Emulator Library
Loading...
Searching...
No Matches
libmicroemu::IRegAccessor Class Referenceabstract

Interface for accessing general-purpose registers. More...

#include <emu_context.h>

Inheritance diagram for libmicroemu::IRegAccessor:
libmicroemu::internal::RegAccessor< TCpuAccessor >

Public Member Functions

virtual std::string_view GetRegisterName (const RegisterId &reg_id) const =0
 Gets the name of the specified register.
 
virtual u32 ReadRegister (const RegisterId &reg_id) const =0
 Reads the value of the specified register.
 
virtual void WriteRegister (const RegisterId &reg_id, u32 value)=0
 Writes the value to the specified register.
 

Detailed Description

Interface for accessing general-purpose registers.

Member Function Documentation

◆ GetRegisterName()

virtual std::string_view libmicroemu::IRegAccessor::GetRegisterName ( const RegisterId & reg_id) const
pure virtual

Gets the name of the specified register.

Parameters
idThe ID of the register.
Returns
The name of the register.

Implemented in libmicroemu::internal::RegAccessor< TCpuAccessor >.

◆ ReadRegister()

virtual u32 libmicroemu::IRegAccessor::ReadRegister ( const RegisterId & reg_id) const
pure virtual

Reads the value of the specified register.

Parameters
reg_idThe ID of the register to be read.
Returns
The value of the register.

Implemented in libmicroemu::internal::RegAccessor< TCpuAccessor >.

◆ WriteRegister()

virtual void libmicroemu::IRegAccessor::WriteRegister ( const RegisterId & reg_id,
u32 value )
pure virtual

Writes the value to the specified register.

Parameters
reg_idThe ID of the register to be written.
valueThe value to be written to the register.

Implemented in libmicroemu::internal::RegAccessor< TCpuAccessor >.


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