home *** CD-ROM | disk | FTP | other *** search
- include asm.inc
-
- public open_output_file
-
- .code
- extn ms_dos_strerror
-
-
- ;; open output file
- ;
- ; entry DS:SI string
- ; exit AX,BX handle
- ; Cf if error, error text set
- ; calls offset_dos_error, ms_dos
- ;
- open_output_file proc
- push cx
- mov ax,3C00h
- xor cx,cx
- xchg dx,si
- call ms_dos_strerror
- xchg dx,si
- mov bx,ax
- pop cx
- ret
- open_output_file endp
-
-
- end
-