
A-380 SC140 DSP Core Reference Manual
SAT.L
SAT.L Saturate 32-Bit Data Register SAT.L
(DALU)
Description
Status and Conditions that Affect Instruction
None.
Status and Conditions Changed by Instruction
Example
sat.l d6
Instruction Formats and Opcodes
Note: ** indicates serial grouping encoding.
Operation Assembler Syntax
If Dn > $007FFFFFFF then $007FFFFFF → Dn
If Dn < $FF80000000 then $FF80000000 → Dn
Else Dn → Dn
SAT.L Dn
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.
Register Address Bit Name Description
Ln L Clears the Ln bit in the destination register.
EMR[2] DOVF Set if saturation occurs.
Register/Memory Address Before After
L6:D6
$1:$00 828B 5E9E $0:$00 7FFF FFFF
EMR
$0000 0004
Instruction Words Cycles Type Opcode
15 8 7 0
SAT.L Dn 1 1 1 0*1001FFF1100101
Kommentare zu diesen Handbüchern