From fb72582468d8efede977793ad8e6a858a81a0e44 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 13 Oct 2025 01:19:44 -0400 Subject: emux: cpu: Add emulation of ADD instruction Signed-off-by: Ian Moffett --- emux64/src/include/cpu/cpu.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'emux64/src/include') 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 register encoding + * + * Range: 0x00 - 0xE + */ +#define REG_XN_BASE 0x00 +#define REG_XN_LIMIT (REG_XN_BASE + 0x0E) /* * Represents a single unit of execution -- cgit v1.2.3