390
7 APPLICATION INSTRUCTIONS
7.2 Rotation Instructions
• There is no operation error in the DROL(P) or DRCL(P) instruction.
• The following program rotates the contents of D0 and D1, not including the carry flag, 4 bits to the left when XC is ON.
• The following program rotates the contents of D0 and D1, including the carry flag, 4 bits to the left when XC is ON.
[Ladder Mode] [List Mode]
[Operation]
[Ladder Mode] [List Mode]
[Operation]
1D0, D1111
000
0
111
1
000
0
111
1
000
0
111
1
0000
0
D0, D1
00
0
111
1
000
0
111
1
000
0
111
1
000
0
1111
b31b16 b0b15b28b27 b24b23 b20 b19 b12 b11 b8 b7 b4 b3
Contents of b31 to b28
before execution
Contents of b27 to b0
before execution
0
1
Carry flag
(SM700)
Carry flag
(SM700)
Content of b28
before execution
b31b16 b0b15b28b27 b24b23 b20 b19 b12 b11 b8
b7
b4 b3
Step Instruction Device
1
D0, D1
111
000
0
111
1
000
0
111
1
000
0
111
1
0000
0
D0, D1
0
*
*
*
0
0
111
1
000
0
111
1
000
0
111
1
000
0
111
b31b16 b0b15b28b27 b24b23 b20 b19 b12 b11 b8 b7 b4 b3
Contents of b31 to b29
before execution
Contents of b27 to b0
before execution
1
Carry flag
(SM700)
Carry flag
(SM700)
Content of b28
before execution
Content of carry flag
SM700 before execution
b31b16 b0b15b28b27 b24b23 b20 b19 b12 b11 b8
b7
b4 b3
: ON/OFF status of the carry flag depends on its status before the execution of DRCL.