Sinclair BASIC doesn't have a FRE()
function, which on other systems typically returns the number of memory bytes currently unused by BASIC. I'm looking for a way to find that value.
The system variables suggest some potential candidates. Variables such as PROG (=PEEK 23635+256*PEEK 23636
), however, don't change as the size of the program changes.
There doesn't seem to be a way to do this in ZX80 BASIC, but maybe things changed with the expanded interpreter.
FREE
function in Timex BASIC, but that's not what I'm asking about.