home *** CD-ROM | disk | FTP | other *** search
/ The Unsorted BBS Collection / thegreatunsorted.tar / thegreatunsorted / programming / asm_programming / ASMFILES.ZIP / FREAD.ASM < prev    next >
Assembly Source File  |  1985-06-21  |  384b  |  16 lines

  1. ;ROUTINE TO READ A BYTE    FROM A FILE
  2. ;
  3. readfile     proc      far
  4. ;
  5.           mov    ah,3Fh      ;read    from a file
  6.           int    21h      ;DOS call
  7.           cmp    ax,cx      ;everything back?
  8.           je    readfile1 ;skip    if OK
  9.           mov    ax,21      ;not all read
  10.           stc          ;set carry if    error
  11. ;
  12. readfile1:
  13.           ret
  14. ;
  15. readfile     endp
  16.