home *** CD-ROM | disk | FTP | other *** search
/ MS DOS Archives 1 / MS-DOS_Archives_Volume_One_Walnut_Creek.iso / msdos / filutl / ldiff12s.arc / MINIMAC.INC < prev    next >
Text File  |  1989-07-15  |  1KB  |  61 lines

  1. ;-----------------------------------------------------------------------------;
  2. ; minimac.asm                       (C) ÄOû╪ÿaòF NIFTY SDR SDI00147  1989/7/1 ;
  3. ;-----------------------------------------------------------------------------;
  4. ; òKùvì┼żî└é╔é╡é╜â}âNâì  éåéÅéÆü@éséêéàü@éaé`éréhéb                          ;
  5. ;-----------------------------------------------------------------------------;
  6. ; 4 bytes --->  5 times
  7. ; 5 bytes --->  3 times
  8. ; 6 bytes --->  3 times
  9. ; 7 bytes --->  2 times
  10. NUL    equ    00h                    ;
  11. BEL    equ    07h                    ;
  12. BS    equ    08h                    ;
  13. TAB    equ    09h                    ;
  14. CR    equ    0dh                    ;
  15. LF    equ    0ah                    ;
  16. FALSE    equ    0                    ;
  17. TRUE    equ    -1                    ;
  18.                             ;
  19. movdat    macro    dat1,dat2                ;
  20.     mov    ax,dat2                    ;
  21.     mov    dat1,ax                    ;
  22.     endm                        ;
  23.                             ;
  24. movdatb    macro    dat1,dat2                ;
  25.     mov    al,dat2                    ;
  26.     mov    dat1,al                    ;
  27.     endm                        ;
  28.                             ;
  29. movseg    macro    seg1,seg2                ;
  30.     push    seg2                    ;
  31.     pop    seg1                    ;
  32.     endm                        ;
  33.                             ;
  34. msdos    macro    num                    ;
  35.     ifnb    <num>                    ;
  36.         if    num ge 100h            ;
  37.             mov    ax, num            ;
  38.         else                    ;
  39.             mov    ah, num            ;
  40.         endif                    ;
  41.     endif                        ;
  42.     int    21h                    ;
  43.     endm                        ;
  44.                             ;
  45. BEGIN    macro    n                    ;
  46.     n    proc    near                ;
  47.     endm                        ;
  48.                             ;
  49. BEGINF    macro    n                    ;
  50.     n    proc    far                ;
  51.     endm                        ;
  52.                             ;
  53. ENDN    macro    n                    ;
  54.     n    endp                    ;
  55.     endm                        ;
  56.                             ;
  57. ENDF    macro    n                    ;
  58.     n    endp                    ;
  59.     endm                        ;
  60. ;-----------------------------------------------------------------------------;
  61.