mirror of https://github.com/PCSX2/pcsx2.git
iR5900: Make const register write clearer
This was apparently sign extending anyway, but using SD makes it clear that the 32-bit assignment will sign extend to 64-bit.
This commit is contained in:
parent
a216f28c9d
commit
d7de81aaaa
|
@ -159,7 +159,7 @@ void recWritebackConstHILO(u64 res, int writed, int upper)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!writed || !_Rd_) return;
|
if (!writed || !_Rd_) return;
|
||||||
g_cpuConstRegs[_Rd_].UD[0] = (s32)(res & 0xffffffff); //that is the difference
|
g_cpuConstRegs[_Rd_].SD[0] = (s32)(res & 0xffffffffULL); //that is the difference
|
||||||
}
|
}
|
||||||
|
|
||||||
//// MULT
|
//// MULT
|
||||||
|
|
Loading…
Reference in New Issue