|
GMS81C2020 Datasheet, PDF (40/92 Pages) Hynix Semiconductor – CMOS Single-Chip 8-Bit Microcontroller with A/D Converter & VFD Driver | |||
|
◁ |
GMS81C2020/GMS81C2120
The operation within data memory (RAM)
ASL, BIT, DEC, INC, LSR, ROL, ROR
Example; Addressing accesses the address 0135H .
983500 INC !0035H
;A âRAM[035H]
0035H
data
~~
0F100H
98
0F101H
35
0F102H
00
Ã
~~ Ã
data+1 â data
þ
address: 0035
(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
D4
LDA {X}
;ACCâRAM[X].
15H
data
~~
0E550H
D4
Ã
~~
þ
data â A
Hyundai Micro Electro nics
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; X=35H
DB
LDA {X}+
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; X=015H
C645 LDA 45H+X
5AH
data
~~
0E550H
C6
0E551H
45
~~
þ
Ã
à data â A
45H+15H=5AH
40
preliminary
Nov. 1999 Ver 0.0
|
▷ |