High−level Instructions
3 − 231
Description
Shifts n bits of the 16-bit data area specified by D to the right (to the lower bit position).
00
·· ·
Bit position
·····
D
15 1211 8 7 4 3 0
·· ·
Bit position
·····
D
15
0
12
0
11 87 43 0
The higher n bits of D are filled with 0s.
The data in the n th bit is transferred to R9009 (carry flag).
n
When n bits are shifted to the right,
− The higher n bits of the 16-bit data area are filled with 0s.
− The data in the n th bit is transferred to special internal relay R9009 (carry flag).
The n is effective only for the lower 8 bits of the 16−bit data. The amount of the shift can be specified within a
range of 1 bit to 255 bits.
————
n
Upper 8 bits
are invalid
K0 to K255
(H00 to HFF)
00000000
·· ·· ·· ··
15 1211 8 7 4 3 0
————
Flag conditions
・Error flag (R9007): Turns on and stays on when the area specified using the index modifier
exceeds the limit.
・Error flag (R9008): Turns on for an instant when the area specified using the index modifier
exceeds the limit.
・Carry flag (R9009): Turns on for an instant when the content of bit transferred to R9009 (n th bit)
is recognized as 1.