Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>function 36h (54) get disk free space</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 36h (54)        Get Disk Free Space

    Returns the number of available clusters, and other information about
    the disk in the specified drive.

       On entry:      AH         36h
                      DL         Drive number (0=default, 1=A, 2=B, etc.)

       Returns:       AX         Sectors per cluster
                                 FFFFh if invalid drive specified
                      BX         Number of available clusters
                      CX         Bytes per sector
                      DX         Total number of clusters per drive

  --------------------------------------------------------------------------

    This function returns information similar to that provided by
    Functions 1Bh and 1Ch, with three exceptions. This function:

         .   Returns the number of available clusters;
         .   Does not return a pointer to the media descriptor byte;
         .   Returns an error code if the specified drive is invalid.

See Also: 1Bh 1Ch 44h

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson