Freescale Semiconductor SC140 specifications Moves.L, Move Long to, Moves.l d0,r0, MOVES.L Db,EA

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 619
Image 619

 

 

 

MOVES.L

 

 

 

 

MOVES.L

Move Long to

MOVES.L

Memory With Scaling and Saturation (AGU)

Operation

Assembler Syntax

Db → (EA)

MOVES.L Db,(EA)

Description

The data is scaled according to the scaling mode, and saturated if the Ln bit is set. The address register values must be long word-aligned. This instruction is affected by by SM (Saturation Mode bit - SR[2]). When SM is set, scaling is not performed, and the scale bits S[1:10] have no effect

MOVES.L Db,(EA)

Moves a saturated long word from a data register (Db) to a memory address pointed to by an address register with an optional offset or post-increment.

Status and Conditions that Affect Instruction

Register Address

Bit Name

Description

MCTL[31:0]

AM3–AM0

Address modification bits when updating R0–R7. Otherwise, the

 

 

instruction is not affected by MCTL.

SR[5:4]

S[1:0]

Scaling mode bits choose: no scaling, scale up one bit, or

 

 

scale down one bit.

Ln

L

Limited values are written to the destination if the Ln bit is set.

Status and Conditions Changed by Instruction

Register Address

Bit Name

Description

SR[6]

S

Scaling bit, set when the absolute value of the data moved (after

 

 

scaling and limiting) is greater than or equal to 0.25 and less than

 

 

0.75.

Example

moves.l d0,(r0)

Register/Memory Address

SR

R0

L0:D0

$00000054

Before

$00E0 0000

$0000 0054

$1:$00 8000 0000

After

$00E0 0000

$7FFF FFFF

SC140 DSP Core Reference Manual

A-305

Page 619
Image 619
Freescale Semiconductor SC140 Moves.L, Move Long to, Memory With Scaling and Saturation AGU Operation, Moves.l d0,r0