increment PC after every Instruction

This commit is contained in:
darkress
2023-06-12 13:24:11 +02:00
parent 184c49f3ae
commit 54381896c3
6 changed files with 10 additions and 4 deletions

View File

@@ -25,8 +25,7 @@ public class Decfsz extends FileRegisterCommandUtils implements Command
if((result % 256) == 0)
{
Nop nop = new Nop();
nop.execute(); // TODO: What happens if an interrupt gets triggered during the nop execution?
ProgramCounter.incPC();
}
ProgramCounter.incPC();
}