diff options
| author | krolxon <krolyxon@tutanota.com> | 2026-01-08 18:47:07 +0530 |
|---|---|---|
| committer | krolxon <krolyxon@tutanota.com> | 2026-01-08 18:47:07 +0530 |
| commit | 3372e774e9505acdc3778a8155476cca4bfbd3e8 (patch) | |
| tree | 60131fe5c0367a9ab9908b33bcfe81f6aaece543 /src/instructions.rs | |
| parent | 68d85406ef834312b39474c11be09e5ed1a228b4 (diff) | |
add MUL & DIV
Diffstat (limited to 'src/instructions.rs')
| -rw-r--r-- | src/instructions.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/instructions.rs b/src/instructions.rs index bfc4fc6..9f81b9a 100644 --- a/src/instructions.rs +++ b/src/instructions.rs @@ -12,6 +12,8 @@ pub enum Instruction { JNZ = 0x06, CMP_RI = 0x07, CMP_RR = 0x09, + MUL = 0x0C, + DIV = 0x0D, HLT = 0xFF, } @@ -25,6 +27,8 @@ impl Instruction { 0x05 => "JZ", 0x06 => "JNZ", 0x07 | 0x09 => "CMP", + 0x0C => "MUL", + 0x0D => "DIV", 0xFF => "HLT", _ => "???", } |
