FF6 Hacking
Detection of JSR or JSL - Printable Version

+- FF6 Hacking (https://www.ff6hacking.com/forums)
+-- Forum: Discussion Forums (https://www.ff6hacking.com/forums/forum-5.html)
+--- Forum: Magitek Research Facility (https://www.ff6hacking.com/forums/forum-9.html)
+--- Thread: Detection of JSR or JSL (/thread-2541.html)



Detection of JSR or JSL - madsiur - 03-29-2014

I have a routine in bank C0 that store an offset in $1A. However I would like to use this routine from bank C1. Is there something I could do in my routine to detect if I'm coming from a JSL or JSR then branch to either a RTS or a RTL depending of the case?


RE: Detection of JSR or JSL - Synchysi - 03-30-2014

Not really, but there is this method that I've used before.

https://www.ff6hacking.com/forums/showthread.php?tid=2301