0 ratings0% found this document useful (0 votes) 1K views5 pagesModule 2 - BEC405A - Addressing Modes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
Addsesreng _mdles 2
y the cpu can access data m variow wart the date
could be im a aagiter , or ih memory ot be providect
a an immediate value.
The anions veanyt of axconssing dala ax catted
addaessing modes.
These ane 5 addaeuing modes 1p 8052
§ Domedialt addaessing mode.
S Regia addaassing erode.
S Diwek addaerri mode.
4 Register indineck addaeeeing mode.
5) Indeed addacraing mode.
as Tronedials addseting mode t~ -
% tm de addlacering mode, the sowxer eperand ha
conttant. the tmmediate data must be preceeded by
the pound atgn “ae”
«Th odldaesrang mode can be wed to Load ae auito
—~ blo tromediaty 4 dtaeck
The &? sign distinguishes
adcuuting
Est- ty MOV RO, 40h.
> Mov 58h, 4
3) Mov R+y0Lh-
Ay pus OE0h.
3) pop dah eke.
{ Ram docatien oto 4+ ax atlocatid to bank © scgittin
Qo - Ry. Thate aagisteus ean be accaed 1m two roan.
SS Mov A, R4 fs fame at mov A,4
a) mov A, R41 as same ar mov 4,4
8) Move, PO fe game as mov #10.
4) TOV Pa, RZ WH dame as mov 2,3 bet Dwatid met
5.Ay Regul —Andiseck adehesting mode r=
* an aegjstir indirect” addlaeszing mode a seqishix
wed to hold the addaess oF, Hu data.
segiiin — iteely as mot the adders, Jot
the member 10 the seqpsfia .
inufauction gor indisect addaosting tue Mev
opcodes ateng cot aegis fis Ro Ot Ry. Recp stor Ro OL
Ri wilt hold the RAM addresses sanging pom coh to
ach,
the mnemonic — syenbol used por ‘iindixedl addsuting
St dhe ak” sign be, “@”
Ext- Ds Mov A,@Ro,
Mov @R1;,B
Mov @Ri54
Mov 20h ,@RL
Mov @R0, 03h.
Livikabiors of Sagjaten drdiauk addacssine mode *
Ro ® Ri aa she ently sequins that can be «wed
for. pointes in scoyiates andiseck — addressing modke.
Qu Ry are g-bit ede , their ute Is dinriatid
Since
ingoamalion 9 the dntenal RAM,
to accening any
By using DPTR sagiler we can access external
memeuy-Tderud addaexing mode %-
mode 3: wtdely uted in
Indeud adelnesring
Looks up sable. enitites
accessing data cements 6}
Locatid in the paogrann Rom space.
the anituckion's. ted por dhis purpose it
i) MOvG A 9 @A + DPTR
wy Move A,@A+PC
Add the codlente aj the
Move A,@A+DPTR :
aceumutater eith the eoniente a the DPTR aepiller
to feum a .paogseenn cede rmemerty Location
addaees,
Moye the contentr “4 this external mermery adchaats
to the aceumutater.
Wy Move As@A + PC
Add the cenlenk ey the accumubatior
with the — contenkr ey the Pe aegirter Lo fotrn a
PAngram cade memory Becatien addaces. Kove the
content eth external memory address to the
acermutaters
1
* only pacgian menmery con be accorsed 1
addscuing. Eitfica the DPTR er Po can be ered at an
drdex aeqister.
1 the 4nde