Example:
410
LOAD
"OVLY1"
NEW
The NEW command
c1ears
the PETs memory of the current program.
Format:
NEW
When
a NEW command
is
executed. the
PET
performs a
CLR
for ail varia-
bles
but
also reinitializes ail pointers
that
are keeping track of the program state-
ments stored
in
memory. The program itself
is
not physically deleted. These NEW
operations are automatically performed during a LOAD process.
Issue a NEW command when vou
want
to begin creating a stored program
entered from the keyboard and there
is
already a program
in
memory. If a NEW
were not issued. subsequent program entry lines
would
simply modify the exist-
ing program.
Example:
NEW
NEW
is
always issued in immediate mode. If a NEW command
is
issued
from
within
a program. the program
will
"self
destruct";
it
will
clear itself out
just
as
if a NEW command had been issued from the keyboard. Of course. the program
terminates at
that
point.
RUN
The
RUN
command begins execution of the program currently stored in
memory.
Format:
RUN
{(blank)
Begin execution at the lowest-numbered line.
line Begin execution at the specified line.
When
the
RUN
command
is
executed
in
immediate mode. the
PET
performs
a
CLR
of ail program variables and performs a
RESTORE.
then begins executing
the program. This
is
by far the most
common
use of the
RUN
commando
/77