This commit is contained in:
Alex Janka 2023-02-24 16:49:08 +11:00
parent a760fecd05
commit d6c8be4bc5

View file

@ -144,7 +144,6 @@ impl Cpu {
let (result, carry) = first.overflowing_add(second);
self.clear_flag(Flags::NSubtract);
self.set_or_clear_flag(Flags::Carry, carry);
self.set_or_clear_flag(Flags::Zero, result == 0x0);
self.set_or_clear_flag(
Flags::HalfCarry,
(((first & 0xFFF).wrapping_add(second & 0xFFF)) & 0x1000) == 0x1000,