33
ASL
ASL
A
RITHMETIC
S
HIFT
L
EFT
Op e r a t io n :
F u n c t io n :
St a t u s fla g :
C
←
b7 b0
←
0
N :
V :
T :
B :
I :
D :
Z :
C :
This instruction shifts the content of A or M by one bit to the
left, with bit 0 always being set to 0 and bit 7 of A or M always
being contained in C.
N is 1 when bit 7 of A or M is 1 after the operation;
otherwise it is 0.
No change
No change
No change
No change
No change
Z is 1 when the operation result is 0; otherwise it is 0.
C is 1 when bit 7 of A or M is 1, before this operation;
otherwise it is 0.
Cycle number
2
5
6
6
7
Byte number
1
2
2
3
3
Machine codes
0A
16
06
16
, zz
16
16
16
, zz
16
0E
16
, ll
16
, hh
16
1E
16
, ll
16
, hh
16
Addressing mode
Accumulator
Zero page
Zero page X
Absolute
Absolute X
Statement
∆
ASL
∆
A
∆
ASL
∆
$zz
∆
ASL
∆
$zz,X
∆
ASL
∆
$hhll
∆
ASL
∆
$hhll,X