ack/mach/6500/libem/indir.s
1987-01-30 18:41:42 +00:00

19 lines
346 B
ArmAsm

.define Indir
.sect .text
.sect .rom
.sect .data
.sect .bss
.sect .text
! This subroutine performs an indirect procedurecall.
! This must be done this way since the jump instruction
! is the only one which can indirect change the programcounter.
! The address of the function must be in zeropage loactions
! ADDR, ADDR+1.
Indir:
jmp (ADDR)