From 3372e774e9505acdc3778a8155476cca4bfbd3e8 Mon Sep 17 00:00:00 2001 From: krolxon Date: Thu, 8 Jan 2026 18:47:07 +0530 Subject: add MUL & DIV --- src/instructions.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/instructions.rs') 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", _ => "???", } -- cgit v1.2.3