home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / HILFEN / SYSTEM / BOOTSLOW / SOURCE.ZIP / MACROS.INC < prev    next >
Text File  |  1991-08-06  |  1KB  |  74 lines

  1. ;
  2. ;; SlowDown for self-booting software
  3. ;;
  4. ;; BOOTSLOW
  5. ;;
  6. ;; Copyright 1991 Alexander R. Pruss
  7. ;;
  8. ;; May be freely distributed, modified and used provided that no copyright
  9. ;; messages are removed, and this sentence together with the next are
  10. ;; always included in unmodified form.  If you like this program a lot, you are
  11. ;; invited to show your appreciation by making a tax-deductible donation to
  12. ;; the Pro-Life or Anti-Abortion movement, but are under no obligation, moral
  13. ;; or otherwise to do so (especially if you disagree with the goals of this
  14. ;; movement.)
  15. ;
  16. Clear macro reg
  17.      xor reg,reg
  18. endm
  19.  
  20. Stat macro reg
  21.      or reg,reg
  22. endm
  23.  
  24. Puts macro name
  25.      mov si,offset name
  26.      mov cx,&name&_string_length
  27.      call near ptr _puts
  28. endm
  29.  
  30. String macro name, str
  31.      local StrBeg,StrEnd
  32.      StrBeg = $
  33.      name db str
  34.      StrEnd = $
  35.      &name&_string_length = StrEnd-StrBeg
  36. endm
  37.  
  38. Getch macro
  39.      Clear ah
  40.      int 16h
  41. endm
  42.  
  43. DOSGetch macro
  44.      mov ah,DOSGetchF
  45.      int 21h
  46. endm
  47.  
  48. BPutch macro char
  49.     mov al,char
  50.     mov ah,TTYWrite
  51.     mov bx,0007h
  52.     int 10h
  53. endm
  54.  
  55.  
  56. TTYWrite = 0eh
  57. WriteHandle = 040h
  58. ReadHandle = 03Fh
  59. CloseHandle = 03eh
  60. OpenRDOnly = 03d00h
  61. OpenWROnly = 03d01h
  62. OpenRDWR = 03d02h
  63. CreatHandle = 03ch
  64. ArchBit = 1 shl 5
  65. DOSGetchF = 08h
  66. CR = 0dh
  67. LF = 0ah
  68. BSeg = 0040h
  69.  
  70. BootPos = 7c00h
  71.  
  72. TOLOWER = 020h
  73.  
  74.