7-43
DROR(P),DRCR(P)
1
2
3
4
6
6
7
8
7.2 Rotation instruction
7.2.3 Right rotation of 32-bit data (DROR(P),DRCR(P))
(2) The following program rotates the contents of D0 and D1, including the carry flag, 4 bits to
the right when XC is ON.
[Ladder Mode] [List Mode]
[Operation]
Step Instruction Device
0
D0, D1
0
*
*
0 0
111
1000011110000111100001111
1
D0, D1
1
1
000
0
111
1
000
0
111
1
000
0
111
1
000
0
b31 b16
b0
b15b28b27 b24b23 b20b19 b12b11
b8b7 b4b3
Before execution
1
Carry flag
(SM700)
Carry flag
(SM700)
Content of b3
before execution
Content of carry flag
SM700 before execution
Contents of b2 to b0
before execution
b31 b16
b0
b15b28b27 b24b23 b20b19 b12b11
b8b7 b4b3
* : ON/OFF status of the carry flag depends on its status before the execution of DRCR.