Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Ralf Brown's Interrupt List (Part 1,2) - int 21 - dos 2+ - get disk space http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 21 - DOS 2+ - GET DISK SPACE
        AH = 36h
        DL = drive code (0 = default, 1 = A, 2 = B, etc.)
Return: AX = number of sectors per cluster
             or FFFFh if invalid drive
        BX = number of available clusters
        CX = bytes per sector
        DX = total clusters
Notes:  multiply AX * CX * BX for free space on disk
        multiply AX * CX * DX for total disk space
        according to Dave Williams' MSDOS reference, the value in DX is
          incorrect for non-default drives after ASSIGN is run
SeeAlso: AH=1Bh,AH=1Ch

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