Chapter
10
I
BASIC
Keywords
If you set
video
memory
larger than the required page size,
BASIC divides the assigned memory into pages based on the
page size requirement. For example, if you set aside 32K for
video memory for Screen Mode
1,
BASIC divides the video mem-
ory into 2 pages (32/16=2). See Chapter
8,
SCREEN, and
PCOPY for more
on
video pages.
Note:
BASIC allocates string space dynamically.
BASIC displays an “Out
of
string” space error if
no
free memory is left for BASIC.
Ex
ample
s
clears all variables and closes all files.
CLEAR
CLEAR, 45000
clears all variables and closes all files; then makes 45000 the
highest address BASIC may use to run your programs.
CLEAR, 61000,
300
clears
all
variables and closes all files; then makes 61000 the
highest address BASIC may use to run your programs, and allo-
cates 300 bytes for stack space.
CLEAR ,,,32768
sets aside 32K for video memory.
118