cpu - Change END to increment IP, to make debugging printout work when the only line in the program is an END

This commit is contained in:
n loewen 2023-08-24 15:13:49 +01:00
parent 0fca21dfab
commit 51bc13fe5b
1 changed files with 1 additions and 0 deletions

1
cpu.js
View File

@ -64,6 +64,7 @@ const Instructions = {
end: () => {
CPU.currentInstruction.mnemonic = 'END';
CPU.running = false;
CPU.IP = CPU.IP += 2;
},
store_lit: (lit) => {