|
HMS87C1304A Datasheet, PDF (25/70 Pages) Hynix Semiconductor – CMOS SINGLE-CHIP 8-BIT MICROCONTROLLER | |||
|
◁ |
HYUNDAI MicroElectronics
HMS87C1304A/HMS87C1302A
8.4 Addressing Mode
The HMS87C1304A and HMS87C1302A uses six ad-
dressing modes;
⢠Register addressing
⢠Immediate addressing
⢠Direct page addressing
⢠Absolute addressing
⢠Indexed addressing
⢠Register-indirect addressing
(3) Direct Page Addressing â dp
In this mode, a address is specified within direct page.
Example;
C535 LDA 35H
;A âRAM[35H]
0035H
data
~~
0F550H
C5
0F551H
35
Ã
~~ þ data â A
(1) Register Addressing
Register addressing accesses the A, X, Y, C and PSW.
y (2) Immediate Addressing â #imm
r In this mode, second byte (operand) is accessed as a data
a immediately.
in Example:
0435 ADC #35H
lim MEMORY
e 04
A+35H+C â A
Pr 35
(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
~~
þ
0F100H
E4
0F101H
55
0F102H
35
data â 55H
~~
Ã
0F035H
data
~~
0F100H
07
0F101H
35
0F102H
F0
~~
þ
Ã
A+data+C â A
address: 0F035
Jan. 2001
Preliminary
25
|
▷ |