Program Lines
A program line consists of a line number
in
the
range"
to 65529,
followed by one or more statements separated
by
colons. When you
press
(ENTER),
the line
is
stored
in
memory, along with any other lines
you have entered this way. The program
is
not executed until you
type
RUN
or another execute command. For example:
100
CLS:
PRINT
"THE
SQUARE
ROOT OF Z
IS"
SQR(Z)
is a program line. When you press
(ENTER),
BASIC stores it
in
memory. To execute
it,
type:
RUN
(ENTER)
NOTE: If you include numeric constants
in
a line, BASIC evaluates
them
as
soon
as
you press
(ENTEffi;
it does not wait until you
RUN
the
program.
If
any numbers are out of range for their type, BASIC
returns
an
error message immediately after pressing
(ENTER).
Special
Keys
in
the
Command
Mode
8:)
Backspaces the cursor, erasing the preceding
or
(CTRL)OD
character
in
the line. Use this to correct typing
errors before pressing
(ENTER).
(SPACE
BAR)
Enters a blank space character and advances the
cursor.
(CTRL)QJ
or
CD
(CAPS)
(SHIFT)
~
Execution Mode
Interrupts line entry and starts over with a new
line.
Line feed - starts a new physical line without
ending the current logical line.
Switches the display
to
either all uppercase or
uppercase/lowercase mode.
Ends the current logical line. BASIC "takes" the
line.
Deletes the current line.
When BASIC is executing statements (immediate lines or programs),
it is
in
the execution mode.
In
this mode, the contents of the video
display are under program control.
Special
Keys
in
the
Execution Mode
(SHIFT)@{)
Pauses execution. Press any other key (except
(BREAK)
to
continue.
2-14