dsp56800e Freescale Semiconductor, Inc, dsp56800e Datasheet - Page 441

no-image

dsp56800e

Manufacturer Part Number
dsp56800e
Description
16-bit Digital Signal Controller Core
Manufacturer
Freescale Semiconductor, Inc
Datasheet
CMP
Instruction Fields:
Parallel Moves:
Freescale Semiconductor
1.The case where the destination of the data ALU operation is the same register as the destination of the par-
allel read operation is not allowed. Memory writes are allowed in this case.
2.This instruction occupies only 1 program word and executes in 1 cycle for every addressing mode.
Operation
CMP
Operation
CMP
2
Data ALU Operation
X:(Rn+xxxx),FF
X:(SP–xx),FF
X:xxxxxx,FF
#<0–31>,FF
Operands
X:xxxx,FF
EEE,EEE
X:(Rn),FF
#xxxx,FF
Operands
X0,F
Y1,F
Y0,F
C,F
A,B
B,A
Instruction Set Details
Compare
C
1
2
3
3
2
3
1
2
W
1
1
2
1
2
3
1
2
36-bit compare two accumulators or data registers.
Compare memory word with 36 bit accumulator.
Also see CMP.W.
Note: Condition codes are set based on a 36-bit
result. See CMP.W for condition codes on 16 bits.
Compare accumulator with an immediate integer 0–31.
Compare accumulator with a signed 16-bit immediate.
X:(Rj)+N
Source
X:(Rj)+
X0
Y1
Y0
A1
B1
C
A
B
Parallel Memory Move
Comments
Destination
X:(Rj)+N
X:(Rj)+
X0
Y1
Y0
A1
B1
C
A
B
CMP
1
A-97

Related parts for dsp56800e