![Hynix Semiconductor GMS81C5108 User Manual Download Page 30](http://html1.mh-extra.com/html/hynix-semiconductor/gms81c5108/gms81c5108_user-manual_2192989030.webp)
GMS81C5108
JUNE 2001 Ver 1.0
27
8.4 Addressing Mode
The GMS81C5108 uses six addressing modes;
• Register addressing
• Immediate addressing
• Direct page addressing
• Absolute addressing
• Indexed addressing
• Register-indirect addressing
(1) Register Addressing
Register addressing accesses the A, X, Y, C and PSW.
(2) Immediate Addressing
→
→
→
→
#imm
In this mode, second byte (operand) is accessed as a data
immediately.
Example:
0435
ADC
#35
H
When G-flag is 1, then RAM address is defined by 16-bit
address which is composed of 8-bit RAM paging register
(RPR) and 8-bit immediate data.
Example: G=1, RPR=01
H
E45535
LDM
35
H
,#55
H
(3) Direct Page Addressing
→
→
→
→
dp
In this mode, a address is specified within direct page.
Example; G=0
C535
LDA
35
H
;A
←
RAM[35
H
]
(4) Absolute Addressing
→
→
→
→
!abs
Absolute addressing sets corresponding memory data to
Data, i.e. second byte (Operand I) of command becomes
lower level address and third byte (Operand II) becomes
upper level address.
With 3 bytes command, it is possible to access to whole
memory area.
ADC, AND, CMP, CMPX, CMPY, EOR, LDA, LDX,
LDY, OR, SBC, STA, STX, STY
Example;
0735F0
ADC
!0F035
H
;A
←
ROM[0F035
H
]
35
A+35
H
+C
→
A
04
MEMORY
E4
0F100
H
data
←
55
H
~
~
~
~
data
0135
H
➊
➊
➊
➊
35
0F102
H
55
0F101
H
➋
data
35
35
H
0E551
H
data
→
A
➋
➊
~
~
~
~
C5
0E550
H
07
0F100
H
~
~
~
~
data
0F035
H
➊
F0
0F102
H
35
0F101
H
➋
A+data+C
→
A
address: 0F035
Downloaded from
Elcodis.com
electronic components distributor