HP -33E Owner's Handbook Manual page 52

Table of Contents

Advertisement

48
Branching
You can
use
unconditional
branches
to
create a loop. as shown on
the
previous page or
in
any part of a
program
where you wish
to transfer
execution
10
another
program line
.
Problem: When modified. the fol-
lowing
program calcu lates the square
of consecutive whole
numbers
begin-
ning with 2 each time
it
is
run. Key in
the program
with
the PRGM
-
RUN
sw
itch PRGMI1IIIRUN set to
PRGM.
Then switch to RUN
and
run the pro-
gram a
few limes 10
see
how
it
works.
Finally. modify the program b adding a
IGTol
03
instruction
after
the
f
I
PAUSE
I
instruction found
in
line 08.
Do thi
s
by
re-key ing
in
the program
and adding
the
IGTol
03
instruction
as
indicated
above.
This
should
create a
loop that
will
continually
display
a
new number
and
its
square,
then
increment
the
number by one and compute
;(s
square
and so on. To
load the
original
program, before
modification,
s
lid
e
the PRGM
-
RUN
swi tch
PRGM~RUN
to PRGM
and
perform the
foll
owing
keystrokes:
Keystrokes
Display
CD
CU
-
\R I"'GM
I
00
I
01-
ISTOII
02-
23
I
03-
ISTOIG I
04- 23 51
IACLI
I
05-
24
CD
I
".usc
I
06-
14 74
000
07-
15
0
mli~~
08-
14 74
IGToI03
09-
13 03
Run the program
to generate a
table
of squares.
SCI the
PRGM-RUN
swi
tch PRGM.mmIJRUN to RUN
and run
the pro-
gra
m
to generate
a table
of
squares. Remember to
return
to top
of
program
memory
by pre
ss
in
g
I!J
1
ATN
I,

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hp-33c

Table of Contents