cpu/cpu - Fix writeback for add16
This commit is contained in:
parent
9db97b80ab
commit
c7cb345c08
1 changed files with 1 additions and 1 deletions
|
@ -258,7 +258,7 @@ void Cpu::add16(u16& out, u16 lhs, u16 rhs)
|
|||
u32 res32 = lhs + rhs;
|
||||
state.carry = (res32 & 0x10000);
|
||||
state.subtract = false;
|
||||
lhs = (u16)res32;
|
||||
out = (u16)res32;
|
||||
}
|
||||
|
||||
bool Cpu::handleInterrupts()
|
||||
|
|
Loading…
Reference in a new issue