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);