FRE returns the number of free bytes left in execution memory (R0).
0 is a dummy argument.
displays amount of free space in execution memory, or
Sets A = amount of free space.
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.
This autosizes A leaving 10K (10240 byte) for other variables. “5” is the number of bytes used for each member of A. Remember to leave enough space for all simple variables.