69
LD X
LD X
L
OA
D
INDEX REGISTER
X
FROM MEMORY
(X)
←
(M)
This instruction loads the contents of M in X.
N is 1 when bit 7 is 1 after 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.
No change
Op e r a t io n :
F u n c t io n :
St a t u s fla g :
N :
V :
T :
B :
I :
D :
Z :
C :
Cycle number
2
3
4
4
5
Byte number
2
2
2
3
3
Machine codes
A2
16
, nn
16
A6
16
, zz
16
B6
16
, zz
16
AE
16
, ll
16
, hh
16
BE
16
, ll
16
, hh
16
Statement
∆
LDX
∆
#$nn
∆
LDX
∆
$zz
∆
LDX
∆
$zz,Y
∆
LDX
∆
$hhll
∆
LDX
∆
$hhll,Y
Addressing mode
Immediate
Zero page
Zero page Y
Absolute
Absolute Y