From 467ec78e894c8184144bfac039dc7d780abbd050 Mon Sep 17 00:00:00 2001 From: krolxon Date: Thu, 8 Jan 2026 19:21:43 +0530 Subject: add SYS instruction --- src/instructions.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/instructions.rs') diff --git a/src/instructions.rs b/src/instructions.rs index 620b0ad..a0d086f 100644 --- a/src/instructions.rs +++ b/src/instructions.rs @@ -16,6 +16,7 @@ pub enum Instruction { DIV = 0x0D, CALL = 0x0E, RET = 0x0F, + SYS = 0x10, HLT = 0xFF, } @@ -33,6 +34,7 @@ impl Instruction { 0x0D => "DIV", 0x0E => "CALL", 0x0F => "RET", + 0x10 => "SYS", 0xFF => "HLT", _ => "???", -- cgit v1.2.3