80
ROR
ROR
R
OTATE
O
NE BIT
R
IGHT
This instruction shifts either A or M one bit right through C. C
is stored in bit 7 and bit 0 is stored in C.
N is 1 when C is 1 before the operation; otherwise N is 0.
No change
No change
No change
No change
No change
Z is 1 when the operation result is 0; otherwise Z is 0.
C is 1 when bit 0 is 1 before the operation; otherwise C is
0.
Op e r a t io n :
F u n c t io n :
St a t u s fla g :
C
b7 b0
Cycle number
2
5
6
6
7
Byte number
1
2
2
3
3
Machine codes
6A
16
66
16
, zz
16
76
16
, zz
16
6E
16
, ll
16
, hh
16
7E
16
, ll
16
, hh
16
Statement
∆
ROR
∆
A
∆
ROR
∆
$zz
∆
ROR
∆
$zz,X
∆
ROR
∆
$hhll
∆
ROR
∆
$hhll,X
Addressing mode
Accumulator
Zero page
Zero page X
Absolute
Absolute X
N :
V:
T:
B:
I:
D:
Z:
C: