Correctly detect bltzal as func calls in debug.

This commit is contained in:
Unknown W. Brackets committed 2013-05-26 16:24:58 -07:00
1 parent 82dd2780f5
commit 44e20fb213
3 files changed
+21 -2

No files matched your search

+18 -1
View File
@@ -56,7 +56,24 @@ namespace MIPSCodeUtils
return addr + ((signed short)(op&0xFFFF)<<2);
}
else
return INVALIDTARGET;
return INVALIDTARGET;
}
else
return INVALIDTARGET;
}
u32 GetBranchTargetNoRA(u32 addr)
{
u32 op = Memory::Read_Instruction(addr);
if (op)
{
u32 info = MIPSGetInfo(op);
if ((info & IS_CONDBRANCH) && !(info & OUT_RA))
{
return addr + ((signed short)(op&0xFFFF)<<2);
}
else
return INVALIDTARGET;
}
else
return INVALIDTARGET;