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

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