Format:
CONT
A break
is
an interruption in program execution that returns control to
PET
BASIC before the program
has
executed ta completion. A scheduled break
is
caused by execution of a
STOP
statement. execution of
an
END
statement
that
has
additional statements following it. or depressing the
STOP
key
while
the pro-
gram
is
running.
During a program break vou can LIST. LOAD. SAVE.
VERIFY.
and perform
any immediate mode operations using
PET
BASIC statements - including
changing the values of program variables - and still continue program execution
by issuing a subsequent CONT command typed in
at
the keyboard. This can
be
very useful in debugging situations.
On
resumption of the program. execution
continues at the exact point where it left off. A break caused by pressing the
RETURN
key in response ta
an
INPUT statement can
be
recovered by typing
CONT.
In
this case the same INPUT request
is
repeated.
Vou cannot resume pragram execution using
CO
NT if during the program
break vou make any editing changes to the program or issue a
CLR
or NEW. CONT
cannat continue program execution past
an
error message.
Example:
CONT
LIST
The List Program commando
LIST.
displays one or more lines of a program.
Vou may edit program lines displayed by the LIST commando
Format:
!
(blank)
line
LIST
linel-line2
-line
line-
where:
List entire program.
List one line.
List from linel to line2'
List fram start to line.
List from line ta end.
line
is
a line number.
Linel
is
a lower number than
line2·
Ail
line numbers
are
inclusive. The line
numbers do not need ta
be
actual line numbers
in
the program.
In
the case of listing one non-
existent line. a blank line
is
printed.
LIST
is
the most common command vou
will
give
in
PET
BASIC.
It
lists pra-
gram lines
on
the display screen for examination and possibly subsequent editing.
After
a LIST commando vou can move the cursor up to any line in the pragram
shawn
on
the
screenand
make editing changes.
113