Microprocessor - unit 2-Addressing Modes of 8085

1,698 views 17 slides Apr 18, 2024
Slide 1
Slide 1 of 17
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17

About This Presentation

Microprocessor and Microcontroller-----


Slide Content

ADDRESSING MODES OF
8085

www.eazynotes.co
m
Addressing Modes of 8085
Toperformanyoperation,wehavetogivethe
correspondinginstructionstothemicroprocessor.
Ineachinstruction,programmerhastospecify3
things:
Operationtobeperformed.
Addressofsourceofdata.
Addressofdestinationofresult.

www.eazynotes.co
m
Addressing Modes of 8085
Themethodbywhichtheaddressof
sourceofdataortheaddressof
destinationofresultisgiveninthe
instructioniscalledAddressingModes.
Thetermaddressingmodereferstothe
wayinwhichtheoperandoftheinstruction
isspecified.

www.eazynotes.co
m
Whyuseaddressingmodes
in8085microprocessor?
Flexibility:Addressingmodesprovideaflexible
waytoaccessdataandinstructionsinmemory.
dependingonthetypeofdatabeingaccessed,the
sizeofthedata,andotherfactors.
Memoryoptimization:Addressingmodescanhelp
tooptimizetheuseofmemoryresourcesby
allowingdataandinstructionstobeaccessedinthe
mostefficientwaypossible.

www.eazynotes.co
m
Performanceoptimization:Addressingmodes
canalsohelptooptimizetheperformanceofthe
microprocessorbyreducingthenumberofmemory
accessesneededtofetchdataorinstructions.
Reducedcodesize:Addressingmodescanhelp
toreducethesizeofcodeneededtoperforma
particulartask.Byusingaddressingmodes
programmerscanwritemorecompactandefficient
code.

www.eazynotes.co
m
Types of Addressing Modes
1.DirectAddressingMode
2.RegisterAddressingMode
3.RegisterIndirectAddressingMode
4.ImmediateAddressingMode
5.ImplicitAddressingMode

www.eazynotes.co
m
Direct Addressing Mode
Inthismode,theaddressofthe
operandisgivenintheinstructionitself.
LDAistheoperation.
2500Histheaddressofsource.
Accumulatoristhedestination.
LDA2500 HLoad the contents of memory
location 2500 Hin accumulator.

www.eazynotes.co
m
Directaddressing:Directaddressingisused
whentheaddressoftheoperandisdirectly
specifiedintheinstruction.Thisaddressing
modeisusedforsimpleoperationswherethe
operandisstoredinaspecificmemory
location,andtheaddressdoesnotneedtobe
calculatedormanipulatedinanyway.

www.eazynotes.co
m
Register Addressing Mode
In this mode, the operand is in general
purpose register.
MOV is the operation.
B is the source of data.
A is the destination.
MOVA, BMove the contents of register B to A.

www.eazynotes.co
m
Registeraddressing:Registeraddressing
isusedwhentheoperandisstoredina
register,ratherthaninmemory.This
addressingmodeisusefulforperforming
fastarithmeticorlogicoperationsonsmall
amountsofdata.

www.eazynotes.co
m
Register Indirect Addressing
Mode
Inthismode,theaddressofoperandis
specifiedbyaregisterpair.
MOVistheoperation.
MisthememorylocationspecifiedbyH-L
registerpair.
Aisthedestination.
MOV A, MMove datafrom memory location
specified by H-L pair to accumulator.

www.eazynotes.co
m
Immediate Addressing Mode
In this mode, the operand is specified
within the instruction itself.
MVI is the operation.
05 H is the immediate data (source).
A is the destination.
MVI A, 05 HMove 05H in accumulator.

www.eazynotes.co
m
Immediate addressing:Immediate
addressingisusedwhentheoperandis
specifieddirectlyintheinstruction,rather
thanbeingstoredinmemory.This
addressingmodeisusefulforperforming
simplearithmeticorlogicoperationson
constantsorliterals.

www.eazynotes.co
m
Implicit Addressing Mode
Ifaddressofsourceofdataaswellasaddressof
destinationofresultisfixed,thenthereisnoneedto
giveanyoperandalongwiththeinstruction.
CMAistheoperation.
Aisthesource.
Aisthedestination.
CMA Complement accumulator.

www.eazynotes.co
m
Challenges associated with
addressingmodesinthe8085
microprocessor
Limitedaddressingrange
Complexinstructionset
Limitedaddressingmodes
Stackmanagement
Performanceconsiderations
Memorymanagement

www.eazynotes.co
m
Advantages of Addressing Modes
in 8085 Microprocessor
Versatility
Efficientmemoryusage
Easytouse
Improvedperformance

www.eazynotes.co
m
Disadvantages of Addressing
Modes in 8085 Microprocessor
Complexity
Debuggingdifficulties
Limitations
Tags