From c90788d3309eaeb5be97950f08efb698c563bec0 Mon Sep 17 00:00:00 2001 From: MadMaurice Date: Tue, 29 Aug 2023 23:47:18 +0200 Subject: [PATCH] cpu/decoder - Implement STOP n8 --- cpu/decoder.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpu/decoder.cpp b/cpu/decoder.cpp index 5767112..b47702b 100644 --- a/cpu/decoder.cpp +++ b/cpu/decoder.cpp @@ -459,6 +459,10 @@ void Cpu::executeInstruction() case 0x76: // HALT halted = true; break; + case 0x10: // STOP n8 + (void)readPC8(); + stopped = true; + break; case 0xE8: // ADD SP, e8 {