7-52
SFTBR(P),SFTBL(P)
SFTBL(P)
(1) This instruction shifts the n1 bits data in the devices starting from the device specified by
to the left by n2 bits.
n1=10, n2=4
(2) n1 and n2 are specified under the condition that n1 is larger than n2. If the value of n2 is
equal to or larger than the value of n1, the remainder of n2 / n1 (n2 devided by n1) is used
for a shift.
However, if the remainder of n2 / n1 is 0, the instruction will be not processed.
(3) This instruction specifies n1 ranged from 1 to 64.
(4) Bits starting from the lowest bit to n2th bit are filled with 0s. If the value of n2 is larger than
the value of n1, the remainder of n2 / n1 will be 0.
(5) If the value specified by n1 or n2 is 0, the instruction will be not processed.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an
error code is stored into SD0.
• The value specified by n1 is other than 0 to 64. (Error code: 4100)
• The value data specified by n2 is negative. (Error code: 4100)
• The range of devices specified by n1 exceeds the range of devices specified by .
(Error code: 4101)
D
1
(SM700)
110111101
Filled with 0s
2
1
D D
3
D
4
D
5
D
n2
6
D
7
D
8
D D
Carry flag
n1
111010000
2
1
D D
3
D
4
D
5
D
6
D
7
D
8
D D
D