EasyManua.ls Logo

Laser 128 - Fre

Laser 128
255 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
4.6
FRE
Purpose:
Reports
on
the
number
of
bytes
in
memory
that
are
not
being
used
by
BASIC.
Format:
FRE
(expression)
Comments: Because
strings
in
BASIC
can
have
different
lengths
,
and
need
to
be
manipulated
.
This
frequently
causes
the
memory
to
become
very
fragmented.
Using
this
statement
with
a
dummy
argument
can
force
BASIC to
Example:
gather
up
all
the
loose
fragments
into
contiguous
wholes
(garbage
collection)
.
This
frees
up
areas
of
memory,
and
can
often
give you a
surprising
amount
more.
] X =
FRE
(0)
This
would
lead
to a
garbage
collection
operation.
It
may
take
some time.
]
PRINT
FRE
(0)
In
addition
to a
garbage
collection
opera
ti on,
this
would
print
out
the
amount
in
bytes
of
free
user
memory
.
Il-111

Table of Contents