diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-13 01:19:44 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-13 01:19:44 -0400 |
commit | fb72582468d8efede977793ad8e6a858a81a0e44 (patch) | |
tree | 89ead29e18620d99a3b785512772384c7b7ac231 /emux64/src/include/cpu/cpu.h | |
parent | 25c0a696a3a7fe547fd69ff505759cf0e222927d (diff) |
emux: cpu: Add emulation of ADD instruction
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'emux64/src/include/cpu/cpu.h')
-rw-r--r-- | emux64/src/include/cpu/cpu.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/emux64/src/include/cpu/cpu.h b/emux64/src/include/cpu/cpu.h index bffb6c0..84c8832 100644 --- a/emux64/src/include/cpu/cpu.h +++ b/emux64/src/include/cpu/cpu.h @@ -54,6 +54,13 @@ #define OP_DIV 0x04 /* 2-op DIV */ #define OP_HLT 0x0E /* Halt */ +/* + * X<n> register encoding + * + * Range: 0x00 - 0xE + */ +#define REG_XN_BASE 0x00 +#define REG_XN_LIMIT (REG_XN_BASE + 0x0E) /* * Represents a single unit of execution |