aboutsummaryrefslogtreecommitdiff
path: root/src/instructions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/instructions.rs')
-rw-r--r--src/instructions.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/instructions.rs b/src/instructions.rs
new file mode 100644
index 0000000..f5884dc
--- /dev/null
+++ b/src/instructions.rs
@@ -0,0 +1,9 @@
+#[repr(u8)]
+pub enum Instruction {
+ MOV = 0x01,
+ ADD = 0x02,
+ SUB = 0x03,
+ JMP = 0x04,
+ JZ = 0x05,
+ HLT = 0xFF,
+}