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

  1.         ;************************************************************;
  2.         ;                                                            ;
  3.         ;                   Function 0DH: Disk Reset                 ;
  4.         ;                                                            ;
  5.         ;                   int reset_disk()                         ;
  6.         ;                                                            ;
  7.         ;                   Returns 0.                               ;
  8.         ;                                                            ;
  9.         ;************************************************************;
  10.  
  11. cProc   reset_disk,PUBLIC
  12. cBegin
  13.         mov     ah,0dh          ; Set function code.
  14.         int     21h             ; Ask MS-DOS to write all dirty file
  15.                                 ; buffers to the disk.
  16.         xor     ax,ax           ; Return 0.
  17. cEnd
  18.