TriCore
®
TC1.6P & TC1.6E
32-bit Unified Processor Core
Instruction Set
V1.0 2013-07
User Manual (Volume 2) 3-326
SAT.HU
Saturate Half-word Unsigned
Description
If the unsigned 32-bit value in D[a] is greater than 65,535, then store the value 65,535 in D[c]; otherwise copy D[a]
to D[c].
SAT.HUD[c], D[a] (RR)
D[c] = (D[a] > FFFF
H
) ? FFFF
H
: D[a]; // unsigned comparison
SAT.HUD[a] (SR)
Status Flags
Examples
sat.hu d3, d1
See Also
SAT.B, SAT.BU, SAT.H
If the unsigned 32-bit value in D[a] is greater than 65,535, then store the value 65,535 in D[a]; otherwise leave
the contents of D[a] unchanged.
D[a] = (D[a] > FFFF
H
) ? FFFF
H
: D[a]; // unsigned comparison
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.hu d1
31
c
28 27
7F
H
20 19
-
18 17
-
16 15
-
12 11
a
8 7
0B
H
0