HMS81032E/HMS81032TL
26
Nov. 2001 Ver 2.00
0735F0
ADC
!0F035H
;A
←
ROM[0F035H]
The operation within data memory (RAM)
ASL, BIT, DEC, INC, LSR, ROL, ROR
Example; Addressing accesses the address 0135
H
regard-
less of G-flag and RPR.
983501
INC
!0135H
;A
←
ROM[135H]
(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, RPR=01
H
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
-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
07
0F100
H
~
~
~
~
data
0F035
H
➊
F0
0F102
H
35
0F101
H
➋
A+data+C
→
A
address: 0F035
98
0F100
H
~
~
~
~
data
135
H
➊
01
0F102
H
35
0F101
H
➋
data+1
→
data
➌
address: 0135
data
D4
115
H
0E550
H
data
→
A
➋
➊
~
~
~
~
data
DB
35
H
data
→
A
➋
➊
~
~
~
~
36H
→
X
Summary of Contents for HMS81004E
Page 4: ...HMS81032E HMS81032TL NOV 2001 Ver 2 00...
Page 84: ...HMS81032E HMS81032TL 80 Nov 2001 Ver 2 00...
Page 85: ...APPENDIX...