
79
ROL
ROL
R
OTATE
O
NE BIT
L
EFT
Op e r a t io n :
F u n c t io n :
St a t u s fla g :
This instruction shifts either A or M one bit left through C. C is
stored in bit 0 and bit 7 is stored in C.
N is 1 when bit 6 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 7 is 1 before the operation; otherwise C is
0.
b7 b0
C
Cycle number
2
5
6
6
7
Byte number
1
2
2
3
3
Machine codes
2A
16
26
16
, zz
16
36
16
, zz
16
2E
16
, ll
16
, hh
16
3E
16
, ll
16
, hh
16
Statement
∆
ROL
∆
A
∆
ROL
∆
$zz
∆
ROL
∆
$zz,X
∆
ROL
∆
$hhll
∆
ROL
∆
$hhll,X
Addressing mode
Accumulator
Zero page
Zero page X
Absolute
Absolute X
N :
V:
T:
B:
I:
D:
Z:
C: