From 7180ae8c40e0f2f31e53c7bff6f1e71c8ec5d9e5 Mon Sep 17 00:00:00 2001 From: MadMaurice Date: Tue, 29 Aug 2023 23:32:11 +0200 Subject: [PATCH] cpu/decoder - Implement HALT --- cpu/decoder.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpu/decoder.cpp b/cpu/decoder.cpp index 87c2d37..f50a8b4 100644 --- a/cpu/decoder.cpp +++ b/cpu/decoder.cpp @@ -456,6 +456,10 @@ void Cpu::executeInstruction() state.IME = IME_SCHEDULED; break; + case 0x76: // HALT + halted = true; + break; + case 0xE8: // ADD SP, e8 { u32 lhs = state.SP;