6 BASIC INSTRUCTIONS
6.5 Shift Instructions
353
6
• This instruction shifts the 16-bit binary data in the device specified by (d) to the left by (n) bit(s). The (n) bit(s) from the least
significant bit is/are filled with 0(s).
When (n)=8
• When (d) is a bit device, bits are shifted to the left within the device range specified by digit specification.
When (n)=5
• The number of bits actually to be shifted is the remainder of (n)(specified number of bits). For example, when (n) is 15 and
the specified number of bits is 8, 7 bits are shifted because 15 divided by 8 equals 1 with a remainder of 7.
• Specify any value between 0 and 15 for (n). If a value 16 or larger is specified, the value is shifted by the remainder value of
n16 to the left. For example, when (n) is 18, 2 bits are shifted to the left because 18 divided by 16 equals 1 with a
remainder of 2.
There is no operation error.
1111001100001111
0000
1111
00000000
b15 b8 b0
b7
b0
b7
b15 b8
1
b14 b13 b12 b11 b10 b9 b6
b5
b4 b3 b2 b1
b14 b13 b12 b11 b10 b9 b6
b5
b4 b3 b2 b1
(d)
(d)
(SM700)
0
00
11
00
11
100 11000
X14 X13
X13X14
1
X17 X10
X17 X10X12
(SM700)
0