home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l440 / 2.ddi / CHAP7 / DOS.INC < prev    next >
Encoding:
Text File  |  1990-05-18  |  798 b   |  64 lines

  1. .xlist
  2. ;DOS.INC
  3. .sall
  4.  
  5. ;Standard handles
  6.  
  7. STDOUT    =    1
  8.  
  9.  
  10. ;MS-DOS functions
  11.  
  12. OldTerminate    =    0
  13. OutChar        =    2
  14. InCharNoEcho    =    8
  15. Print        =    9
  16. InputLine    =    10
  17. GetCurDisk    =    25
  18. SetVect        =    37
  19. ParseName    =    41
  20. Version        =    48
  21. TermStayRes    =    49
  22. GetVect        =    53
  23. CreateFile    =    60
  24. OpenFile    =    61
  25. CloseFile    =    62
  26. ReadFile    =    63
  27. WriteFile    =    64
  28. Seek        =    66
  29. GetCurDir    =    71
  30. AllocMem    =    72
  31. ReleaseMem    =    73
  32. ResizeMem    =    74
  33. Exec        =    75
  34. Terminate    =    76
  35. GetReturnCode    =    77
  36. SetPSP        =    80
  37. GetPSP        =    98
  38.  
  39.  
  40. ;MS-DOS function macros
  41.  
  42. DOS    macro    Func,SubFunc,DxVal,BxVal,CxVal
  43.     IFNB    <CxVal>
  44.     mov    cx,CxVal
  45.     ENDIF
  46.     IFNB    <BxVal>
  47.     mov    bx,BxVal
  48.     ENDIF
  49.     IFNB    <DxVal>
  50.     mov    dx,DxVal
  51.     ENDIF
  52.     IFB    <SubFunc>
  53.     IFNB    <Func>
  54.     mov    ah,Func
  55.     ENDIF
  56.     ELSE
  57.     mov    ax,Func*100H+SubFunc
  58.     ENDIF
  59.  
  60.     int    33
  61.     ENDM
  62.  
  63. .list
  64.