POKE stores a specified byte value into the PETs memory.
POKE
is
similar
to a system function in
that
it
is
instrumental in performing certain specialized
chores; these are described in Chapters
5 and
6.
POKE
is
not used often.
56
POKE 1.,
AD
Store the value of variable AD in memory
location
1.
Program Termination: END, STOP,
WAIT
Program termination statements end, or temporarily
hait
a
PET
BASIC pro-
gram that
is
executing. These statements are optional; in particular, an
END
state-
ment
is
not required
to
end a
PET
BASIC program.
Examples:
600
END
61:1
STOP
1
1:1(1
lo.lA
IT
525.,
1
Provides
two
program termination points.
Performs a programmed
BREAK
function, like
the
STOP
key from the keyboard. Program
execution can
be
continued by typing CONT
from the keyboard.
Wait
until
memory location 525 becomes
l,
then continue program execution.
WAIT
is
a
special statement
not
used in normal program-
ming chores.
BASIC Commands:
NEW,
CLR, LIST, LOAD, RUN, CONT, SAVE,
VERIFY
BASIC commands are a group of operations
that
are normally used in im-
mediate mode.
Examples:
NEW
CLR
LIST
LOAD
"ASKME"
RUN
CO
NT
SAVE "PETPRO"
Start new program; set variables to zero or null.
Set variable
to
zero or
nu
II.
List current program.
Search tape for program named ASKME and
load
it
into
memory.
Execute program.
Continue program execution at line
following
last
STOP.
Write
current program
to
tape cassette unit.
83