![Epson S1C17 Series Скачать руководство пользователя страница 184](http://html.mh-extra.com/html/epson/s1c17-series/s1c17-series_manual_107781184.webp)
S1C17 CORE MANUAL
Seiko Epson Corporation
7-125
(Rev. 1.2)
sr %rd, imm7
Function
Logical shift to the right
Standard)
Shift the content of
rd
to right as many bits as specified by
imm7
(0–3, 4, or 8 bits),
MSB
←
0
Extension 1)
imm7
is extended to
imm20
Extension 2)
imm7
is extended to
imm24
Code
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 0 1 1 0 0
r d
imm7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Flag
IL IE C V Z N
– –
↔
–
↔
↔
|
|
|
| |
Mode
Src: Immediate (unsigned)
Dst: Register direct
%rd
=
%r0
to
%r7
CLK
One cycle
Description
(1) Standard
The
rd
register is shifted as shown in the diagram below.
The number of bits to be shifted is specified by the 7-bit immediate
imm7
as follows:
imm7
= 0–3:
0–3 bits
imm7
= 4–7:
4 bits
imm7
= 8 or more: 8 bits
Data “0” is placed in the bit 15 of the
rd
register. The operation is performed in 16-bit size, and
bits 23–16 of the
rd
register are set to 0.
0
0
15
rd register
(after execution)
0
C
C
X X
X
X
X
X
X
X
0 0
0
0
0
0
0
0
23
16
(2) Extension
Using the
ext
instruction extends the 7-bit immediate
imm7
to 20-bit immediate
imm20
or 24-
bit immediate
imm24
. However, there is no difference in operation from the standard instruction
without extension.
(3) Delayed slot instruction
This instruction may be executed as a delayed slot instruction by writing it directly after a
branch instruction with the “d” bit included. In this case, extension of the immediate by the
ext
instruction cannot be performed.