cpu/decoder - Remove more extraneous brackets

This commit is contained in:
madmaurice 2023-08-30 13:41:35 +02:00
parent a8edf40b96
commit 53daaeba6b

View file

@ -320,13 +320,11 @@ void Cpu::executeInstruction()
mcycles = 2;
break;
case 0x07: // RLCA
{
state.carry = (state.A & 0x80);
state.A = (state.A << 1) | (state.carry ? 0x01 : 0x00);
state.halfcarry = false;
state.subtract = false;
state.zero = false;
}
state.carry = (state.A & 0x80);
state.A = (state.A << 1) | (state.carry ? 0x01 : 0x00);
state.halfcarry = false;
state.subtract = false;
state.zero = false;
break;
case 0x17: // RLA
{
@ -339,13 +337,11 @@ void Cpu::executeInstruction()
}
break;
case 0x0F: // RRCA
{
state.carry = (state.A & 0x01);
state.A = (state.A >> 1) | (state.carry ? 0x80 : 0x00);
state.halfcarry = false;
state.subtract = false;
state.zero = false;
}
state.carry = (state.A & 0x01);
state.A = (state.A >> 1) | (state.carry ? 0x80 : 0x00);
state.halfcarry = false;
state.subtract = false;
state.zero = false;
break;
case 0x1F: // RRA
{