
MC80F0104/0204
Preliminary
30
Mar. 2005 Ver 0.2
983501
INC
!0135H
;A
←
ROM[135H]
8.4.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=15
H
, G=1
D4
LDA
{X}
;ACC
←
RAM[X].
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=35
H
DB
LDA
{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=0F5
H
C645
LDA
45H+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=55
H
98
0F100H
~
~
~
~
data
135H
➊
01
0F102H
35
0F101H
➋
data+1
→
data
➌
address: 0135
data
D4
115H
0E550H
data
→
A
➋
➊
~
~
~
~
data
DB
35H
data
→
A
➋
➊
~
~
~
~
36H
→
X
data
45
3AH
0E551H
data
→
A
➋
➊
~
~
~
~
C6
0E550H
45H+0F5H=13AH
➌
Содержание MC80C0104
Страница 108: ...MC80F0104 0204 Preliminary 104 Mar 2005 Ver 0 2 25 Emulator EVA Board Setting...
Страница 115: ...APPENDIX...
Страница 116: ......
Страница 124: ...viii Mar 2005 Ver 0 2 MC80F0104 0204 Preliminary...