7
Program Editing
71
The program
assumes
that a
va lue
for r
has
been
keyed
into
the
X.register.
To run the
program, set
the PRGM-RUN
sw
itch
PRGM~RUN back to RUN
and
press
001
AT"
1
10
return to
the top
of
progra
m memory .Al
so
press
OJ@
4toreturn
to normal FIX4 display.
Now
step through the program in
slow
motion using
a value of
10 for
r.
Keystrokes
10
IssTI
Display
10.
01-
15 0
100.0000
02-
15 73
3.1416
03-
61
314.1593
When you hold 15STI down.
the
first
in struction
is
displayed.
When
you release
I
SST
I
,
the first instruction is
executed.
Again holding I
SST
I down
displays
the second
instruction.
Again
releasing
I
ssT!
executes
the second
instru ction.
Holding I
SST
I
down
displays
the third in
st
ruction this
lime
.
And releasing
[SST
I
executes
the third
instruction
.
You
can
see
that
it
would be easy
10
spot
a
mi stake in your program
using
I
SST
I
key.
When
you
hold the
lasT!
key down in RUN mode. the program
line
number and keycode
for the
previous
line
are
di
splayed.
When
you
release
IBSTI
,
the
X-register
is
again displayed.
However if
you
s
witch
back
to PRGM mode
.
you will find
that the
previous
line is now
displayed. And
if
you
press
~
in RUN mode
after
pressi
ng
lasT!
.
the
calcu
lator
will begin
execution from the previou
s
line in
program
memory. Now
pre
ss
lasTI
in
RUN mode to review the program
instructions of the above
program.