From 5d054c90f8879a8bf786b5f4cf84c4a5ed95afc1 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Wed, 31 Aug 2022 20:21:44 +0200 Subject: [PATCH] Emulator: Update comment wording --- src/cpu.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cpu.cpp b/src/cpu.cpp index 5fa09a3..239ea86 100644 --- a/src/cpu.cpp +++ b/src/cpu.cpp @@ -478,7 +478,7 @@ void CPU::cp() // Zero flag m_zf = ((m_a - register_) & 0xff) == 0; m_nf = 1; - // Note: for negation between two positive numbers the carry result is flipped! + // Note: for subtraction between two positive numbers the carry result is flipped! m_hf = !isCarry(m_a, register_, 0x10); m_cf = !isCarry(m_a, register_, 0x100); }; @@ -706,7 +706,7 @@ void CPU::sbc8() // Set flags m_nf = 1; - // Note: for negation between two positive numbers the carry result is flipped! + // Note: for subtraction between two positive numbers the carry result is flipped! m_hf = !isCarry(m_a, register_, 0x10); m_cf = !isCarry(m_a, (register_ + (old_carry) ? 1 : 0), 0x100); @@ -753,7 +753,7 @@ void CPU::sub8() // Set flags m_nf = 1; - // Note: for negation between two positive numbers the carry result is flipped! + // Note: for subtraction between two positive numbers the carry result is flipped! m_hf = !isCarry(m_a, register_, 0x10); m_cf = !isCarry(m_a, register_, 0x100);