Specifications

Branch on Less than or
Equal(Z*ro)
BLE lot
1.5~~. 2.6~
01 to, I ‘31 14
offset
I t I I I
i5
07
0
Operation: lot + (PC) if Z v (N V V) = 1
Description: Operation of BLE is similar to that of BLT but in addition will
cause a branch if the result of the previous operation was zero.
Branch on Greater Than (Zero) BGT lot
1.51u,2.6u~
0, 0
I
3
I I II
0
11 1
offset
1
15
8 7 0
Operation: lot -+ (PC) if Z v (N tt V) = 0
Description: Operation of BGT is’ similar to BGE, except that BGT will not
cause a branch on a zero result.
Unsigned Conditional
Branches-The Unsigned Conditional Branches pro-
vide a means of testing the result of comparison operations in which the
operands are considered as unsigned values.
Branch on Hlgher BHI
l.Sur,2.6ur
1 ,
, 0
I, I I
1
‘0
offset
11.1 I I I I I
‘t 5 8 7
0
Gperation: lot + (PC) if both C and Z = 0
Description: Causes a branch if the previous operation caused neither
a carry
nor a zero result. This will happen in comparison (CMP) operations as
as the source has a higher unsigned value than the destination.
long
Branch on Lower of same
BLOS lot
1.5~. 2.61~s
I,0 f ,
1 I'
offset
I I I I I 1 1
(5
8 7
0
Operation: lot + (PC) if C v Z = 1
Description: Causes a branch if the previous operation caused either a carry
or a zero result. BLOS is the complementary operation to BHI. The branch
will occur in comparison operations as long as the source is equal to, or has
a lower unsigned value than, the destination.
Comparison of unsigned values with the CMP instruction can be tested for
“higher or same” and “higher” by a simple test of the C-bit. For convenience,
the mnemonics BHIS (Branch on Higher. or Same) and BLOS (Branch on
Lower Or Same) have been defined such that BHIS = BCC and BLO = BCS.
Bmnch on Higher Q Same BHIS IQC -
1.5~. 2.6~
t 1
0
I, Ii I I
3
0
offset
I, I I , I
15
-8 7
0
Operation: lot + (PC) if C = 0
Description: BHIS is the same instruction as BCC
25