341
BSFR, BSFRP, BSFL, BSFLP
1
2
3
4
4
6
7
8
7.3
S
hift instruction
7.3.2
BSFR, BSFRP, BS
FL, BSFLP
[Operation]
: Head number of the devices to be shifted (bits)
n
: Number of devices to which shift is executed (BIN 16 bits)
Function
BSFR
(1) Shifts the data in n points from the device designated by to the right by one bit.
(2) The device designated by + (n-1) is filled with 0.
BSFL
(1) Shifts the data in n points from the device designated by to the left by one bit.
(2) The device designated by is filled with 0.
BSFR, BSFRP
1-bit shift to right of n-bit data
BSFL, BSFLP
1-bit shift to left of n-bit data
7.3.2
BSFR, BSFRP, BSFL, BSFLP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
n
––
0
0
1
1
0
0
1
1
1
0
0
1
1
0
0
0
X14 X13
X13
X14
1
X17
X10
X17
X10
Carr
y
flag
(
SM700
)
Filled with 0s.
X12
Basic
Process
High
performance
Redundant Universal
LCPU
Command
Command
P
D
n
D
n
BSFR, BSFL
BSFRP, BSFLP
indicates an instruction s
y
mbol of BSFR/BSFL.
D
D
D
D
D
0
Carr
y
f
l
ag
(
SM700
)
Fill
ed
w
i
th
0
1
1
0
1
1
0
0
1
1
0
1
1
n
D
D
D
D
D
D
D
D
D
D
+(
n
-
1
)
+(
n
-
2
)
+(
n
-
3
)
+(
n
-
1
)
+(
n
-
2
)
+(
n
-
3
)
+
2
+
1
+
2
+
1
D
D
D
D
D
D
D
D
D
D
D
D
D
D
1
Carr
y
f
l
ag
(
SM700
)
Fill
ed
w
i
th
0
1
1
0
0
1
1
1
0
0
1
1
0
+(
n
-
1
)
+(
n
-
2
)
+(
n
-
3
)
+
2
+
1
+(
n
-
1
)
+(
n
-
2
)
+(
n
-
3
)
+
2
+
1
D