Functional Sublw instruction (#8)

* Functional Sublw instruction

* Fixed zeroBit in Addlw after overflow and result == 0
This commit is contained in:
DarkressX
2023-05-23 17:47:25 +02:00
committed by GitHub
parent d5eaee2bde
commit 5e08c6d728
4 changed files with 49 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ public class Addlw extends CommandUtils implements Command
checkZeroBit(result);
checkCarryBit(result);
checkDigitCarryBit(result, literal);
checkDigitCarryBit(literal);
Memory.workingRegister = result % 256;
}