Functional Sublw instruction (#8)
* Functional Sublw instruction * Fixed zeroBit in Addlw after overflow and result == 0
This commit is contained in:
@@ -18,7 +18,7 @@ public class Addlw extends CommandUtils implements Command
|
||||
|
||||
checkZeroBit(result);
|
||||
checkCarryBit(result);
|
||||
checkDigitCarryBit(result, literal);
|
||||
checkDigitCarryBit(literal);
|
||||
|
||||
Memory.workingRegister = result % 256;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user