hotfix: list all valid instructions
This commit is contained in:
parent
fb2ef1662f
commit
faeedb7850
1 changed files with 1 additions and 1 deletions
|
@ -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?;
|
||||
|
|
Loading…
Reference in a new issue