HP -16C Owner's Handbook Manual page 96

Table of Contents

Advertisement

94
Section 9: Program Branching and Controls
Line
015
016
017
018
019
Ry
3
3
3
3
2
T
A
z
1
Y
0
1
1
X
1
1
1
1
Keys =%
[9](RLC]
[x2y]
[¢](bsz]
Line 019 decrements the storage register address in R; so the next
loop will sum bits from a new register.
Further Information
Subroutines
Execution. The go to subroutine instruction,
label, is a
simple branch with a special trait: it establishes a pending return
condition.
Program
execution,
once
transferred
to
the
line
containing
the
designated
label,
continues
until
the
first
subsequent
instruction is encountered—at which point
execution transfers back to the instruction immediately following
the corresponding
instruction.
Subroutine Execution
Program
(q]
C
(g][LBL]1
'
Start
/
/
1
/
\
Execution
(9]
\
(9](RTN]
Y Execution
transfers to
returns to
line 000
END
RETURN
original
and halts.
routine.

Advertisement

Table of Contents
loading

Table of Contents