please dont rip this site

Function 36h Get Disk Free Space

get information on specified drive

entry AH 36h

DL drive number (0=default, 1=A:, 2=B:, etc)

return AX number of sectors per cluster

0FFFFh means drive specified in DL is invalid

BX number of availible clusters

CX bytes per sector

DX clusters per drive

note 1) Mult AX * CX * BX for free space on disk

2) Mult AX * CX * DX for total disk space

3) Function 36h returns an incorrect value after an ASSIGN command. Prior

to ASSIGN, the DX register contains 0943h on return, which is the free

space in clusters on the HC diskette. After ASSIGN, even with no

parameters, 0901h is returned in the DX register; this is an incorrect

value. Similar results occur with DD diskettes on a PC-XT or a PC-AT.

This occurs only when the disk is not the default drive. Results are as

expected when the drive is the default drive. Therefore, the

circumvention is to make the desired drive the default drive prior to

issuing this function call.

4) Int 21h, function call 36h returns an incorrect value after an ASSIGN

command. Prior to ASSIGN, the DX register contains 0943h on return,

which is the free space in clusters on the HC diskette. After ASSIGN,

even with no parameters, 0901h is returned in the DX register; this is

an incorrect value. Similar results occur with DD diskettes on a PC-XT

or a PC-AT. This occurs only when the disk is not the default drive.

Results are as expected when the drive is the default drive. Therefore,

the circumvention is to make the desired drive the default drive prior

to issuing this function call.

5) This function supercedes functions 1Bh and 1Ch.




file: /Techref/int/21f/36.htm, 1KB, , updated: 1999/2/20 10:26, local time: 2024/12/26 21:34,
TOP NEW HELP FIND: 
18.226.52.26:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://linistepper.com/techref/int/21f/36.htm"> int 21f 36</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?