From 3d16a83855fc08fe60169232f318cd0376a90018 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Wed, 29 Jan 2025 19:59:04 +0000 Subject: [PATCH] hotfix: first line being ignored --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 51b22d5..60fe033 100644 --- a/src/main.rs +++ b/src/main.rs @@ -97,7 +97,7 @@ fn main() -> io::Result<()> { code.push(line); } - let mut pc: usize = 1; + let mut pc: usize = 0; while pc < code.len() { let line = &code[pc]; pc = process(line, &mut accumulator, &mut memory, &labels, pc);