Category : Word Processors
Archive   : HP22D5.ZIP
Filename : WRITE.ASM

 
Output of file : WRITE.ASM contained in archive : HP22D5.ZIP

DOSSEG
.MODEL LARGE

.DATA

.CODE

; ---------------------------------------------------------------------------
; write(handle,buf,num_bytes);
; ---------------------------------------------------------------------------
public _write
_write proc far
push bp
mov bp,sp

push ds

mov ah,040h
mov bx,[bp+6]
lds dx,[bp+8]
mov cx,[bp+12]
int 21h

jnc end_write

mov ax,-1

end_write:
pop ds
pop bp
retf
_write endp

END