HP 9100B Operating & Programming Manual page 94

Hide thumbs Also See for 9100B:
Table of Contents

Advertisement

8
PROGRAMMING THE 91008
. : · . . . :
. .
:·I~F··~.-
:....·
..
: : : · ~
~
. . .
~~:
·
y ,
CONTINUED
PROGRAM KEYS- CONDITIONAL BRANCHING
NOTE
a)
Use of the (
+
) or (
-
) page signs is page
depend-
ent (see GO TO key on Page 68) and, therefore,
is not required unless the branch is between
pages.
b)
The SUB instruction will cause a branch to the
subroutine at the address designated.
c)
A 'continue' (CONT) cannot be used as a 'no
operation'
.
in the step after the 'IF' instruction,
if it is followed by any one of the following:
SUB
~
RETURN,
(+
)
,(-
), any alphameric.
This is because CONT does not clear the 'GO
TO' condition set up when an I F instruction 1s
met (YES).
The following examples, (1) through (4)
,
are parts of imaginary
programs. Each program contains some comb1nation of pos-
sible mstruct1ons following the I F instruction. ln each case the
course of the program is mapped for 'conditlon met' (YES) and
'cond1tion not met' (NO).
EXAMPLE (1)
Operations follow the 'I F' instruct1on:
STEP
KEY
(+
)23
IF
X
=Y
~
(YES)
(NO)
24
TO POLAR
25
t
26
X
27
. -
. .
EXAMPLE
(2)
Add
ress
fo
llows the 'I F'
instruction
:
STEP
KEY
(+)23
IF
X
=Y
~
(YES)
(NO)
24
2
25
a
Branches
26
X
to
(+
)2a
Multiplies

Advertisement

Table of Contents
loading

Table of Contents