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:
LegendOfDragoon 2015-02-18 18:18:27 -08:00
parent 4d2611fadd
commit 36e5d8d353
1 changed files with 2 additions and 2 deletions

View File

@ -104,9 +104,9 @@ BOOL IsNextInstructionMmx(DWORD PC) {
case RSP_VECTOR_VADD:
case RSP_VECTOR_VSUB:
/* Requires no accumulator write! & No flags! */
if (WriteToAccum(Low16BitAccum, CompilePC) == TRUE) {
if (WriteToAccum(Low16BitAccum, PC) == TRUE) {
return FALSE;
} else if (UseRspFlags(CompilePC) == TRUE) {
} else if (UseRspFlags(PC) == TRUE) {
return FALSE;
} else if ((RspOp.rs & 0x0f) >= 2 && (RspOp.rs & 0x0f) <= 7 && IsMmx2Enabled == FALSE) {
return FALSE;