MC81F4x16
9.7 Addressing modes
The MC81Fxxxx series MCU uses six addressing modes;
-
-
-
-
-
-
Register Addressing
Immediate Addressing
Direct Page Addressing
Absolute Addressing
Indexed Addressing
Indirect Addressing
Register Addressing
Register addressing means to access to the data of the A, X, Y, C and PSW registers. For Example
„ASL ( Arithmetic Shift Left )‟ only accesses the A register.
Immediate Addressing
In this mode, second byte (operand) is accessed as a data immediately.
Example :
:
ADC #35h
;op code is 04h
:
:
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 :
:
;When G = 1, RPR = 1
;op code is 0E4h
LDM #35h,#55h
:
:
October 19, 2009 Ver.1.35
65