GMS81C2020/GMS81C2120
Hyundai Micro Electronics
The operation within data memory (RAM)
ASL, BIT, DEC, INC, LSR, ROL, ROR
X indexed direct page, auto increment→ {X}+
In this mode, a address is specified within direct page by
the X register and the content of X is increased by 1.
Example; Addressing accesses the address 0135H .
983500 INC
!0035H
;A ←RAM[035H]
LDA, STA
Example; X=35H
DB
LDA
{X}+
0035
data
H
Ã
À
~
~
~
~
data+1 → data
35
H
data
À
0F100
0F101
0F102
98
35
00
H
þ
data → A
36H → X
~
~
~
H
H
address: 0035
~
þ
DB
(5) Indexed Addressing
X indexed direct page (no offset) → {X}
In this mode, a address is specified by the X register.
ADC, AND, CMP, EOR, LDA, OR, SBC, STA, XMA
Example; X=15H
X indexed direct page (8 bit offset) → dp+X
This address value is the second byte (Operand) of com-
mand plus the data of ꢀ-register. And it assigns the mem-
ory in Direct page.
ADC, AND, CMP, EOR, LDA, LDY, OR, SBC, STA
STY, XMA, ASL, DEC, INC, LSR, ROL, ROR
D4
LDA
{X}
;ACC←RAM[X].
Example; X=015H
C645
LDA
45H+X
15
H
data
À
data → A
~
~
~
~
þ
5A
H
data
D4
0E550
H
Ã
data → A
À
~
~
~
~
0E550
0E551
C6
45
þ
H
H
45H+15H=5AH
40
preliminary
Nov. 1999 Ver 0.0