Merge pull request #925 from LegendOfDragoon/master
Fix regression in CRecompilerOps::SPECIAL_DADDU()
This commit is contained in:
commit
35d36ad9b5
|
@ -4875,8 +4875,16 @@ void CRecompilerOps::SPECIAL_DADDU()
|
|||
Map_GPR_64bit(m_Opcode.rd, source1);
|
||||
if (IsConst(source2))
|
||||
{
|
||||
AddConstToX86Reg(GetMipsRegMapLo(m_Opcode.rd), GetMipsRegLo(source2));
|
||||
AdcConstToX86Reg(GetMipsRegMapHi(m_Opcode.rd), GetMipsRegHi(source2));
|
||||
DWORD LoReg = GetMipsRegLo(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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue