cpu/cpu - Fix writeback for add16

This commit is contained in:
madmaurice 2023-09-02 00:13:07 +02:00
parent 9db97b80ab
commit c7cb345c08

View file

@ -258,7 +258,7 @@ void Cpu::add16(u16& out, u16 lhs, u16 rhs)
u32 res32 = lhs + rhs; u32 res32 = lhs + rhs;
state.carry = (res32 & 0x10000); state.carry = (res32 & 0x10000);
state.subtract = false; state.subtract = false;
lhs = (u16)res32; out = (u16)res32;
} }
bool Cpu::handleInterrupts() bool Cpu::handleInterrupts()