hotfix: first line being ignored

This commit is contained in:
Muhammad Nauman Raza 2025-01-29 19:59:04 +00:00
parent 169105952a
commit 3d16a83855
Signed by: devraza
GPG key ID: 91EAD6081011574B

View file

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