EasyManua.ls Logo

Infineon TriCore TC1.6P - SAT.B - Saturate Byte

Infineon TriCore TC1.6P
484 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
TriCore
®
TC1.6P & TC1.6E
32-bit Unified Processor Core
Instruction Set
V1.0 2013-07
User Manual (Volume 2) 3-323
SAT.B
Saturate Byte
Description
If the signed 32-bit value in D[a] is less than -128, then store the value -128 in D[c]. If D[a] is greater than 127, then
store the value 127 in D[c]. Otherwise, copy D[a] to D[c].
SAT.BD[c], D[a] (RR)
sat_neg = (D[a] < -80
H
) ? -80
H
: D[a];
D[c] = (sat_neg > 7F
H
) ? 7F
H
: sat_neg;
SAT.BD[a] (SR)
Status Flags
Examples
sat.b d3, d1
See Also
SAT.BU, SAT.H, SAT.HU
If the signed 32-bit value in D[a] is less than -128, then store the value -128 in D[a].
If D[a] is greater than 127, then store the value 127 in D[a]. Otherwise, leave the contents of D[a] unchanged.
sat_neg = (D[a] < -80
H
) ? -80
H
: D[a];
D[a] = (sat_neg > 7F
H
) ? 7F
H
: sat_neg;
C Not set by this instruction.
V Not set by this instruction.
SV Not set by this instruction.
AV Not set by this instruction.
SAV Not set by this instruction.
sat.b d1
31
c
28 27
5E
H
20 19
-
18 17
-
16 15
-
12 11
a
8 7
0B
H
0
15
00
H
12 11
a
8 7
32
H
0

Table of Contents

Related product manuals