Editing Talk:PS2 Emulation
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1,452: | Line 1,452: | ||
* rfid is hit, let's go to our newly hooked srr0 with 0x2EFCC address. | * rfid is hit, let's go to our newly hooked srr0 with 0x2EFCC address. | ||
* Time to use address preserved in r3. This address going thru few checks, it needs to be in 0x10000000- 0x12FFFFFF range (EE JIT Code). | * Time to use address preserved in r3. This address going thru few checks, it needs to be in 0x10000000- 0x12FFFFFF range (EE JIT Code). | ||
* From this address emulator get single word, that word is used to figure out what mips code wanted to do. This | * From this address emulator get single word, that word is used to figure out what mips code wanted to do. This isn't simple offset but some kind of custom identifier. | ||
* When matching identifier is found, task is performed. Some tasks just jump to function and do what is needed, some continue that hackfest and instead are injected into recompiled code as branches to functions that will perform what game want them to do. | |||
* When matching | |||
* blr is hit, remember that link register is patched earlier to 0x28F8C8 | * blr is hit, remember that link register is patched earlier to 0x28F8C8 | ||
* This function restores previously backed up regs and set link register to value returned by hook. That's all. | * This function restores previously backed up regs and set link register to value returned by hook. That's all. |