English
Language : 

GMS81C1102 Datasheet, PDF (37/89 Pages) Hynix Semiconductor – 8-BIT SINGLE-CHIP MICROCONTROLLERS
GMS81C1102 / GMS81C1202
12.4 Addressing Mode
The GMS87C1201 and GMS81C1202 use six addressing
modes.
• Register addressing
• Immediate addressing
• Direct page addressing
• Absolute addressing
• Indexed addressing
• Register-indirect addressing
Below example is shown for GMS81C1202.
(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 #35H
MEMORY
04
A+35H+C → A
35
(3) Direct Page Addressing → dp
In this mode, a address is specified within direct page.
Example;
C535 LDA 35H
;A ←RAM[35H]
0035H
data
~~
0F850H
C5
0F851H
35
—
~~ – data → A
(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 !0F035H
;A ←ROM[0F035H]
E45535 LDM 35H,#55H
0035H
data
~~
–
0F900H
E4
0F901H
55
0F902H
35
data ← 55H
~~
—
0F035H
~~
0F900H
0F901H
0F902H
data
07
35
F0
—
~~
–
A+data+C → A
address: 0F035
34
Jan. 2002 ver 2.0