|
libmicroemu 0.2.0
ARM Microcontroller Emulator Library
|
Interface for accessing general-purpose registers. More...
#include <emu_context.h>
Public Member Functions | |
| virtual std::string_view | GetRegisterName (const RegisterId ®_id) const =0 |
| Gets the name of the specified register. | |
| virtual u32 | ReadRegister (const RegisterId ®_id) const =0 |
| Reads the value of the specified register. | |
| virtual void | WriteRegister (const RegisterId ®_id, u32 value)=0 |
| Writes the value to the specified register. | |
Interface for accessing general-purpose registers.
|
pure virtual |
Gets the name of the specified register.
| id | The ID of the register. |
Implemented in libmicroemu::internal::RegAccessor< TCpuAccessor >.
|
pure virtual |
Reads the value of the specified register.
| reg_id | The ID of the register to be read. |
Implemented in libmicroemu::internal::RegAccessor< TCpuAccessor >.
|
pure virtual |
Writes the value to the specified register.
| reg_id | The ID of the register to be written. |
| value | The value to be written to the register. |
Implemented in libmicroemu::internal::RegAccessor< TCpuAccessor >.