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

  1. _saver25   dw  ?
  2. _READ:
  3.   mov ds,cs
  4.   pop _saver25
  5.  
  6.     Pop    DX                ;get buffer offset.
  7.     Pop    DS                ;get buffer segment.
  8.   Pop CX        ;get the number of bytes to read.
  9.     Pop    BX                ;get the handle.
  10.  
  11.   Mov AH,3FH    ;read a file.
  12.     Int    21H
  13.   push ax       ;save byte read or if error, error code.
  14.  
  15.   mov ds,cs
  16.   push _saver25
  17.     Ret
  18.