cpu/decoder - little code improvement

This commit is contained in:
madmaurice 2023-08-29 21:14:19 +02:00
parent a9b0b37a2e
commit 7902ac4641

View file

@ -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);