From 2d4daf821e6b911dee541da633bab867c27bd742 Mon Sep 17 00:00:00 2001 From: MadMaurice Date: Wed, 30 Aug 2023 12:32:38 +0200 Subject: [PATCH] cpu/decoder - Add missing breaks --- cpu/decoder.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cpu/decoder.cpp b/cpu/decoder.cpp index 34f9933..36aa25b 100644 --- a/cpu/decoder.cpp +++ b/cpu/decoder.cpp @@ -330,6 +330,7 @@ void Cpu::executeInstruction() state.subtract = false; state.zero = false; } + break; case 0x17: // RLA { bool msb_set = (state.A & 0x80); @@ -339,6 +340,7 @@ void Cpu::executeInstruction() state.subtract = false; state.zero = false; } + break; case 0x0F: // RRCA { state.carry = (state.A & 0x01); @@ -347,6 +349,7 @@ void Cpu::executeInstruction() state.subtract = false; state.zero = false; } + break; case 0x1F: // RRA { bool lsb_set = (state.A & 0x01); @@ -356,6 +359,7 @@ void Cpu::executeInstruction() state.subtract = false; state.zero = false; } + break; case 0xFA: // LD A, [nn] state.A = bus->read8(readPC16()); mcycles = 4; @@ -429,6 +433,7 @@ void Cpu::executeInstruction() state.A = ~state.A; state.subtract = true; state.halfcarry = true; + break; case 0xC3: // JP nn state.PC = readPC16();