FRE
Returns the number of free bytes available in memory
Implemented by: altair8K, Applesoft, CBM, Atari, msatari, level2, GWBASIC, MSX, ABasiC, QBasic, VBDOS, FreeBASIC
With variations: bw32 (argument is optional; always returns 32000)
Also written as:
Usage
Variations
In MS QB/QBASIC, the mandatory argument can take the following values for the respective effects:
- -1: the returned value will be the maximum size for a numerical array/matrix
- -2: free space at the stack area, in bytes
- Any other number: free space at the next memory block for string allocation
- A string: compacts the string allocation area and returns the number of bytes available for strings