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