mirror of https://github.com/PCSX2/pcsx2.git
parent
9b19dfd562
commit
3684c26cbc
|
@ -191,7 +191,10 @@ void _flushConstRegs()
|
|||
if (!GPR_IS_CONST1(i) || g_cpuFlushedConstReg & (1<<i)) continue;
|
||||
if (g_cpuConstRegs[i].SL[j] != 0) continue;
|
||||
|
||||
if (eaxval != 0) XOR32RtoR(EAX, EAX), eaxval = 0;
|
||||
if (eaxval != 0) {
|
||||
XOR32RtoR(EAX, EAX);
|
||||
eaxval = 0;
|
||||
}
|
||||
|
||||
MOV32RtoM((uptr)&cpuRegs.GPR.r[i].SL[j], EAX);
|
||||
done[j] |= 1<<i;
|
||||
|
@ -204,8 +207,14 @@ void _flushConstRegs()
|
|||
if (!GPR_IS_CONST1(i) || g_cpuFlushedConstReg & (1<<i)) continue;
|
||||
if (g_cpuConstRegs[i].SL[j] != -1) continue;
|
||||
|
||||
if (eaxval > 0) XOR32RtoR(EAX, EAX), eaxval = 0;
|
||||
if (eaxval == 0) NOT32R(EAX), eaxval = -1;
|
||||
if (eaxval > 0) {
|
||||
XOR32RtoR(EAX, EAX);
|
||||
eaxval = 0;
|
||||
}
|
||||
if (eaxval == 0) {
|
||||
NOT32R(EAX);
|
||||
eaxval = -1;
|
||||
}
|
||||
|
||||
MOV32RtoM((uptr)&cpuRegs.GPR.r[i].SL[j], EAX);
|
||||
done[j + 2] |= 1<<i;
|
||||
|
|
Loading…
Reference in New Issue