Rpbasic-52 programming guide – Remote Processing BASIC 52 User Manual
Page 59

RPBASIC-52 PROGRAMMING GUIDE
2-40
FREE
Syntax:
FREE
Function:
R e t ur n s t h e b y te s o f a v a il a bl e in p ro g ra m R A M
Mode:
Comm and, run
Use:
PRINT FREE
Cards:
All
D E S C R IP T I ON
FREE returns how m any bytes of R AM a re available to the p rogram an d Basic va riables. It does not return
the amount of expanded RAM in 128K or 512K RAM systems. The amount of free memory is determined by
the following formula:
FREE = MT OP - LE N - system mem ory
"system memory" on cards with two serial ports is 1791. Add 512 bytes for any additional serial ports on a
card.
RELATED
LEN
E R R O R
B A D S Y N T A X Attempt to assign a value to FREE