GMS82512/16/24
HYUNDAI MicroElectronics
C645
LDA
45H+X
Example; G=0
3F35 JMP
[35H]
3AH
data
35H
36H
0A
E3
➌
~
~
~
data → A
➋
➋
~
~
~
~
~
0E550H
0E551H
C6
45
➊
➊
0E30AH
0FA00H
NEXT
jump to
address 0E30AH
45H+0F5H=13AH
~
~
~
~
3F
35
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.
X indexed indirect
[dp+X]
→
Processes memory data as Data, assigned by 16-bit pair
memory which is determined by pair data
[dp+X+1][dp+X] Operand plusꢁX-register data in Direct
page.
This is same with above (2). Use Y register instead of X.
Y indexed absolute
!abs+Y
→
ADC, AND, CMP, EOR, LDA, OR, SBC, STA
Example; G=0, X=10H
Sets the value of 16-bit absolute address plus Y-register
data as Memory.This addressing mode can specify memo-
ry in whole area.
1625
ADC
[25H+X]
Example; Y=55H
D500FA LDA
!0FA00H+Y
35H
05
36H
E0
0E005H
➋
~
~
~
~
0F100H
0F101H
0F102H
D5
00
➊
25 + X(10) = 35H
➊
0E005H
data
FA
0FA00H+55H=0FA55H
~
~
~
~
~
~
~
~
➋
0FA00H
16
25
data
0FA55H
data → A
➌ A + data + C → A
➌
Y indexed indirect
[dp]+Y
→
(6) Indirect Addressing
Direct page indirect [dp]
Processes memory data as Data, assigned by the data
[dp+1][dp] of 16-bit pair memory paired by Operand in Di-
rect pageꢁplus Y-register data.
→
Assigns data address to use for accomplishing command
which sets memory data (or pair memory) by Operand.
Also index can be used with Index register X,Y.
ADC, AND, CMP, EOR, LDA, OR, SBC, STA
Example; G=0, Y=10H
JMP, CALL
26
FEB. 2000 Ver 1.00