home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Actual 15
/
CDACTUAL15.iso
/
cdactual
/
program
/
asm
/
PJ96.ZIP
/
ALIB.ZIP
/
WRITFILE.ASM
< prev
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-25
|
319 b
|
29 lines
include asm.inc
public write_to_file
.code
extn ms_dos
;; write to file
;
; entry BX file handle
; CX byte count
; ES:DI buffer
; exit Cf if error
;
write_to_file proc
push ds
mov ah,40h
push es
pop ds
xchg dx,di
call ms_dos
xchg di,dx
pop ds
ret
write_to_file endp
end