Fixed a few old bugs

- Fixed a where the VM excuted one loop regardless of instructions.
- Use the full 32 bits if an instruction is less.
This commit is contained in:
Anthony Foxclaw 2020-02-09 18:43:23 -05:00
parent b825931ce5
commit 13069b7ebd
2 changed files with 8 additions and 4 deletions

View file

@ -35,6 +35,10 @@ impl AssemblerInstruction {
}
}
while results.len() < 4 {
results.push(0);
}
results
}