Section 7: Program Decisions And Control; Program Conditional Tests - HP -11C Owner's Handbook Manual

Hide thumbs Also See for HP-11C:
Table of Contents

Advertisement

Section 7
Program Decisions and Control
Decisions and Control In Brief
Program Conditional Tests
The HP-11C's eight conditional tests are true/false tests used in
programs to enable your HP-11C to make decisions. In a running
program, when the result of a conditional test is true, program
execution continues with the first instruction following the
conditional test. When the result of a conditional test is false,
execution bypasses the first instruction following the test and
resumes with the second instruction following the test.
Is the test true?
Instruction
Conditional Test
——4
E
Instruction
l
Yes
Instruction
-
No
Instruction
""Doif True'' Rule
Your HP-11C's conditionals operate by comparing the value in the
X-register to either the number in the Y-register or to zero in the
following manner:
tests to see if the value in the X-register is less than or
equal to the value in the Y-register.
tests to see if the value in the X-register is greater than
the value in the Y-register.
tests to see if the value in the X-register is not equal to
the value in the Y-register.
110

Advertisement

Table of Contents
loading

Table of Contents