mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Merge pull request #1086 from FioraAeterna/fixsrawint
Interpreter: fix carry calculation in srawx
This commit is contained in:
@ -362,8 +362,10 @@ void Interpreter::srawx(UGeckoInstruction _inst)
|
||||
}
|
||||
else
|
||||
{
|
||||
m_GPR[_inst.RA] = (u32)((s32)m_GPR[_inst.RS] >> amount);
|
||||
if (m_GPR[_inst.RS] & 0x80000000)
|
||||
s32 rrs = m_GPR[_inst.RS];
|
||||
m_GPR[_inst.RA] = rrs >> amount;
|
||||
|
||||
if ((rrs < 0) && (rrs << (32 - amount)))
|
||||
SetCarry(1);
|
||||
else
|
||||
SetCarry(0);
|
||||
|
Reference in New Issue
Block a user