Conditional Tests And Conditional Branches - HP -33E Owner's Handbook Manual

Hide thumbs Also See for HP-33E:
Table of Contents

Advertisement

Branching
49
Conditional Tests
and Conditional Branches
Often there are times when you want to make a decision. Your HP-33E
makes use of conditionals and conditional branches to increase your
programming capabilities. The conditional operations on your HP-33E
keyboard are useful as program instructions to allow your calculator to
make decisions. The eight conditionals that are available on your
HP-33E are:
]
Tests to see if the value in the X-register is not equal to the
value in the Y-register.
3
Tests to see if the value in the X-register is equal to the value
in the Y-register.
1
I'ests to see if the value in the X-register is
greater than the
g
g
value in the Y-register.
]
Teststo see if the value in the X-registeris less than or equal
to the value in the Y-register.
(9
Teststo see if the value in the X-register is not equal to zero.
Tests to see if the value in the X-register is equal to zero.
Teststo see if the value in the X-register is greater than zero.
Tests to see if the value in the X-registeris less than zero.
Each conditional essentially asks a question whenit is encountered as an
instruction in a program. If the answer is YES, program execution
continues sequentially downward with the next line in program memory.
If the answer is NO, the calculator branches around the next line. For
example:
Program Memory
——
f
<——J No
:
Conditional Test
Yes

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hp-33c

Table of Contents