Transfer data register to data register (dalu), Example 2, Operation assembler syntax – Freescale Semiconductor StarCore SC140 User Manual
Page 718

A-404
SC140 DSP Core Reference Manual
TFR
T-Z
TFR
Transfer Data Register to Data Register (DALU)
TFR
Description
Status and Conditions that Affect Instruction
Status and Conditions Changed By Instruction
Example 1
tfr d15,d14
Example 2
tfr d7,d6
Scaling up set by SR[5}, so L6 bit is set by bit 30 overflow.
Operation
Assembler Syntax
Da
→ Dn
TFR Da,Dn
TFR Da,Dn
Copies a source data register (Da) to a destination data register (Dn). The Ln bit is re-calculated (not
copied) in the destination register. Saturation mode is ignored and no saturation is done.
Register Address
Bit Name
Description
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
$00E0 0000
D15
$FF F23A 1422
L14:D14
$0:$FF F23A 1422
Register/Memory Address
Before
After
SR
$00E0 0020
D7
$00 5000 0000
D6
$1:$00 5000 0000