home *** CD-ROM | disk | FTP | other *** search
- include asm.inc
-
- public open_input_file
-
- .code
- extn ms_dos_strerror
-
-
- ;; open input file
- ;
- ; entry DS:SI string
- ; exit AX,BX handle
- ; Cf if error, error text set
- ; calls offset_dos_error, ms_dos
- ;
- open_input_file proc
- mov ax,3D00h ; (use 3D20 for shared access read)
- xchg dx,si
- call ms_dos_strerror
- xchg dx,si
- mov bx,ax
- ret
- open_input_file endp
-
- end
-