home *** CD-ROM | disk | FTP | other *** search
- .xlist
- ;DOS.INC
- .sall
-
- ;Standard handles
-
- STDOUT = 1
-
-
- ;MS-DOS functions
-
- OldTerminate = 0
- OutChar = 2
- InCharNoEcho = 8
- Print = 9
- InputLine = 10
- GetCurDisk = 25
- SetVect = 37
- ParseName = 41
- Version = 48
- TermStayRes = 49
- GetVect = 53
- CreateFile = 60
- OpenFile = 61
- CloseFile = 62
- ReadFile = 63
- WriteFile = 64
- Seek = 66
- GetCurDir = 71
- AllocMem = 72
- ReleaseMem = 73
- ResizeMem = 74
- Exec = 75
- Terminate = 76
- GetReturnCode = 77
- SetPSP = 80
- GetPSP = 98
-
-
- ;MS-DOS function macros
-
- DOS macro Func,SubFunc,DxVal,BxVal,CxVal
- IFNB <CxVal>
- mov cx,CxVal
- ENDIF
- IFNB <BxVal>
- mov bx,BxVal
- ENDIF
- IFNB <DxVal>
- mov dx,DxVal
- ENDIF
- IFB <SubFunc>
- IFNB <Func>
- mov ah,Func
- ENDIF
- ELSE
- mov ax,Func*100H+SubFunc
- ENDIF
-
- int 33
- ENDM
-
- .list
-