Fixed typo in SubInstruction

This commit is contained in:
Cooper Harasyn 2017-12-27 15:52:00 -05:00
parent 2e9248ea2e
commit 3bd34bfcba

View File

@ -29,7 +29,7 @@ public class SubInstruction extends Instruction {
status.setSignFlag(Util.checkSign16(result)); status.setSignFlag(Util.checkSign16(result));
status.setZeroFlag((char) result == 0); status.setZeroFlag((char) result == 0);
status.setOverflowFlag(Util.checkOverFlowAdd16(a, b)); status.setOverflowFlag(Util.checkOverFlowSub16(a, b));
status.setCarryFlag(Util.checkCarry16(result)); status.setCarryFlag(Util.checkCarry16(result));
dst.set(dstIndex, result); dst.set(dstIndex, result);