DISKSIZE/de

Aus MCS Wiki AVR
< DISKSIZE
Version vom 15. Februar 2013, 21:14 Uhr von Admin (Diskussion | Beiträge)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

= (**COPIED FROM ENGLISH PAGE**) === Action

Returns the size of the Disk in KB.

 

 

Syntax

lSize = DISKSIZE()

 

 

Remarks

lSize

A Long Variable, which is assigned with the capacity of the disk in Kilo Bytes

 

This functions returns the capacity of the disk in KB.

With the support of FAT32, the return value was changed from byte into KB.

 

 

See also

INITFILESYSTEM , OPEN , CLOSE , FLUSH , PRINT , LINE INPUT , LOC , LOF , EOF , FREEFILE , FILEATTR , SEEK , BSAVEBLOAD , KILL , DISKFREE , GET , PUT , FILEDATE , FILETIME , FILEDATETIME , DIR , FILELEN , WRITE , INPUT

 

 

ASM

Calls

_GetDiskSize

Input

none

Output

16-r19: Long-Value of capacity in Bytes

 

 

Partial Example


Dim Gbtemp1 As Byte' scratch byte
Gbtemp1 = Initfilesystem(1)' we must init the filesystem once
If Gbtemp1 > 0 Then
 Print#1 ,"Error "; Gbtemp1
Else
 Print#1 ," OK"
Print "Disksize : "; Disksize()' show disk size in bytes
Print "Disk free: "; Diskfree()' show free space too
End If

Languages   English Deutsch  
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
In anderen Sprachen
Sprache