DSP: fix for interpreter, jit ADDP

should probably use carry, not carry2
This commit is contained in:
Pierre 2012-11-05 00:43:44 +01:00
parent 5cbe75b389
commit 9299026572
2 changed files with 3 additions and 3 deletions

View File

@ -464,7 +464,7 @@ void addp(const UDSPInstruction opc)
dsp_set_long_acc(dreg, res);
res = dsp_get_long_acc(dreg);
Update_SR_Register64(res, isCarry2(acc, res), isOverflow(acc, prod, res));
Update_SR_Register64(res, isCarry(acc, res), isOverflow(acc, prod, res));
}
// ADDAXL $acD, $axS.l

View File

@ -750,12 +750,12 @@ void DSPEmitter::addp(const UDSPInstruction opc)
ADD(64, R(RAX), R(RDX));
// dsp_set_long_acc(dreg, res);
// res = dsp_get_long_acc(dreg);
// Update_SR_Register64(res, isCarry2(acc, res), isOverflow(acc, prod, res));
// Update_SR_Register64(res, isCarry(acc, res), isOverflow(acc, prod, res));
if (FlagsNeeded())
{
MOV(64, R(RCX), R(RAX));
set_long_acc(dreg, RCX);
Update_SR_Register64_Carry2(EAX, tmp1);
Update_SR_Register64_Carry(EAX, tmp1);
}
else
{