[A89] Re: functions addresses


[Prev][Next][Index][Thread]

[A89] Re: functions addresses




Also, in the TIGCC docs, for ROM calls, it will say a number. Multiply that number by 4 and add it to 0xc8, and you will get its address in the jump table. For example:

move.l $c8,a5

move.l ScreenClear*4(a5),a0

jsr (a0)

In that example, it loads the address of the jump table into a5, the address of ClrScr (ScreenClear) into a0, and jumps to it. Loading the jump table address into a5 is the same a OPTIMIZE_ROM_CALLS. I recommend reading Kevin's nostub ASM programming tutorial here.



---------------------------------
Do You Yahoo!?
Sign-up for Video Highlights of 2002 FIFA World Cup




Follow-Ups: References: