6 BASIC INSTRUCTIONS
6.5 Shift Instructions
367
6
• These instructions shift the (n1) bit(s) of data starting from the specified device to the left by (n2) bit(s).
When (n1)=10 and (n2)=4
• Specify (n1) and (n2) so that the following condition is satisfied: (n1)>(n2). In the case of (n1)(n2), data is shifted by the
value of the remainder of (n2)(n1). However, if the remainder value is 0, no processing is performed.
• Specify (n1) within the range of 1 to 64.
• The (n2) bit(s) from the least significant bit is/are filled with 0(s). In the case of (n1)<(n2), the bits are filled with 0s by the
value of the remainder of (n2)(n1).
• If (n1) or (n2) is 0, no processing is performed.
(1) Filled with 0s.
Error code
(SD0)
Description
3405H The value specified by (n1) is out of the range, 0 to 64.
1
110111101
111010000
0
1
(n1)
(n2)
(d)+9 (d)+8 (d)+7 (d)+6 (d)+5 (d)+4 (d)+3 (d)+2 (d)+1 (d)
(d)+9 (d)+8 (d)+7 (d)+6 (d)+5 (d)+4 (d)+3 (d)+2 (d)+1 (d)
(1)
(SM700)