cpu/decoder - Add missing breaks

This commit is contained in:
madmaurice 2023-08-30 12:32:38 +02:00
parent b434b63b75
commit 2d4daf821e

View file

@ -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();