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.



See also:


file: /Techref/int/21f/36.htm, 1KB, , updated: 1999/2/20 10:26, local time: 2012/2/10 02:06,
TOP NEW HELP FIND: 
38.107.179.231:LOG IN

 ©2012 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://www.piclist.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 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?

 
 
miSim DE is an excellent, portable and powerful IDE for developing PIC applications.
The only consistant, simple to use yet powerful development environment. It simulates real-world devices via virtual component "plugins" (LED,LCD,key,motor,TV,etc) in real time, has a syntax highlighting editor, macro assembler and disassembler. Regular updates and third-party plugins keep this software ahead of any other PIC IDE.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .