diff options
| author | krolxon <krolyxon@tutanota.com> | 2026-01-04 18:39:25 +0530 |
|---|---|---|
| committer | krolxon <krolyxon@tutanota.com> | 2026-01-04 18:39:25 +0530 |
| commit | 4809d7159f373a358da4932571e2219b39b561ed (patch) | |
| tree | e4251acc18ebe6419e3b55cccf3efbf0099ee6f5 /src/instructions.rs | |
initial commit
Diffstat (limited to 'src/instructions.rs')
| -rw-r--r-- | src/instructions.rs | 9 |
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, +} |
