ack/mach/6500/libem/indir.s

19 lines
346 B
ArmAsm
Raw Permalink Normal View History

1984-12-17 11:03:13 +00:00
.define Indir
1987-01-30 18:41:42 +00:00
.sect .text
.sect .rom
.sect .data
.sect .bss
.sect .text
1984-12-17 11:03:13 +00:00
! 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)