cpu/decoder - Reset carry flag for PREFIX SWAP instruction

This commit is contained in:
madmaurice 2023-08-29 23:06:28 +02:00
parent b6f0f4416f
commit 28bc389644

View file

@ -263,6 +263,7 @@ void Cpu::executeInstruction()
break; break;
case 0x30: // SWAP case 0x30: // SWAP
data = ((data >> 4) & 0x0F) | ((data << 4) & 0xF0); data = ((data >> 4) & 0x0F) | ((data << 4) & 0xF0);
state.carry = false;
break; break;
case 0x38: // SRL case 0x38: // SRL
state.carry = (data & 0x01); state.carry = (data & 0x01);