home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 13 / CDA13.ISO / cdactual / demobin / share / program / Asm / 86LIB3.ZIP / WRITE.8 < prev   
Encoding:
Text File  |  1989-01-14  |  428 b   |  18 lines

  1. _saver39  dw  ?
  2. _WRITE:            ;writes to a file.
  3.   mov ds,cs
  4.   pop _saver39
  5.  
  6.   Pop DX          ;get buffer offset.
  7.   Pop DS          ;get buffer segment.
  8.   Pop CX          ;get number of bytes to write.
  9.   Pop BX          ;get the handle.
  10.  
  11.   Mov AH,40H      ;write to the a file.
  12.   Int 21H         ;call dos.
  13.   push ax         ;push number of bytes written or error code.
  14. ;
  15.   mov ds,cs
  16.   push _saver39
  17.     Ret
  18.