DSPLLE - addaxl,mulc,'ln fix

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5138 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Marko Pusljar
2010-02-27 21:24:25 +00:00
parent 0425ff2f06
commit ff8ce634e3
3 changed files with 19 additions and 9 deletions

View File

@ -58,15 +58,15 @@ void addaxl(const UDSPInstruction& opc)
u8 sreg = (opc.hex >> 9) & 0x1;
u8 dreg = (opc.hex >> 8) & 0x1;
s64 acc = dsp_get_long_acc(dreg);
s64 acx = dsp_get_ax_l(sreg);
u64 acc = (u64)dsp_get_long_acc(dreg);
u16 acx = (u16)dsp_get_ax_l(sreg);
acc += acx;
zeroWriteBackLog();
dsp_set_long_acc(dreg, acc);
Update_SR_Register64(acc);
dsp_set_long_acc(dreg, (s64)acc);
Update_SR_Register64((s64)acc);
}
// TSTAXH $axR.h