increment amount of permited instructions since there was a off by one error

This commit is contained in:
Henrik Böving
2020-12-01 10:28:59 +01:00
parent 44f7bf7501
commit 2b73e39eb6

View File

@@ -29,7 +29,7 @@ pub fn parse_asm<'a>(pairs: Pairs<'a, Rule>) -> Vec<Instruction<'a>> {
instruction_counter += 1; instruction_counter += 1;
} }
if instruction_counter > 15 { if instruction_counter > 16 {
panic!("This program contains more than 16 instructions, that is impossible on this processor"); panic!("This program contains more than 16 instructions, that is impossible on this processor");
} }
} }