MOVEc

MOVEc Conditional Address Register Move (AGU) MOVEc

Operation

Assembler Syntax

If T=1, then Rq → Rn

MOVET

Rq,Rn

If T=0, then Rq → Rn

MOVEF

Rq,Rn

Description

This instruction conditionally copies the value of one address register to another, depending on the value of the T bit in SR. These operations have the same timing as other move instructions. MOVEc is performed in the execution stage of the pipeline, unlike TFRA, which is performed in the address generation stage.

MOVET Rq,Rn

Copies one address register to another if the T bit is set.

MOVEF Rq,Rn

Copies one address register to another if the T bit is cleared.

Status and Conditions that Affect Instruction

Register Address

Bit Name

Description

SR[1]

T

True bit

Status and Conditions Changed by Instruction

None.

Example

movet r0,r1

Register/Memory Address

SR

R0

R1

Before

$00E4 0002

$0000 0010

After

$0000 0010

Note: $00E4 0002 in the status register indicates that the true bit is set.

SC140 DSP Core Reference Manual

A-295

Page 609
Image 609
Freescale Semiconductor SC140 MOVEc Conditional Address Register Move AGU MOVEc Operation, Movet r0,r1, Movet Rq,Rn