summaryrefslogtreecommitdiff
path: root/emux64/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'emux64/src/include')
-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
*