From 53daaeba6ba7b2cb945211821e01704e8fdccb0e Mon Sep 17 00:00:00 2001 From: MadMaurice Date: Wed, 30 Aug 2023 13:41:35 +0200 Subject: [PATCH] cpu/decoder - Remove more extraneous brackets --- cpu/decoder.cpp | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) 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 {