332
ROR, RORP, RCR, RCRP
(2) The following program rotates the contents of D0, including the carry flag, 3 bits to the right when XC is turned ON.
[Ladder Mode]
[List Mode]
[Operation]
Step
Instruction
Device
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
*
0
0
0
0
0
0
0
0
0
0
0
0
1
b15
b8
b0
b7
b0
b7
b15
b8
1
b1
4
b13 b12 b11b10 b9
b6 b5 b
4
b3 b2 b1
b1
4
b13 b12 b11b10 b9
b6 b5 b
4
b3 b2 b1
Carr
y
f
l
ag
(
SM700
)
Carr
y
f
l
ag
(
SM700
)
Contents
of
b1
and
b0
before
execut
i
on
Contents
of
b15
to
b
4
before
execut
i
on
Content
of
b3
before
execut
i
on
Content
of
b2
before
execut
i
on
D0
D0
Content
of
carr
y
f
l
ag
SM700
*
O
N/
O
FF
status
of
the
carr
y
f
l
ag
depends
on
i
ts
status
before
the
execut
i
on
of
ROR
.
*