From c39a680293bc1809eb6d9520bfa696f8c3f66893 Mon Sep 17 00:00:00 2001 From: MadMaurice Date: Tue, 29 Aug 2023 23:06:50 +0200 Subject: [PATCH] cpu/decoder - Fix IME state for RETI --- cpu/decoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/decoder.cpp b/cpu/decoder.cpp index fa318f4..c6e23f6 100644 --- a/cpu/decoder.cpp +++ b/cpu/decoder.cpp @@ -445,7 +445,7 @@ void Cpu::executeInstruction() break; case 0xD9: // RETI doRet(); - state.IME = IME_ON; + state.IME = IME_SCHEDULED; mcycles = 4; break;