diff --git a/cpu/decoder.cpp b/cpu/decoder.cpp index b9b84b3..06b1116 100644 --- a/cpu/decoder.cpp +++ b/cpu/decoder.cpp @@ -256,11 +256,9 @@ void Cpu::executeInstruction() state.zero = (data == 0); break; case 0x40: // BIT - { - state.zero = (data & (1 << bit)) == 0; - state.subtract = false; - state.halfcarry = true; - } + state.zero = (data & (1 << bit)) == 0; + state.subtract = false; + state.halfcarry = true; break; case 0x80: // RES data &= ~(1 << bit);