Motorola MPC823e Reference Manual page 1188

Microprocessor for mobile computing
Table of Contents

Advertisement

MPC823e Instruction Set—cmpli
cmpli
Assembler Syntax
BIT
0
1
2
FIELD
10
BIT
16
17
18
FIELD
Definition
Operation
Description
B-30
cmpli
crfD,L,rA,UIMM
3
4
5
6
7
CRFD
19
20
21
22
23
UIMM
Compare Logical Immediate
a ← (rA)
if a <U ((16)0 || UIMM) then c ← 0b100
else if a >U ((16)0 || UIMM) then c ← 0b010
else c ← 0b001
CR[4 ∗ crfD–4 ∗ crfD + 3] ← c || XER[SO]
The contents of rA are compared with 0x0000|| UIMM, treating
the operands as unsigned integers. The result of the comparison
is placed into CR field crfD.
Other registers altered:
Condition Register (CR field specified by operand crfD):
Affected: LT, GT, EQ, SO
Simplified mnemonics:
cmpldi
r A,value
cmplwi cr3,rA,value
POWERPC ARCHITECTURE
LEVEL
UISA
MPC823e REFERENCE MANUAL
8
9
10
11
12
0
L
24
25
26
27
28
equivalent to
cmpli
equivalent to
cmpli
SUPERVISOR
OPTIONAL
LEVEL
13
14
15
A
29
30
31
0,1,rA,value
3,0,rA,value
FORM
D
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents