From d6c8be4bc5f036ca0d128b19e8569b386f1ef0e9 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Fri, 24 Feb 2023 16:49:08 +1100 Subject: [PATCH] lol --- src/processor/instructions/primitives.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/processor/instructions/primitives.rs b/src/processor/instructions/primitives.rs index 719d9a5..0520a1d 100644 --- a/src/processor/instructions/primitives.rs +++ b/src/processor/instructions/primitives.rs @@ -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,