home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / prog-asm / asm.lzh / ASM / INCLUDE / EXEC / STRINGS.I < prev    next >
Encoding:
Text File  |  1991-08-16  |  876 b   |  54 lines

  1. ;    File:    strings.i
  2. ;    asm(1.0) macro package - Various defines/macros that
  3. ;    may be found useful.
  4. ;
  5. ;    This macro package has been written and placed in the
  6. ;    public domain by Douglas J Leavitt, 1986.  This macro
  7. ;    package is based on Commodore-Amiga header files printed
  8. ;    In The ROM Kernel Manuals, published and printed by
  9. ;    Commodore-Amiga, and Addison-Wesley publishing.
  10. ;
  11. ;    The goal of this macro file is to be upwardly compatible
  12. ;    with the include file of the same name.
  13. ;
  14.  
  15.     ifnd    EXEC_STRINGS_I
  16.     EXEC_STRINGS_I = 1
  17.  
  18. ;    Variables
  19.     EOS  = 0x00
  20.     BELL = 0x07
  21.     LF   = 0x0A
  22.     NL   = 0x0A
  23.     CR   = 0x0D
  24.     BS   = 0x08
  25.     DEL  = 0x7F
  26.  
  27. ;    Macros
  28.  
  29. STRING    macro
  30.     asciz    \1
  31.     .align    2
  32.     endm
  33.  
  34. STRINGL    macro
  35.     dc.b    CR,LF
  36.     asciz    \1
  37.     .align    2
  38.     endm
  39.  
  40. STRINGR    macro
  41.     ascii    \1
  42.     dc.b    CR,LF,0
  43.     .align    2
  44.     endm
  45.  
  46. STRINGLR    macro
  47.     dc.b    CR,LF
  48.     ascii    \1
  49.     dc.b    CR,LF,0
  50.     .align    2
  51.     endm
  52.  
  53.     endc            ; EXEC_STRINGS_I
  54.