|
GMS81C2112 Datasheet, PDF (37/107 Pages) Hynix Semiconductor – HYNIX SEMICONDUCTOR 8-BIT SINGLE-CHIP MICROCONTROLLERS | |||
|
◁ |
983501 INC !0135H
;A âROM[135H]
135H
data
~~
0F100H
98
0F101H
35
0F102H
01
Â
~~ Â
data+1 â data
Â
address: 0135
(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, G=1
D4
LDA {X}
;ACCâRAM[X].
GMS81C2112/GMS81C2120
35H
data
~~
DB
Â
~~
data à A
 36H à X
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
Example; G=0, X=0F5H
C645 LDA 45H+X
115H
data
~~
0E550H
D4
Â
~~
Â
data â A
3AH
data
~~
0E550H
C6
0E551H
45
Â
~~
 data â A
Â
45H+0F5H=13AH
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.
LDA, STA
Example; G=0, X=35H
DB
LDA {X}+
Y indexed direct page (8 bit offset) â dp+Y
This address value is the second byte (Operand) of com-
mand plus the data of Y-register, which assigns Memory in
Direct page.
This is same with above (2). Use Y register instead of X.
Y indexed absolute â !abs+Y
Sets the value of 16-bit absolute address plus Y-register
data as Memory.This addressing mode can specify memo-
ry in whole area.
Example; Y=55H
JUNE. 2001 Ver 1.00
31
|
▷ |