implemented decfsz Instruction

This commit is contained in:
Darkress
2023-05-31 20:50:27 +02:00
parent e18ec6d167
commit 89f4845df6
3 changed files with 12 additions and 4 deletions

View File

@@ -22,6 +22,12 @@ public class Decfsz extends FileRegisterCommandUtils implements Command
checkZeroBit(result);
writeToDestination(destinationBit, address, result % 256); // Catch underflow
if((result % 256) == 0)
{
Nop nop = new Nop();
nop.execute();
}
ProgramCounter.incPC();
}
}