home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
progjour
/
1991
/
06
/
alib
/
open_in.asm
< prev
next >
Wrap
Assembly Source File
|
1991-06-25
|
388b
|
26 lines
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