
Chapter 5. Application instructions
5-32
5.5.3
RCL, RCLP, DRCL, DRCLP
ROL
(Rotate left include
carry flag)
FUN(40) RCL
FUN(42) DRCL
FUN(41) RCLP
FUN(43) DRCLP
Applicable
CPU
All CPUs
Available Device
Flag
Instructions
M
P
K
L
F
T
C
S
D
#D Integer
Steps
Error
(F110)
Zero
(F111)
Carry
(F112)
RCL(P)
DRCL(P)
O O O O*
O O
O O
3
O
O
* Available only when do not use computer link module or data link module
1) Functions
-
RCL(P) : Rotates 16 bits of the device specified at [ D ] and carry flag (F112) in left direction.
-
The MSB will be transferred to the carry flag (F112) and the carry flag will be transferred to the LSB.
-
DRCL(P) : Rotates 32-bits of the device specified as [ D+1, D] and carry flag in left direction.
-
The MSB of [ D+1 ] will be transferred to the carry flag (F112) and the carry flag will be transferred
to the LSB of [ D ].
Operand setting
RCL
RCLP
DRCL
DRCLP
D
D
The device to be rotated left
by RCL instruction.
D
D
D
C
F
E
9
8
B
A
5
4
7
6
1
0
3
2
Carry flag
16 bits
D
16 bits
D + 1
Carry flag