From 2b73e39eb6ea425f24a7855f129bb8b72f1cc449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20B=C3=B6ving?= Date: Tue, 1 Dec 2020 10:28:59 +0100 Subject: [PATCH] increment amount of permited instructions since there was a off by one error --- src/parse.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse.rs b/src/parse.rs index 6fa4085..5a1d42f 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -29,7 +29,7 @@ pub fn parse_asm<'a>(pairs: Pairs<'a, Rule>) -> Vec> { 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"); } }