lol
This commit is contained in:
parent
a760fecd05
commit
d6c8be4bc5
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue