
PT-Basic Programming Manual Ver. 1.00 94/143
3.18 Memory commands
To check the total space in disk C.
PRINT "RAM_SIZE=",RAM_SIZE
RAMSIZE% is an integer variable to be assigned for the total
space in disk C.
To check the total space in disk D.
PRINT "ROM_SIZE=",ROM_SIZE
ROMSIZE% is an integer variable to be assigned for the total
space in disk D.
To check the free space in disk C or disk D.
FREESIZE% = FREE_MEMORY(N%)
PRINT “Free on disk C:”;FREE_MEMORY(0)
PRINT “Free on disk D:”;FREE_MEMORY(1)
…
FREESIZE% is an integer variable to be assigned for the
free speace in disk C(N%=0) or disk D (N%=1).
To check the occupid space in disk C or disk D.
USEDSIZE% = DISK_USEDSIZE(N%)
PRINT "USED C SIZE:",DISK_USEDSIZE(0)
PRINT "USED D SIZE:",DISK_USEDSIZE(1)
USEDSIZE% is an integer variable to be assigned for the
occupied space in disk C (N%=0) or disk D (N%=1).
Commentaires sur ces manuels