HP -67 Owner's Handbook Manual page 191

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

Advertisement

Branching
187
You can see that after it has made the conditionaltest, the calculator
will do the next instruction if the test is true. This is the 'DO if
TRUE"' rule.
The step immediately following the conditional test can contain any
instruction. The most commonly used instruction, of course, will be
a
instruction. This will branch program execution to another
section of program memory if the conditional test is true.
Conditional Test ——1
Yes
I
|
r—-
@
|
No
Instruction
<=—
Instruction
Instruction
Instruction
-
0BCEE
Instruction
|
|
I
|
|
I
I
|
L
Instruction
Instruction
Instruction
Now let's look at that accountant's problem again. For persons with
incomes of more than $10,000 he wants to compute a tax of 20%.
For persons with incomes of $10,000 or less, the tax is 17.5%. The
following program will test the amount in the X-register and compute
and display the correct percentage oftax.

Advertisement

Table of Contents
loading

Table of Contents