indir.s 346 B

123456789101112131415161718
  1. .define Indir
  2. .sect .text
  3. .sect .rom
  4. .sect .data
  5. .sect .bss
  6. .sect .text
  7. ! This subroutine performs an indirect procedurecall.
  8. ! This must be done this way since the jump instruction
  9. ! is the only one which can indirect change the programcounter.
  10. ! The address of the function must be in zeropage loactions
  11. ! ADDR, ADDR+1.
  12. Indir:
  13. jmp (ADDR)