Commands and Statements
6-2
If
a second expression
is
specified, it indicates the highest memory location available
to BASIC. This number
is
similar to the MEMTOP option.
If
not specified, the
highest memory location used
is
unchanged. At sign-on only
100
bytes
of
string
storage space are available.
CLEAR
2000,
ODOOOH
will
reserve 2000 (decimal) bytes for string space, and
will
not allow BASIC to use
any memory address above
ODOOOH.
CLOSE
The CLOSE statement concludes
I/O
activities for one or more disk files. A CLOSE
statement for
an
open file disassociates the file name and the file number used to
open the file, but the file may be opened again under the same or another file
number. Close without options closes all files.
The END, NEW, MERGE,
LOAD, RUN (without
F)
and CLOSE (without
arguments) statements close all disk files automatically, but
STOP does not.
CLOSE [[I]
file
number
[,[1]
file
number]
... ]
10
OPEN
"R"
,13,
"F1
:PERSON"
20
GETI3,1
30
FIELD #3,20,AS N$, 9 AS SS$
40
PRINT 'N$,SS$
50
CLOSEI3
RUN
JONES,
JOHN
J.
517317010
Ok
CONT
The CONT command continues program execution after a Control-C, a STOP, an
ERROR interruption,
or
an END statement has been executed.
If
execution halts
because
of
an
error, BASIC-80 will try to re-execute the same line again. Execution
resumes
at
the statement after the break occurred unless input from the terminal was
interrupted; in this case, the prompt
(1)
is
reprinted. Execution cannot be continued
if the program was modified during the break, but variable values may be changed.
CONT
In the example below, the program expects a numeric input and
is
interrupted with a
Control-C.
ENTER NEXT INTEGER STRING
?41
tC
BREAK
IN
240
OK
CONT
?
37
BASIC-SO