Atari ST series Technical Reference Manual page 274

Hide thumbs Also See for ST series:
Table of Contents

Advertisement

Dfree()
The Dfree() function is used to find the amount of free space left on a
disk.
C macro format
long buffer[4];
int drivenum;
Dfree(buffer, drivenum);
Machine language format
move.w
#drivenum, - (sp)
move.l
buffer, - (sp)
move.w
#$36, - (sp)
trap
#1
addq.l
#8,sp
Inputs
drivenum
word
buffer
long
Contents of the buffer pointed to by
Longword Number
0
1
2
3
Results
None
266
Dfree
Get Disk Free Space
The number of the drive to check
(0 = drive A:, 1 = drive B:, and so on).
A pointer to a buffer that will store the
four longwords of data returned by this
call.
buffer:
Contents
Number of free clusters
Total number of clusters
Sector size (in bytes)
Cluster size (in sectors)
Opcode = 54 ($36)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents