home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng)
/
ProfitPress-MegaCDROM2.B6I
/
MAGAZINE
/
MISC
/
PJ_9_6.ZIP
/
ALIB.ZIP
/
READFILE.ASM
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Assembly Source File
|
1991-06-26
|
372 b
|
29 lines
include asm.inc
public read_from_file
.code
extn ms_dos_strerror
;; read from file
;
; entry BX file handle
; CX byte count
; ES:DI destination
; exit AX number of bytes read
; Cf if error
;
read_from_file proc
push ds
mov ah,3Fh
push es
pop ds
xchg dx,di
call ms_dos_strerror
xchg di,dx
pop ds
ret
read_from_file endp
end