no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Last revision | |||
— | en:docs:dos:api:int21:36 [2020/12/11 04:53] – created prokushev | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{page> | ||
+ | |||
+ | ====== Int 21H, AH=36H ====== | ||
+ | |||
+ | ===== Version ===== | ||
+ | |||
+ | 2 and higher | ||
+ | |||
+ | ===== Brief ===== | ||
+ | |||
+ | GET FREE DISK SPACE | ||
+ | |||
+ | ===== Family API ===== | ||
+ | |||
+ | |||
+ | ===== Input ===== | ||
+ | |||
+ | AH = 36h | ||
+ | DL = drive number (00h = default, 01h = A:, etc) | ||
+ | |||
+ | ===== Return ===== | ||
+ | |||
+ | AX = FFFFh if invalid drive | ||
+ | else | ||
+ | AX = sectors per cluster | ||
+ | BX = number of free clusters | ||
+ | CX = bytes per sector | ||
+ | DX = total clusters on drive | ||
+ | |||
+ | ===== Notes ===== | ||
+ | |||
+ | free space on drive in bytes is AX * BX * CX | ||
+ | total space on drive in bytes is AX * CX * DX | ||
+ | "lost clusters" | ||
+ | according to Dave Williams' | ||
+ | incorrect for non-default drives after ASSIGN is run | ||
+ | this function does not return proper results on CD-ROMs; | ||
+ | use AX=4402h" | ||
+ | (FAT32 drive) the reported total and free space are limited to 2G-32K | ||
+ | should they exceed that value | ||
+ | | ||
+ | ===== See also ===== | ||
+ | |||
+ | | ||
+ | |||
+ | ===== Note ===== | ||
+ | |||
+ | Text based on [[http:// | ||
+ | |||
+ | {{page> | ||
+ | |||
+ | {{page> | ||