|
GMS81C2112 Datasheet, PDF (38/107 Pages) Hynix Semiconductor – HYNIX SEMICONDUCTOR 8-BIT SINGLE-CHIP MICROCONTROLLERS | |||
|
◁ |
GMS81C2112/GMS81C2120
D500FA LDA !0FA00H+Y
1625 ADC [25H+X]
0F100H
D5
0F101H
00
0F102H
FA
~~
0FA55H
data
Â
0FA00H+55H=0FA55H
~~
Â
data â A
Â
(6) Indirect Addressing
Direct page indirect â [dp]
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.
JMP, CALL
Example; G=0
3F35 JMP [35H]
35H
05
36H
E0
~~
0E005H
data
~~
0FA00H
16
25
~~ Â 0E005H
 25 + X(10) = 35H
~~
 A + data + C â A
Y indexed indirect â [dp]+Y
Processes memory data as Data, assigned by the data
[dp+1][dp] of 16-bit pair memory paired by Operand in Di-
rect pageplus Y-register data.
ADC, AND, CMP, EOR, LDA, OR, SBC, STA
Example; G=0, Y=10H
1725 ADC [25H]+Y
35H
36H
~~
0E30AH
~~
0FA00H
0A
E3
NEXT
3F
35
~~ Â
Â
jump to
address 0E30AH
~~
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 plusX-register data in Direct
page.
ADC, AND, CMP, EOR, LDA, OR, SBC, STA
Example; G=0, X=10H
25H
05
26H
E0
~~
0E015H
data
~~
0FA00H
17
25
~~ Â
Â
0E005H + Y(10)
= 0E015H
~~
Â
A + data + C â A
Absolute indirect â [!abs]
The program jumps to address specified by 16-bit absolute
address.
JMP
Example; G=0
32
JUNE. 2001 Ver 1.00
|
▷ |