diff --git a/cpu/decoder.cpp b/cpu/decoder.cpp index 926e1af..1b2d4fe 100644 --- a/cpu/decoder.cpp +++ b/cpu/decoder.cpp @@ -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 {