From c396e7fcf6179b41d9e0443f2495671ee6c00302 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Thu, 1 Sep 2022 13:33:34 +0200 Subject: [PATCH] Emulator: Fix LD L,(HL) opcode 0x6e --- src/cpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu.cpp b/src/cpu.cpp index a8a4b36..44ea34b 100644 --- a/src/cpu.cpp +++ b/src/cpu.cpp @@ -1107,7 +1107,7 @@ void CPU::ldr8() case 0x6d: /* LD L,L m_l = m_l; */ break; case 0x6e: /* LD L,(HL) */ { m_wait_cycles += 4; // + 4 = 8 total - m_e = read(hl()); + m_l = read(hl()); break; } case 0x6f: /* LD L,A */ m_l = m_a; break;