home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / proasm / routines / basicmac.r < prev    next >
Text File  |  1993-07-19  |  1KB  |  68 lines

  1.  
  2. ;---;  basicmac.r  ;-----------------------------------------------------------
  3. *
  4. *    ****    MACROS FOR SELECTIVE ROUTINE ASSEMBLING    ****
  5. *
  6. *    Author        Stefan Walter
  7. *    Version        1.02
  8. *    Last Revision    30.03.93
  9. *    Identifier    bam_defined
  10. *    Prefix        bam_    (Basic Macros)
  11. *                 ¯¯    ¯
  12. *    Macros        CALL_, JUMP_, NEED_, BRAB_, JSRLIB_
  13. *
  14. ;------------------------------------------------------------------------------
  15.  
  16. ;------------------
  17.     ifnd    bam_defined
  18. bam_defined    =1
  19.  
  20. ;------------------
  21. *
  22. * CALL_: Call a routine.
  23. *
  24. CALL_    MACRO
  25.     bsr    \1
  26. xxx_\1    SET    1
  27.     ENDM
  28.  
  29. ;------------------
  30. *
  31. * JUMP_: Jump to a routine.
  32. *
  33. JUMP_    MACRO
  34.     bra    \1
  35. xxx_\1    SET    1
  36.     ENDM
  37.  
  38. ;------------------
  39. *
  40. * BRAB_: Branch short to a routine.
  41. *
  42. BRAB_    MACRO
  43.     bra.s    \1
  44. xxx_\1    SET    1
  45.     ENDM
  46.  
  47. ;------------------
  48. *
  49. * NEED_: Just generate another routine.
  50. *
  51. NEED_    MACRO
  52. xxx_\1    SET    1
  53.     ENDM
  54.  
  55. ;------------------
  56. *
  57. * JSRLIB_
  58. *
  59. JSRLIB_    MACRO    
  60.     jsr    _LVO\1(a6)
  61.     ENDM
  62.  
  63. ;------------------------------------------------------------------------------
  64.  
  65.     ENDIF
  66.     END
  67.  
  68.