HYUNDAI MicroElectonics
1.6. Indirect Addressing Mode
The address field of the instruction gives the address where the effective address is stored in memory.
X-register Indirect Addressing Mode in direct page ( no offset )
The contents of X-register is the effective address to access in direct page(dp) .
OP CODE
Operand
A,Memory
Example)
14
X-register Indirect Addressing Mode in direct page, auto increment
The addressing method of this mode is the same as X Register indirect addressing mode except auto-
increment of x register.
OP CODE
Operand
A,Memory
Example)
14
8
ADC
AND
CMP
( G=1, X=35
)
h
ADC { X }
LDA
STA
( G=1, X=35
)
h
LDA { X }+
{ X }
Instructions
LDA
EOR
OR
A ← A+data+C
Instructions
A ← data
X = 36H
SBC
STA
XMA
MEMORY
000
h
0 Page
0 Page
0FF
h
100
h
1 Page
data
135
h
1FF
h
Op code ( 14 )
X ( 35 )
{ X }+
MEMORY
000
h
0 Page
0 Page
0FF
h
100
h
1 Page
data
135
h
1FF
h
Op code ( 14 )
X ( 35 )