mirror of
https://github.com/libretro/Play-.git
synced 2025-02-13 04:52:32 +00:00
Improved MipsAnalysis by handling unconditional jumps to detect functions.
This commit is contained in:
parent
03656baedb
commit
c5a26aab15
@ -241,6 +241,13 @@ void CMIPSAnalysis::ExpandSubroutines(uint32 executableStart, uint32 executableE
|
||||
//+4 for delay slot
|
||||
return address + 4;
|
||||
}
|
||||
|
||||
//Check for BEQ R0, R0, $label
|
||||
if((opcode & 0xFFFF0000) == 0x10000000)
|
||||
{
|
||||
//+4 for delay slot
|
||||
return address + 4;
|
||||
}
|
||||
}
|
||||
|
||||
return MIPS_INVALID_PC;
|
||||
|
Loading…
x
Reference in New Issue
Block a user