From c1ba944fc9d61e98df565dd413ec7f68728b1807 Mon Sep 17 00:00:00 2001 From: MadMaurice Date: Wed, 30 Aug 2023 21:35:57 +0200 Subject: [PATCH] cpu/decoder - RETI enables interrupts without delay --- cpu/decoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/decoder.cpp b/cpu/decoder.cpp index 04b077d..cbc9b6b 100644 --- a/cpu/decoder.cpp +++ b/cpu/decoder.cpp @@ -432,7 +432,7 @@ void Cpu::executeInstruction() break; case 0xD9: // RETI doRet(); - state.IME = IME_SCHEDULED; + state.IME = IME_ON; mcycles = 4; break; case 0xF3: // DI