dsp56800 Freescale Semiconductor, Inc, dsp56800 Datasheet - Page 388

no-image

dsp56800

Manufacturer Part Number
dsp56800
Description
16-bit Digital Signal Controllers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Tcc
Example:
Explanation of Example:
Condition Codes Affected:
Instruction Fields:
Timing:
Memory:
A-158
Note:
Operation
Tcc
The Tcc instruction does not allow the following condition codes: HI, LS, NN, and NR.
CMP
TGT
In this example, the contents of the 16-bit X0 register are transferred to the 36-bit A accumulator, and
the contents of the 16-bit R0 address register are transferred to the 16-bit R1 address register if the
specified condition is true. If the specified condition is not true, a NOP is executed.
The condition codes are tested but not modified by this instruction.
2 oscillator clock cycles
1 program word
Source
DD
DD
Data ALU Transfer
A
B
A
B
Destination
B
A
B
A
F
F
X0,A
X0,A
Transfer Conditionally
DSP56800 Family Manual
Source
R0
R0
R0
R0,R1
AGU Transfer
(No transfer)
(No transfer)
(No transfer)
Destination
R1
R1
R1
; compare X0 and A (sort for minimum)
; transfer X0 → A and
;
R0 → R1 if X0 < A
C
2
W
1
Conditionally transfer one register.
Conditionally transfer one data ALU
register and one AGU register.
Freescale Semiconductor
Comments
Tcc

Related parts for dsp56800