Motorola MPC823e Reference Manual page 1183

Microprocessor for mobile computing
Table of Contents

Advertisement

bclr
Assembler Syntax
BIT
0
1
2
FIELD
19
BIT
16
17
18
FIELD
00000
Definition
Operation
Description
MOTOROLA
bclr
BO,BI (LK = 0)
bclrl
BO,BI (LK = 1)
3
4
5
6
7
19
20
21
22
23
Branch Conditional to Link Register
m ← 32
if ¬ BO[2] then CTR ← CTR – 1
ctr_ok ← BO[2] | ((CTR ≠ 0) ⊕ BO[3])
cond_ok ← BO[0] | (CR[BI] ≡ BO[1])
if ctr_ok & cond_ok then
NIA ←
LR || 0b00
iea
if LK then LR ←
CIA + 4
iea
The BI field specifies the bit in the condition register to be used
as the condition of the branch. The BO field is encoded as
described in the table below.
BO
0000 y
Decrement the CTR, then branch if the condition is FALSE.
0001 y
Decrement the CTR, then branch if the condition is FALSE.
001 zy
Branch if the condition is FALSE.
0100 y
Decrement the CTR, then branch if the condition is TRUE.
0101 y
Decrement the CTR, then branch if the condition is TRUE.
011 zy
Branch if the condition is TRUE.
Decrement the CTR, then branch if the decremented CTR ≠ 0.
1 z 00 y
1 z 01 y
Decrement the CTR, then branch if the decremented CTR = 0.
1 z 1 zz
Branch always.
NOTE: In this table, z indicates a bit that is ignored. The z bits must be cleared. The
y bit has a hint about whether a conditional branch is likely to be taken.
MPC823e REFERENCE MANUAL
MPC823e Instruction Set—bclr
8
9
10
11
12
BO
24
25
26
27
28
16
DESCRIPTION
13
14
15
BI
29
30
31
LK
B-25

Advertisement

Table of Contents
loading

Table of Contents