From 9db97b80abfff93178a2da3b56120b3418e27270 Mon Sep 17 00:00:00 2001 From: MadMaurice Date: Sat, 2 Sep 2023 00:01:55 +0200 Subject: [PATCH] cpu/decoder - Fix decoding of bit op codes --- cpu/decoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/decoder.cpp b/cpu/decoder.cpp index d7c2c0b..a208c5b 100644 --- a/cpu/decoder.cpp +++ b/cpu/decoder.cpp @@ -192,7 +192,7 @@ void Cpu::executeInstruction() switch(prefix_op & 0xC0) { case 0x00: - switch(prefix_op & 0xF1) + switch(prefix_op & 0xF8) { case 0x00: // RLC {