diff --git a/cpu/decoder.cpp b/cpu/decoder.cpp index 4830dc4..73587f2 100644 --- a/cpu/decoder.cpp +++ b/cpu/decoder.cpp @@ -432,7 +432,7 @@ void Cpu::executeInstruction() mcycles = 4; break; case 0xF8: // LD HL, SP + e8 - add16_8(state.SP, state.SP, readPC8()); + add16_8(state.HL, state.SP, readPC8()); state.zero = false; mcycles = 3; break;