beautypg.com

Memory commands – Argox PA-20 Basic Programming Manual User Manual

Page 95

background image

PT-Basic Programming Manual Ver. 1.00

94/143

3.18 Memory commands

RAM_SIZE

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.

ROM_SIZE

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.

FREE_MEMORY

Purpose: To check the free space in disk C or disk D.

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).

DISK_USEDSIZE

Purpose: To check the occupid space in disk C or disk D.

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).