fix analysis of BEQ and Perm Loop
This commit is contained in:
parent
22fd128452
commit
9ba2812062
|
@ -447,13 +447,11 @@ bool CCodeBlock::AnalyzeInstruction ( DWORD PC, DWORD & TargetPC, DWORD & Contin
|
||||||
break;
|
break;
|
||||||
case R4300i_BEQ:
|
case R4300i_BEQ:
|
||||||
TargetPC = PC + ((short)Command.offset << 2) + 4;
|
TargetPC = PC + ((short)Command.offset << 2) + 4;
|
||||||
if (TargetPC == PC)
|
|
||||||
{
|
|
||||||
_Notify->BreakPoint(__FILE__,__LINE__);
|
|
||||||
}
|
|
||||||
if (Command.rs != 0 || Command.rt != 0)
|
if (Command.rs != 0 || Command.rt != 0)
|
||||||
{
|
{
|
||||||
ContinuePC = PC + 8;
|
ContinuePC = PC + 8;
|
||||||
|
} else if (TargetPC == PC) {
|
||||||
|
PermLoop = true;
|
||||||
}
|
}
|
||||||
IncludeDelaySlot = true;
|
IncludeDelaySlot = true;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue