Tfrc, Conditionally transfer data register, Example – Freescale Semiconductor StarCore SC140 User Manual
Page 724: Operation assembler syntax

A-410
SC140 DSP Core Reference Manual
TFRc
TFRc
Conditionally Transfer Data Register
TFRc
to Data Register (DALU)
Description
Status and Conditions that Affect Instruction
Status and Conditions Changed by Instruction
Note:
The Ln bit is re-calculated (not copied) in the destination register. Saturation mode is ignored and
no saturation is done.
Example
tfrt d14,d15
Operation
Assembler Syntax
If T=1, then Da
→ Dn
TFRT Da,Dn
If T=0, then Da
→ Dn
TFRF Da,Dn
TFRT Da, Dn
Copies a source data register (Da) to a destination data register (Dn) if the T bit is set.
TFRF Da, Dn
Copies a source data register (Da) to a destination data register (Dn) if the T bit is cleared.
Register Address
Bit Name
Description
SR[1]
T
True bit
SR[5:4]
S[1:0]
Scaling bits determine which bits in the result are used in the Ln bit
calculation.
Register Address
Bit Name
Description
Ln
L
Calculates and updates the Ln bit in the destination register.
Register/Memory Address
Before
After
SR
$00E4 0002
D14
$FF F23A 1422
L15:D15
$0:$FF F23A 1422