From faeedb7850baca7c309549411e158c8d92197468 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Wed, 29 Jan 2025 19:39:33 +0000 Subject: [PATCH] hotfix: list all valid instructions --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index f50facc..0ef6d66 100644 --- a/src/main.rs +++ b/src/main.rs @@ -102,7 +102,7 @@ fn main() -> io::Result<()> { let mut labels: HashMap = HashMap::new(); let mut code: Vec = Vec::new(); - let valid: [&str; 3] = ["BRA", "BRZ", "BRP"]; + let valid: [&str; 10] = ["BRA", "BRZ", "BRP", "OUT", "STA", "SUB", "LDA", "ADD", "INP", "HLT"]; for (index, line) in reader.lines().enumerate() { let line = line?;