ee: drop comma operator

New syntax is script friendly
This commit is contained in:
Gregory Hainaut 2015-11-23 23:16:43 +01:00
parent 9b19dfd562
commit 3684c26cbc
1 changed files with 12 additions and 3 deletions

View File

@ -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;