HP 9100B Operating & Programming Manual page 98

Hide thumbs Also See for 9100B:
Table of Contents

Advertisement

8
PROGRAMMING THE 91008
.IF
, · :
?.=<Y
·...
..
....
CONTINUED
PROGRAM KEYS
-
CONDITIONAL BRANCHING
PROGRAM
To
run the program: press 'END'
(t
he first time only), enter N
and
press
'CONT'.
KEY
DISPLAY
STORAGE
STEP
KEY
CODE
X
y
z
<+)
F
< +)00
x
~
<
>
23
N
01
F
15
N
N
02
t
27
N
N
=
n
03
1
01
1
n
04
t
27
1
1
n
05
ROLL
t
31
1
n
1
:
p
06
IF
X>Y
53
1
n
p
07
1
01
1
n
p
08
2
02
1
n
p
09
ROLL
t
31
n
p
1
Oa
X
36
n (P
X
n)
=
P
1
I
I
Ob
ROLL
t
22
1
n
p
Oe
34
1
(n
-
1)=
n
p
Od
GO TO ( ) ( )
44
1
n
p
<+)10
0
00
1
n
p
11
6
06
1
n
p
12
F
15
N
n
=
0
p
=
N!
13
END
46
IN
0
N!
I
~
.final
d1splay
A conditional branching instruction which tests a 'YES'
or
'NO'
condition stored in the calculator. The condi-
tion is set to 'YES', by the SET
FlAG
instruction, either
from the keyboard or as a program
step.
Branching after the
IF FlAG
instruction is the same as for the
conditional branch instructions previously described
(IF
x< y,
IF
x
==
y,
and IF
x>
y).
CONDITION MET:
FLAG
SET ('YES'} · the program
continues with the next step following the
IF FlAG
instruction and also clears the flag to the 'NO' con-
dition.
CONDITION NOT MET: FlAG NOT SET ('NO') - the
program skips the next two steps following the IF
FlAG
instruction and continues with the third step.
(See SET FlAG for example of the use of the IF FLAG
instruction.)

Advertisement

Table of Contents
loading

Table of Contents