High−level Instructions
3 − 233
Description
Shifts n bits of the 16-bit area specified by D to the left (to the higher bit position).
00
····
Bit position
·····
D
15 1211 8 7 4 3 0
·· ·
Bit position
·····
D
15 1211 8 7 4 3
0
0
0
n bits starting from bit position 0 are filled with 0s.
The data in the n th bit is
transferred to R9009
(carry flag).
n
When the n bits are shifted to the left,
− The n bits starting from bit position 0 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.