|
HMS81C2012A Datasheet, PDF (37/107 Pages) List of Unclassifed Manufacturers – CMOS Single-Chip 8-Bit Microcontroller with A/D Converter & VFD Driver | |||
|
◁ |
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].
HMS81C2012A/2020A
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 X-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
SEP. 2004 Ver 2.00
33
|
▷ |