From 7902ac46418ac514c271236ad758f28d900dbd15 Mon Sep 17 00:00:00 2001 From: MadMaurice Date: Tue, 29 Aug 2023 21:14:19 +0200 Subject: [PATCH] cpu/decoder - little code improvement --- cpu/decoder.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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);