Whoops: missed a couple of flag adjustments.

Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
Adrian.Conlon 2017-06-09 16:19:35 +01:00
parent 838580cc3d
commit 49d7a4c169

View File

@ -307,6 +307,7 @@ void EightBit::LR35902::add(uint8_t& operand, uint8_t value, int carry) {
clearFlag(NF);
setFlag(CF, result.word & Bit8);
adjustZero(operand);
}
void EightBit::LR35902::adc(uint8_t& operand, uint8_t value) {
@ -324,6 +325,7 @@ void EightBit::LR35902::sub(uint8_t& operand, uint8_t value, int carry) {
setFlag(NF);
setFlag(CF, result.word & Bit8);
adjustZero(operand);
}
void EightBit::LR35902::sbc(uint8_t& operand, uint8_t value) {