From c79e67b8cc026ab01b37011bc27cec21dce8abc0 Mon Sep 17 00:00:00 2001 From: Ricardo Maurizio Paul Date: Sat, 21 May 2022 14:45:16 +0200 Subject: [PATCH] fix rlc_r zero flag --- Core/sm83_cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/sm83_cpu.c b/Core/sm83_cpu.c index 1623106..c35e539 100644 --- a/Core/sm83_cpu.c +++ b/Core/sm83_cpu.c @@ -1380,7 +1380,7 @@ static void rlc_r(GB_gameboy_t *gb, uint8_t opcode) if (carry) { gb->af |= GB_CARRY_FLAG; } - if (!(value << 1)) { + if (value == 0) { gb->af |= GB_ZERO_FLAG; } }