From ac03d70d839fbaf45b7f124e799e5c5d87b7e679 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Sat, 27 Aug 2022 13:38:04 +0200 Subject: [PATCH] fixup! Emulator: Implement SWAP opcodes --- src/cpu-prefix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu-prefix.cpp b/src/cpu-prefix.cpp index 1d5205e..d51dfd5 100644 --- a/src/cpu-prefix.cpp +++ b/src/cpu-prefix.cpp @@ -34,7 +34,7 @@ void CPU::prefix() else if (opcode >= 0x18 && opcode <= 0x1f) { rr(); } - else if (opcode >= 0x30 && opcode <= 0x3f) { + else if (opcode >= 0x30 && opcode <= 0x37) { swap(); } else if (opcode >= 0x40 && opcode <= 0x7f) {