MOTOROLA
5-14
INSTRUCTION SET
CPU16
REFERENCE MANUAL
Note
The numeric range of long branch offset values is $8000 (–32768) to
$7FFF (32767), but actual displacement from the instruction differs
from the range for two reasons.
First, PC values are automatically aligned to word boundaries. Only
even offsets are valid — an odd offset value will be rounded down.
Maximum positive offset is $7FFE.
Second, instruction pipelining affects the value in the PC at the time
an instruction executes. The value to which the offset is added is the
Table 5-21 Long Branch Instructions
Unary Branches
Opcode
3780
3781
Simple Branches
Opcode
3784
3785
3787
3791
378B
3790
3786
378A
3788
3789
Unsigned Branches
Opcode
3784
3785
3787
3782
3783
3786
Signed Branches
Opcode
3787
378C
378E
378F
378D
3786
Mnemonic
LBRA
LBRN
Equation
1
=
1
1
=
0
Condition
True
False
Mnemonic
LBCC
LBCS
LBEQ
LBEV
LBMI
LBMV
LBNE
LBPL
LBVC
LBVS
Equation
C
=
0
C
=
1
Z
=
1
EV
=
1
N
=
1
MV
=
1
Z
=
0
N
=
0
V
=
0
V
=
1
Condition
Equation
Equation
Equation
Equation
Equation
Equation
Equation
Equation
Equation
Equation
Mnemonic
LBCC
LBCS
LBEQ
LBHI
LBLS
LBNE
Equation
C
=
0
C
=
1
Z
=
1
C
Z
=
0
C
Z
=
1
Z
=
0
Condition
(X)
≥
(M)
(X)
<
(M)
(X)
=
(M)
(X)
>
(M)
(X)
≤
(M)
(X)
≠
(M)
Mnemonic
LBEQ
LBGE
LBGT
LBLE
LBLT
LBNE
Equation
Z
=
1
N
⊕
V
=
0
Z
(N
⊕
V)
=
0
Z
(N
⊕
V)
=
1
N
⊕
V
=
1
Z
=
0
Condition
(X)
=
(M)
(X)
≥
(M)
(X)
>
(M)
(X)
≤
(M)
(X)
<
(M)
(X)
≠
(M)
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.