|
GMS82524 Datasheet, PDF (27/93 Pages) Hynix Semiconductor – 8-BIT SINGLE-CHIP MICROCONTROLLERS | |||
|
◁ |
GMS82512/16/24
HYUNDAI MicroElectronics
8.4 Addressing Mode
The GMS800 series MCU 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 #35H
MEMORY
04
A+35H+C â A
35
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
E45535 LDM
35H,#55H
0135H
data
~~
Â
0F100H
E4
0F101H
55
0F102H
35
data ¨ 55H
~~
Â
(3) Direct Page Addressing â dp
In this mode, a address is specified within direct page.
Example; G=0
C535 LDA 35H
;A âRAM[35H]
35H
data
~~
0E550H
C5
0E551H
35
Â
~~ Â data â A
24
FEB. 2000 Ver 1.00
|
▷ |