home *** CD-ROM | disk | FTP | other *** search
/ Large Pack of OldSkool DOS MOD Trackers / hsc14ecr.zip / MACROS.INC < prev    next >
Text File  |  1994-01-31  |  1KB  |  50 lines

  1. MASM
  2. COMMENT *
  3. ───────────────────────────────────────────────────────────────────────────────
  4.   Macros.inc - Standard Macros (just to be tidy)
  5. ───────────────────────────────────────────────────────────────────────────────
  6.   Revision: 0.1a   Date: 07-March-1993        Copyright 1993 Phil Carlisle
  7.  
  8.   Description -- Just a bunch of macro's to save re-typing
  9.  
  10.   History
  11.  
  12. ───────────────────────────────────────────────────────────────────────────────
  13. *
  14.  
  15. set13 macro                    ; set mode 13h
  16.     mov    ax,13h
  17.     int    10h
  18. endm
  19.     
  20. Textmode macro                                  ; set text mode back again
  21.       mov     ax,03h
  22.       int     10h
  23. endm
  24.  
  25.  
  26. Waitferescape macro                             ; waits for escape key
  27.       local     waitferit                       ; not used in this code
  28. waitferit:
  29.       in    al,60h
  30.       cmp   al,1
  31.       jne   waitferit
  32. endm
  33.  
  34. quittodos macro                                 ; quit back to dos
  35.       mov   ah,4Ch                              ; MUST be called
  36.       int   21h                                 ; gives back memory and
  37. endm                                            ; control to dos
  38.  
  39.  
  40. GiveUpMem macro                               ;expects amount of mem
  41.       mov   ah,4ah                            ;required in bx
  42.       int   21h                               ;use dos free mem func...
  43. endm
  44.  
  45.  
  46.  
  47.  
  48.  
  49. IDEAL
  50.