EasyManua.ls Logo

HP HP-67 - Page 191

HP HP-67
364 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Branching
187
You
can
see
that
after
it
has
made
the
conditional
test,
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
of
tax.

Table of Contents

Other manuals for HP HP-67

Related product manuals