Labels; Flowcharts - HP -34C Owner's Handbook Manual

Table of Contents

Advertisement

68
Simple Programming
Labels
The labels ( (&), (8], 0-9) in your programs act as addresses—they tell
the calculator where to begin or resume execution. When a label is
encountered as part of a program, execution merely *'falls through'' the
label and continues onward. For example, in the program segment shown
below, if you press (A], execution would begin at (]
(2] and con-
tinue downward through program memory, on through the [n)
3
instruction, until the
was encountered and execution returned to
line 000 and halted.
)
a)
When you press (&]... execution
begins here.
No (h](r7n] here ...
so execution falls through the
™)
3 instruction ...
. and continues to the (RTN],
then transfers to line 000 and halts.
Flowcharts
At this point, we digress for a moment from our discussion of the calcu-
lator itself to discuss a fundamental and extremely useful tool in
programming—the flowchart.
A flowchart is an outline of the way a program solves a problem. With
210 possible instructions, it is quite easy to get "'lost" while creating a
long program, especially if you try to simply load the complete program
from beginning to end with no breaks. A flowchart is a shorthand that can

Advertisement

Table of Contents
loading

Table of Contents