68HC05/08 Absolute vs Relative Addressing

ACTIONS       equ       $1000

JMPNUMBER     equ       12
clrx EXECSUB jsr ACTIONS, X incx incx cmpx #JMPNUMBER*2 bne EXECSUB
* Located somewhere else in memory ACTIONS bra SUB01 bra SUB02 . . . bra SUB12
SUB1 (Some stuff to do) rts SUB2 (Some different stuff to do) rts . . . SUB12 (Still different stuff to do) rts


last update: 13Apr1998