BASIC PROGRAMMING SECTION 4.6
4.6.1
MEMORY ALLOCATION
PROGRAM LIMITS AND MEMORY USAGE
1.
Ranges
Variables:
String arrays:
Line numbers:
Program line length:
2. Precision
±9,99999E± 126
Up to 254 characters per
string
0-65535 inclusive
Up to 254 characters
including line number
Single precision variables have 6 digit resolution.
Double .Precision variables have 14 digit reso:ution.
3. Memory overhead
Program lines require 4 bytes minimum, as follows:
Line number:
Line length:
Carriage return:
2 bytes
1 byte
1 byte
Also each reserved word, operator, variable name character,
special character and constant character requires 1 byte.
Maximum program size in present versions: 54K,,Bytes (Page 0)
4.6.2
DYNAMIC (RUN-TIME) MEMORY ALLOCATION
VER.V09F
1 • Symbol Table
Entries occupy: 7 Bytes each
Maximum symbol table size: 16K Bytes
2. Single Precision Array
DIM A(X) occupies
3. Double Precision Array
DIM A!(X) occupies
4. String Array Elements
DIM A$
1
X,N) occupies
5. Array Size
(X+ 1) *5+ 7 Bytes
(X+1)*9+7 Bytes
(X+
1 )*N+ 7 Ryt.es
Maximum number of elem=nts in an array is 16,383.
PAGE 4 - 14