SAT.L

SAT.L

Saturate 32-Bit Data Register

SAT.L

 

(DALU)

 

Operation

Assembler Syntax

 

If Dn > $007FFFFFFF then $007FFFFFF → Dn SAT.L Dn

If Dn < $FF80000000 then $FF80000000 → Dn

Else Dn → Dn

Description

SAT.L Dn

If the values of the extension bits [39:32] and bit 31 of the source register are all zeros or all ones (no overflow), Dn is left alone. If the source register indicates an overflow, the saturated value (positive or negative depending on bit 39) is transferred to the destination register and sign-extended. The saturated positive value is $007FFFFFFF; the saturated negative value is $FF80000000. This operation is independent of the SM bit in SR. It is intended for use after an instruction that is not affected by the saturation mode and before a MOVES instruction.

Status and Conditions that Affect Instruction

None.

Status and Conditions Changed by Instruction

Register Address

Bit Name

Description

Ln

L

Clears the Ln bit in the destination register.

EMR[2]

DOVF

Set if saturation occurs.

Example

sat.l d6

Register/Memory Address

L6:D6

EMR

Before

$1:$00 828B 5E9E

After

$0:$00 7FFF FFFF

$0000 0004

Instruction Formats and Opcodes

Instruction

Words

Cycles

Type

SAT.L Dn

1

1

1

Note: ** indicates serial grouping encoding.

Opcode

158 70

0 * 1 0 0 1 F F F 1 1 0 0 1 0 1

A-380

SC140 DSP Core Reference Manual

Page 694
Image 694
Freescale Semiconductor SC140 specifications Sat.L, Sat.l d6, SAT.L Dn