Programs and Immediate
Mode
Let
us
look at
how
immediate mode can be used to examine values
assigned to labeled variables within a program.
If statement 120 below were in a program and vou wished to find
out
the
value of the
component
variables in
that
statement. vou could use calculator
mode to
print
them.
10
Program stored
in memory
120
A=:E:'t.C.···'I1
999
Hm
PEAD'T',
:":E:
..
C
..
D
15
This illustration assumes
that
when the program ends. B
is
assigned the
value 15. C
is
assigned the value
1.
and D
is
assigned the value
8.
The current values of variables remain available until vou begin a new pro-
gram. or rerun the same program.
BASIC
STATEMENT
GROUPS
We
are
now
going to describe the various BASIC statements that
Vou
may
use in a
PET
program.
PET
BASIC statements are described twice:
1.
In the balance of this chapter
we
will
describe
PET
BASIC statements
briefly
bV
functional groups. This description
is
intended to familiarize
vou
with
the types of capabilities available
in
PET
BASIC
without
becoming buried in detail. This description
is
also sufficient
to
provide
background for the discussion of programming concepts
that
follows.
2.
In Chapter 4
we
describe
PET
BASIC statements individually.
with
full
detail.
While
reviewing these statements. remember
that
PE.T
BASIC
has
a number
of"
characteristics"
that
give
it
a unique personality. These characteristics are de-
scribed in Chapter
5.
78