Section 9: Branching; Unconditional Branching And Looping - HP -67 Owner's Handbook Manual

Hide thumbs Also See for HP-67:
Table of Contents

Advertisement

Section 9
Branching
Unconditional Branching and Looping
You have seen how the nonloadable operation
() () (M) (n) can be
used from the keyboard to transfer execution to any step number of
program memory. You can also use the go to instruction as part of
a program, but in order for
to be recorded as an instruction, it
must be followed by a label designator (£§ through @&, 7 (&
through £ (€], or (0} through (8)). (It can also be followed by
[@—more about using [f later.)
Whenthe calculatoris executing a program and encounters a
0
instruction, for example, it immediately halts execution and begins
searching sequentially downward through program memory for that
label. When the first [}
3 instruction is then encountered,
execution begins again.
By using a
instruction followed by a label designator in a pro-
gram, you can transfer execution to any part of the program that you
choose.
o
o
Execution branches to next
-
r
o
a
a
|
I
|
l
l
I
>
0
e
179

Advertisement

Table of Contents
loading

Table of Contents