Beruflich Dokumente
Kultur Dokumente
Modes
Addressing Modes- The term addressing modesrefers to the way in which the
operand ofan instruction is specified. The addressing mode specifies a rule for
interpreting or modifying the addressfield of the instruction before the operand is
actually executed.
Addressing modesindicate how instructions access data operands.
Addressing modestell the CPU howto obtain the data neededto execute an
instruction
Q The data may be
Q Explicitly supplied with the instruction
Q Stored in a CPUregister
Q Stored at a memory location
Q) Stored in an I/O deviceregister
Q Implicit Addressing Mode * Operand is implicit to the instruction
University of Gaziantep
[131714 BeeEnd aa
Addressing Modes
Register Mode
Assembler Code Content of ROM
Mov_R10,R11 Mov_R10,R11
Length: Oneor two words
Operation: Movethe content of R10 to R11. R10 is notaffected.
Before: After:
R10 [OA02an
R11 0A023h
pc pc [PCoa+2]
University of Gaziantep
[131714 Department of EEE
eaMo
u de mn
iversity of Gaziantep
Si) Department of EEE
Addressing Modes
0108Ch
01094h +0006h_-01094h Oxxxxh
01092h 05555h 01082h —o1092h 01234h
01090h
01080h
+0002h_—-01084h
“oogah Oxcoxh
o1082h orosan [0124
University of Gaziantep
EEE204
Addressing Modes SiRmtmravare
X=EDE -PC
Y = TONI - PC
” to Embedded Systems
Introduction B University of Gaziantep
iF Aa pea Department of EEE
Addressing Mode
Example: MOV EDE,TONI ;Source address EDE = OF016h
;Dest. address TONI=01114h
Before: After:
Address Register Address Register
Space Space
Oxoxh PC
OFF16h O11FEh| OFF16h O11FEh
OFF14h oFF14h 102h
OFF12h 04090h PC OFF12h 04090h
OFF 14h
OFO18h Oxxxxh +0F102h_ OF018h_ Oxxxh
oFoteh 0A123h OFOT6R Foren 0A123h
oFO14h Ox0xh oFO14h Oxxxxh
OFF 16h
01116h Oxxxxh +011FEh 01116h
01114h 05555h onnidh 01114h
01112h Oxooxh 01112h Oxooh
University of Gaziantep
EEE204
Addressing Mode
X= EDE
Y=TONI
EEE204
Me
aa s A
Pe Lrt
LY University of Gaziantep
Prof Dr. Eraun Ercelebi Department of EEE
Addressing Modes
Comment: Valid only for source operand. The substitute for destination
operandis 0(Rd).
University of Gaziantep
[131714 Department of EEE
dressing Modes ftreeseeneatere
University of Gaziantep
EEE204
LRIMIEISE Autoincrement |_FINTYVWMR
. Indirect Autoincrement Mode Description
Comment: Valid only for source operand. The substitute for destination
operandis 0(Rd) plus secondinstruction INCD Rd.
cti ed
sy: temsr University of Gaziantep
EEE204 Introduct ion to Emb edd Sys
Prof. Dr. Erqun Ercelebi Department of EEE
Addressing Modes fitveesteantecnenatre
University of Gaziantep
Si) Department of EEE