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

  1.         ;************************************************************;
  2.         ;                                                            ;
  3.         ;               Function 4FH: Find Next File                 ;
  4.         ;                                                            ;
  5.         ;               int find_next()                              ;
  6.         ;                                                            ;
  7.         ;               Returns 0 if a match was found,              ;
  8.         ;               otherwise returns error code.                ;
  9.         ;                                                            ;
  10.         ;************************************************************;
  11.  
  12. cProc   find_next,PUBLIC
  13. cBegin
  14.         mov     ah,4fh          ; Set function code.
  15.         int     21h             ; Ask MS-DOS to look for the next
  16.                                 ; matching file.
  17.         jb      fn_err          ; Branch on error.
  18.         xor     ax,ax           ; Return 0 if no error.
  19. fn_err:
  20. cEnd
  21.