cpu/decoder - Remove more extraneous brackets
This commit is contained in:
parent
a8edf40b96
commit
53daaeba6b
1 changed files with 10 additions and 14 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue