From 133f6f748dd8d687273d991a134fad1c455ef99c Mon Sep 17 00:00:00 2001 From: krolxon Date: Thu, 8 Jan 2026 19:02:18 +0530 Subject: add CALL, RET --- src/instructions.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/instructions.rs') diff --git a/src/instructions.rs b/src/instructions.rs index 9f81b9a..620b0ad 100644 --- a/src/instructions.rs +++ b/src/instructions.rs @@ -14,6 +14,8 @@ pub enum Instruction { CMP_RR = 0x09, MUL = 0x0C, DIV = 0x0D, + CALL = 0x0E, + RET = 0x0F, HLT = 0xFF, } @@ -29,7 +31,10 @@ impl Instruction { 0x07 | 0x09 => "CMP", 0x0C => "MUL", 0x0D => "DIV", + 0x0E => "CALL", + 0x0F => "RET", 0xFF => "HLT", + _ => "???", } } -- cgit v1.2.3