TFRc

TFRc

Conditionally Transfer Data Register

 

to Data Register (DALU)

Operation

Assembler Syntax

If T=1, then Da → Dn

TFRT

Da,Dn

If T=0, then Da → Dn

TFRF

Da,Dn

TFRc

Description

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.

Status and Conditions that Affect Instruction

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.

Status and Conditions Changed by Instruction

Register Address

Bit Name

Description

Ln

L

Calculates and updates the Ln bit in the destination register.

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

Register/Memory Address

SR

D14

L15:D15

Before

$00E4 0002

$FF F23A 1422

After

$0:$FF F23A 1422

A-410

SC140 DSP Core Reference Manual

Page 724
Image 724
Freescale Semiconductor SC140 Tfrt d14,d15, If T=1, then Da → Dn, If T=0, then Da → Dn, Tfrt Da, Dn, Tfrf Da, Dn