hotfix: first line being ignored
This commit is contained in:
parent
169105952a
commit
3d16a83855
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue