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.subtract = false;
state.zero = false; state.zero = false;
} }
break;
case 0x17: // RLA case 0x17: // RLA
{ {
bool msb_set = (state.A & 0x80); bool msb_set = (state.A & 0x80);
@ -339,6 +340,7 @@ void Cpu::executeInstruction()
state.subtract = false; state.subtract = false;
state.zero = false; state.zero = false;
} }
break;
case 0x0F: // RRCA case 0x0F: // RRCA
{ {
state.carry = (state.A & 0x01); state.carry = (state.A & 0x01);
@ -347,6 +349,7 @@ void Cpu::executeInstruction()
state.subtract = false; state.subtract = false;
state.zero = false; state.zero = false;
} }
break;
case 0x1F: // RRA case 0x1F: // RRA
{ {
bool lsb_set = (state.A & 0x01); bool lsb_set = (state.A & 0x01);
@ -356,6 +359,7 @@ void Cpu::executeInstruction()
state.subtract = false; state.subtract = false;
state.zero = false; state.zero = false;
} }
break;
case 0xFA: // LD A, [nn] case 0xFA: // LD A, [nn]
state.A = bus->read8(readPC16()); state.A = bus->read8(readPC16());
mcycles = 4; mcycles = 4;
@ -429,6 +433,7 @@ void Cpu::executeInstruction()
state.A = ~state.A; state.A = ~state.A;
state.subtract = true; state.subtract = true;
state.halfcarry = true; state.halfcarry = true;
break;
case 0xC3: // JP nn case 0xC3: // JP nn
state.PC = readPC16(); state.PC = readPC16();