hotfix: list all valid instructions

This commit is contained in:
Muhammad Nauman Raza 2025-01-29 19:39:33 +00:00
parent fb2ef1662f
commit faeedb7850
Signed by: devraza
GPG key ID: 91EAD6081011574B

View file

@ -102,7 +102,7 @@ fn main() -> io::Result<()> {
let mut labels: HashMap<String, usize> = HashMap::new();
let mut code: Vec<String> = 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?;