-
Notifications
You must be signed in to change notification settings - Fork 4
VMCU_REGISTER
Milo-D edited this page Jun 24, 2021
·
4 revisions
| Defined in libvmcu_analyzer.h |
|---|
typedef enum { VMCU_REGISTER_R0, ... } VMCU_REGISTER; |
Enumeration of AVR general purpose registers r0-r31 (
VMCU_REGISTER_R0, VMCU_REGISTER_R1, ..., VMCU_REGISTER_R31).
#include "libvmcu_analyzer.h" // VMCU_REGISTER
int main(const int argc, const char **argv) {
vmcu_model_t *m328p = vmcu_model_ctor(VMCU_DEVICE_M328P);
vmcu_instr_t instr;
vmcu_disassemble_bytes(0xf49a, &instr, m328p);
if(instr.dest.r == VMCU_REGISTER_R31)
printf("destination operand r31\n");
vmcu_model_dtor(m328p);
return 0;
}1 The integer value of VMCU_REGISTER_Rx is equal to x. \