English
Language : 

SH-2A Datasheet, PDF (122/501 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH™ RISC engine Family
Section 6 Instruction Descriptions
6.3.11 CLIPS
CLIP as Signed
Signed Saturation Value Compare Instruction
Arithmetic Instruction
SH-2A/SH2A-FPU (New)
No. Format
1
CLIPS.B Rn
2
CLIPS.W Rn
Abstract
If Rn > (saturation upper-limit value),
(saturation upper-limit value) → Rn,
1 → CS
If Rn < (saturation lower-limit value),
(saturation lower-limit value) → Rn,
1 → CS
Code
0100nnnn10010001
0100nnnn10010101
Cycle
1
1
T Bit
―
―
Description
Determines saturation. Signed data is used with this instruction. The saturation upper-limit value
is stored in general register Rn if the contents of Rn exceed the saturation upper-limit value, or the
saturation lower-limit value is stored in Rn if the contents of Rn are less than the saturation lower-
limit value, and the CS bit is set to 1. The saturation upper-limit value and lower-limit value for
each instruction are shown in the table below.
No.
Instruction
1
CLIPS.B Rn
2
CLIPS.W Rn
Saturation Lower-Limit Value
H'FFFFFF80
H'FFFF8000
Saturation Upper-Limit Value
H'0000007F
H'00007FFF
Notes
The CS bit value does not change if the contents of general register Rn do not exceed the
saturation upper-limit value or are not less than the saturation lower-limit value.
Rev. 3.00 Jul 08, 2005 page 108 of 484
REJ09B0051-0300