S
un
pl
us
IT
C
on
fid
en
tia
l
F
or
A
D
D
In
te
rn
at
io
na
l L
im
ite
d
U
se
O
nl
y
CPU6502 Instruction Manual v2.1
Sunplus reserves the rights to change this documentation without prior notice.
09/13/2005
14
Absolute indexed addressing mode
The absolute indexed addressing mode uses two-part (adr 16 and X) to specify a memory
address.
Operation :
OP-code
Adr 16, X
Example:
LDA
$0500,X
N V D I Z C
! - - - ! -
The new address is $500 + $02 = $502. This operation will copy the data of $502 to
Accumulator. Therefore, Accumulator contains A8.
A8
02
mm
mm
A
SP
X
PC
mmmm+3
$500 + $02
A8
Data Memory
0502