7
DETAILS OF INSTRUCTIONS
S1C33 FAMILY C33 PE CORE MANUAL
EPSON
159
sra
%rd
,
imm5
Function
Arithmetic shift to the right
Standard)
Shift the content of
rd
to right as many bits as specified by
imm5
(
0
to
31
),
MSB
←
MSB
Extension
1
) Unusable
Extension
2
) Unusable
Code
When
imm5
(
4
) =
0
, arithmetic shift to the right by
0
to
15
bits
15
12 11
8
7
4
3
0
1
0
0
1
0
0
0
0
imm5
(3:0)
r d
0x90__
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
When
imm5
(
4
) =
1
, arithmetic shift to the right by
16
to
31
bits
15
12 11
8
7
4
3
0
0
0
1
0
1
0
1
1
imm5
(3:0)
r d
0x2B__
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Flag
IE C V Z N
– – –
↔
↔
|
|
|
|
Mode
Src: Immediate (unsigned)
Dst: Register direct
%rd
=
%r0
to
%r15
CLK
One cycle
Description
(
1
) Standard
The
rd
register is shifted as shown in the diagram below. The number of bits to be shifted can be
specified in the range of
0
to
31
by the
5
-bit immediate
imm5
. The sign bit is copied to the most
significant bit of the
rd
register.
31
rd
register
(after execution)
0
Sign bit
S ... S
S
(
2
) Delayed instruction
This instruction may be executed as a delayed instruction by writing it directly after a branch
instruction with the
“
d
”
bit included.