WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: Igglyboo on March 15, 2009, 05:00:03 PM

Title: Find out where something is branched from?
Post by: Igglyboo on March 15, 2009, 05:00:03 PM
This is probably not possible but I'm not completely sure.
I basically want to find out where something is branched from without doing massive steps through the execution.
Like if I have an op code somewhere I want to know if i can find out where the execution is before the execution is transferred to the op code I'm looking at.
Title: Re: Find out where something is branched from?
Post by: Link on March 15, 2009, 09:22:47 PM
Good question and easy answer.. in most cases the LR register will kinda tell you..

when a blr command is executed your wii is going to jump to the address in the LR address.. LR-4 is normally the branch command which started the procedure you're tracing!