CPU12
INSTRUCTION GLOSSARY
MOTOROLA
REFERENCE MANUAL
6-109
Operation:
If C
+
Z = 0, then (PC)
+
$0004
+
Rel
⇒
PC
For unsigned binary numbers, if (Accumulator)
> (
Memory), then branch
Description:
If LBHI is executed immediately after execution of CBA, CMPA, CMPB,
CMPD, CPX, CPY, SBA, SUBA, SUBB, or SUBD, a branch occurs if and
only if the unsigned binary number in the accumulator was greater than
the unsigned binary number in memory. This instruction is generally not
useful after INC/DEC, LD/ST, TST/CLR/COM because these instruc-
tions do not affect the C status bit.
See
for details of branch execution.
Condition Codes and Boolean Formulas:
None affected.
Addressing Modes, Machine Code, and Execution Times:
LBHI
Long Branch if Higher
LBHI
S
X
H
I
N
Z
V
C
–
–
–
–
–
–
–
–
Source Form
Address Mode
Object Code
Cycles
Access Detail
LBHI
rel16
REL
18 22 qq rr
4/3
OPPP/OPO
1
Notes:
1. OPPP/OPO indicates this instruction takes four cycles to refill the instruction queue if the branch is taken and
three cycles if the branch is not taken.
Branch
Complementary Branch
Test
Mnemonic
Opcode
Boolean
Test
Mnemonic
Opcode
Comment
r>m
LBGT
18 2E
Z
+
(N
⊕
V) = 0
r
≤
m
LBLE
18 2F
Signed
r
≥
m
LBGE
18 2C
N
⊕
V = 0
r<m
LBLT
18 2D
Signed
r=m
LBEQ
18 27
Z = 1
r
≠
m
LBNE
18 26
Signed
r
≤
m
LBLE
18 2F
Z
+
(N
⊕
V) = 1
r>m
LBGT
18 2E
Signed
r<m
LBLT
18 2D
N
⊕
V = 1
r
≥
m
LBGE
18 2C
Signed
r>m
LBHI
18 22
C
+
Z = 0
r
≤
m
LBLS
18 23
Unsigned
r
≥
m
LBHS/LBCC
18 24
C = 0
r<m
LBLO/LBCS
18 25
Unsigned
r=m
LBEQ
18 27
Z = 1
r
≠
m
LBNE
18 26
Unsigned
r
≤
m
LBLS
18 23
C
+
Z = 1
r>m
LBHI
18 22
Unsigned
r<m
LBLO/LBCS
18 25
C = 1
r
≥
m
LBHS/LBCC
18 24
Unsigned
Carry
LBCS
18 25
C = 1
No Carry
LBCC
18 24
Simple
Negative
LBMI
18 2B
N = 1
Plus
LBPL
18 2A
Simple
Overflow
LBVS
18 29
V = 1
No Overflow
LBVC
18 28
Simple
r=0
LBEQ
18 27
Z = 1
r
≠
0
LBNE
18 26
Simple
Always
LBRA
18 20
—
Never
LBRN
18 21
Unconditional
Summary of Contents for CPU12
Page 8: ...MOTOROLA CPU12 viii REFERENCE MANUAL ...
Page 14: ...MOTOROLA INTRODUCTION CPU12 1 4 REFERENCE MANUAL ...
Page 20: ...MOTOROLA OVERVIEW CPU12 2 6 REFERENCE MANUAL ...
Page 38: ...MOTOROLA INSTRUCTION QUEUE CPU12 4 6 REFERENCE MANUAL ...
Page 300: ...MOTOROLA DEVELOPMENT AND DEBUG SUPPORT CPU12 8 16 REFERENCE MANUAL ...
Page 338: ...MOTOROLA MEMORY EXPANSION CPU12 10 8 REFERENCE MANUAL ...
Page 364: ...MOTOROLA INSTRUCTION REFERENCE CPU12 A 26 REFERENCE MANUAL ...
Page 386: ...MOTOROLA HIGH LEVEL LANGUAGE SUPPORT CPU12 C 6 REFERENCE MANUAL ...
Page 438: ...MOTOROLA SUMMARY OF CHANGES CPU12 S 2 REFERENCE MANUAL ...
Page 439: ......