EasyManua.ls Logo

Husky Hunter - Page 207

Husky Hunter
499 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BASIC FUNCTIONS SECTION 5.7
5.7.4 Function FRE returns the number of free bytes left in execution
memory (RO).
Syntax
FRE(O)
0 is a dummy argument.
Examples PRINT FRECO)
displays amount of free space in execution memory.
or
A=FRE(O)
Sets A
= amount of free space.
Remarks Note that if a program has not been RUN then the variables
will not have been assigned space. This enables easy
display of program size and, after RUNing, the total memory
usage.
The latter examples allows the AUTO SIZING of arrays to
their maximum size.
e.g. DIM A((FRE(0)-10240)/S)
This aut.ostzes A leavine; 10K (10240 hytel for other
variables.
11
5
11
is the number of bytes t;sed for each member
of A. Remember to leave enough space for all simple
variables.
VER. V09l·
PAGE 'i - 38