fix analysis of BEQ and Perm Loop

This commit is contained in:
zilmar 2012-10-17 22:34:55 +11:00
parent 22fd128452
commit 9ba2812062
1 changed files with 2 additions and 4 deletions

View File

@ -447,13 +447,11 @@ bool CCodeBlock::AnalyzeInstruction ( DWORD PC, DWORD & TargetPC, DWORD & Contin
break;
case R4300i_BEQ:
TargetPC = PC + ((short)Command.offset << 2) + 4;
if (TargetPC == PC)
{
_Notify->BreakPoint(__FILE__,__LINE__);
}
if (Command.rs != 0 || Command.rt != 0)
{
ContinuePC = PC + 8;
} else if (TargetPC == PC) {
PermLoop = true;
}
IncludeDelaySlot = true;
break;