Merge pull request #33 from project64/master

u2d
This commit is contained in:
AmbientMalice 2016-01-25 17:32:24 +10:00
commit 78ac0604cf
1 changed files with 10 additions and 2 deletions

View File

@ -4875,8 +4875,16 @@ void CRecompilerOps::SPECIAL_DADDU()
Map_GPR_64bit(m_Opcode.rd, source1); Map_GPR_64bit(m_Opcode.rd, source1);
if (IsConst(source2)) if (IsConst(source2))
{ {
AddConstToX86Reg(GetMipsRegMapLo(m_Opcode.rd), GetMipsRegLo(source2)); DWORD LoReg = GetMipsRegLo(source2);
AdcConstToX86Reg(GetMipsRegMapHi(m_Opcode.rd), GetMipsRegHi(source2)); AddConstToX86Reg(GetMipsRegMapLo(m_Opcode.rd), LoReg);
if(LoReg != 0)
{
AdcConstToX86Reg(GetMipsRegMapHi(m_Opcode.rd), GetMipsRegHi(source2));
}
else
{
AddConstToX86Reg(GetMipsRegMapHi(m_Opcode.rd), GetMipsRegHi(source2));
}
} }
else if (IsMapped(source2)) else if (IsMapped(source2))
{ {