PI1X Basic Programming Manual Ver. 1.10
105/156
3.18
Memory commands
Purpose
:
To check the total space in disk C.
Syntax
:
RAMSIZE% = RAM_SIZE
Example
:
PRINT "RAM_SIZE=",RAM_SIZE
Description
:
RAMSIZE%
is an integer variable to be assigned for the total
space in disk C.
Purpose
:
To check the total space in disk D.
Syntax
:
ROMSIZE% = ROM_SIZE
Example
:
PRINT "ROM_SIZE=",ROM_SIZE
Description
:
ROMSIZE%
is an integer variable to be assigned for the total
space in disk D.
Purpose
:
To check the total space in disk E.
Syntax
:
SDSIZE% = SD_SIZE
Example
:
PRINT "SD_SIZE=",SD_SIZE
Description
:
SDSIZE%
is an integer variable to be assigned for the total
space in disk E.
Purpose
:
To check the free space in disk C/ D/ E.
Syntax
:
FREESIZE% = FREE_MEMORY(N%)
Example
:
PRINT “Free on disk C:”;FREE_MEMORY(0)
PRINT “Free on disk D:”;FREE_MEMORY(1)
…
Description
:
FREESIZE%
is an integer variable to be assigned for the
free speace in disk C(N%=0) or disk D (N%=1) or disk E
(N%=2).
Purpose
:
To check the occupid space in disk C/ D/ E.
Syntax
:
USEDSIZE%
= DISK_USEDSIZE(
N%
)
Example
:
PRINT "USED C SIZE:",DISK_USEDSIZE(0)
PRINT "USED D SIZE:",DISK_USEDSIZE(1)
Description
:
USEDSIZE%
is an integer variable to be assigned for the
occupied space in disk C (N%=0) or disk D (N%=1) or disk
E (N%=2).