summaryrefslogtreecommitdiff
path: root/emux64/src/include/cpu/cpu.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-10-12 22:02:58 -0400
committerIan Moffett <ian@osmora.org>2025-10-12 22:02:58 -0400
commit3f439e5c66e8366fddccc225ee82a2cfe21d755b (patch)
tree671a4b5b9f6b76ca5923efd213bd681ac5688163 /emux64/src/include/cpu/cpu.h
parent1c45ac1ccf0569b6f99c4bc5eca7a262fd4aef08 (diff)
emux64: cpu: Add basic opcode defines
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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/emux64/src/include/cpu/cpu.h b/emux64/src/include/cpu/cpu.h
index 9b045c9..2d35c73 100644
--- a/emux64/src/include/cpu/cpu.h
+++ b/emux64/src/include/cpu/cpu.h
@@ -46,6 +46,15 @@
#define N_FLOATREG 7
#define N_DUBREG 7
+/* OSMX64 Opcodes */
+#define OP_NOP 0x00 /* No-op */
+#define OP_ADD 0x01 /* 2-op ADD */
+#define OP_SUB 0x02 /* 2-op SUB */
+#define OP_MUL 0x03 /* 2-op MUL */
+#define OP_DIV 0x04 /* 2-op DIV */
+#define OP_HLT 0x0E /* Halt */
+
+
/*
* Represents a single unit of execution
*