home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / dos_ency / section5 / fxn14h.asm < prev    next >
Encoding:
Assembly Source File  |  1988-08-11  |  1.1 KB  |  22 lines

  1.         ;************************************************************;
  2.         ;                                                            ;
  3.         ;           Function 14H: Sequential Read, FCB-based         ;
  4.         ;                                                            ;
  5.         ;           int FCB_sread(oXFCB)                             ;
  6.         ;               char *oXFCB;                                 ;
  7.         ;                                                            ;
  8.         ;           Returns 0 if record read OK, otherwise           ;
  9.         ;           returns error code 1, 2, or 3.                   ;
  10.         ;                                                            ;
  11.         ;************************************************************;
  12.  
  13. cProc   FCB_sread,PUBLIC,ds
  14. parmDP  poXFCB
  15. cBegin
  16.         loadDP  ds,dx,poXFCB    ; Pointer to opened extended FCB.
  17.         mov     ah,14h          ; Ask MS-DOS to read next record,
  18.                                 ; placing it at DTA.
  19.         int     21h
  20.         cbw                     ; Clear high byte for return value.
  21. cEnd
  22.