158
D R O R P
D PR O L
D
n
D
n
FNC
30
FNC
31
1
1
2
2
M
M
3
3
○
○
○
○
○
○
○
○
n
X Y M S
D.b R.b
KnX KnY
KnM KnS
T C
D,R
V,Z
UnG
K,H
E
" $"
D
D : the selected device to be rotated
n : the number of the bits to be rotated
1 1
1 1 1
1 1
1
1 1
1
1 1
1
1 1
0
0 0 0 0
0 0 0 0
0
0
0
0
0 0
b15
b0
D0
D0
1
M9022
0
M9022
0
1 1 1 1 1 1 1 1
0
0 0 0 0
1111
0 0 0 0
0 0 0 0 0 0
1111
b15
b0
D1
D1
0
M9022
1
M9022
0
RORP D0 K4
X20
D
n
n
ROLP D1 K4
X21
D
n
D
n
D
Operand
Devices
Rotation Right
Rotation Left
The 16-bit instruction, n=1 ~ 16 The 32-bit instruction, n=1 ~ 32
When D is designated as KnY, Kn M and Kn S, the 16-bit instruction can only designate K4Y, K4M and K4S, while the
32-bit instruction can only designate K8Y, K8M and K8S
D : the selected device to be rotated
n : the number of the bits to be rotated
Rotation right
After execution of a rotation
Rotation left
After execution of a rotation
The bit format of the designated device executes to rotate to the right by the number of bits.
When X20 = “OFF” → “ON”, the 16-bit data of (D0) will be rotated by 4 bits to the right, and the status of the
highest bit that rotated out will be copied to the Carry Flag M9022.
The bit format of the designated device executes to rotate to the left by the number of bits.
When X21 = “OFF” → “ON”, the 16-bit data of (D1) will be rotated by 4 bits to the left , and the status of the
lowest bit that rotated out will be copied to the Carry Flag M9022.