144
CipherLab BASIC Programming Part I
This section describes the commands related to the flash memory and SRAM, where
Program Manager and File System reside respectively.
For 8200/8400/8700 Series, it allows using SD card.
8000 Series 2 MB 2 MB, 4 MB N/A
8200 Series 8 MB 4 MB, 8 MB Supported
8300 Series 2 MB 2 MB, 6 MB, 10 MB N/A
8400 Series 4 MB 4 MB, 16 MB Supported
8500 Series 2 MB 2 MB, 6 MB, 10 MB N/A
8700 Series 8 MB 4 MB, 12 MB, 20 MB Supported
MEMORY_INFORMATION
Purpose To get information on memory allocation.
Syntax R% = MEMORY_INFORMATION(N%)
Remarks “R%” is an integer variable to be assigned to the result.
If the value of N% is illegal, it returns -1.
If the memory type does not exist, it returns 0.
“N%” is an integer variable in the range of 1 to 6, indicating the memory type.
1
2
3
4
5
6
Base RAM, in kilobytes
Optional RAM, in kilobytes
Free memory (SRAM), in kilobytes
Flash memory, in kilobytes
SD card size, in megabytes
Free memory on SD card, in megabytes
Example
PRINT “Free memory = ”, MEMORY_INFORMATION(3)
See Also FREE_MEMORY, RAM_SIZE, ROM_SIZE, SD_SIZE, SD_FREE_MEMORY