Fix problem with IsNextInstructionMmx()
It's supposed to check the next instruction, which is PC, rather than the current instruction which is CompilePC. This mistake is what caused graphical errors in RE2.
This commit is contained in:
parent
4d2611fadd
commit
36e5d8d353
|
@ -104,9 +104,9 @@ BOOL IsNextInstructionMmx(DWORD PC) {
|
||||||
case RSP_VECTOR_VADD:
|
case RSP_VECTOR_VADD:
|
||||||
case RSP_VECTOR_VSUB:
|
case RSP_VECTOR_VSUB:
|
||||||
/* Requires no accumulator write! & No flags! */
|
/* Requires no accumulator write! & No flags! */
|
||||||
if (WriteToAccum(Low16BitAccum, CompilePC) == TRUE) {
|
if (WriteToAccum(Low16BitAccum, PC) == TRUE) {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
} else if (UseRspFlags(CompilePC) == TRUE) {
|
} else if (UseRspFlags(PC) == TRUE) {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
} else if ((RspOp.rs & 0x0f) >= 2 && (RspOp.rs & 0x0f) <= 7 && IsMmx2Enabled == FALSE) {
|
} else if ((RspOp.rs & 0x0f) >= 2 && (RspOp.rs & 0x0f) <= 7 && IsMmx2Enabled == FALSE) {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in New Issue