Académique Documents
Professionnel Documents
Culture Documents
MicroprocessorandInterfaces
8085addressingmodes
Addressing modes
Addressingmodes
Eachinstructionofacomputerspecifiesanoperation
oncertaindata
Ineachinstruction,programmerhastospecify3
things:
Operationtobeperformed
Addressofsourceofdata
Addressofdestinationofresult
Add
f d ti ti
f
lt
Therearevariouswaysofspecifyingaddressofthe
datatobeoperatedon
Thesedifferentwaysofspecifyingdataarecalledthe
addressingmodes
Immediateaddressingmode
Immediate
addressing mode
Directaddressingmode
Indirectaddressingmode
di
dd
i
d
Registeraddressingmode
Registerindirectaddressingmode
Implicit addressing mode
Implicitaddressingmode
Immediate Addressing
ImmediateAddressing
SSimplestaddressingmode
p est add ess g ode
Operandisgivenintheinstructionitself
Used to define a constant or set initial values of
Usedtodefineaconstantorsetinitialvaluesof
variables
Nomemoryreferenceotherthaninstruction
y
fetchisrequiredtoobtainoperand
Sizeofthenumberislimitedtothesizeofthe
addressfield,whichformostinstructionsetsis
smallcomparedtowordlength
Direct Addressing
DirectAddressing
Effectiveaddressoftheoperandisgiveninthe
ect e add ess o t e ope a d s g e
t e
addressfieldoftheinstruction
q
y
Requiresonememoryreferencetoreadthe
operandfromthegivenlocation
Providesonlyalimitedaddressspace
Lengthoftheaddressfieldisusuallylessthanthe
wordlength
Indirect Addressing
IndirectAddressing
Theaddressfieldoftheinstructionreferstothe
e add ess e d o t e st uct o e e s to t e
addressofawordinmemory,whichinturn
containsthefulllengthaddressoftheoperand
Advantage ForthewordlengthofN,anaddress
spaceof2Ncanbeaddressed
Disadvantage Instructionexecutionrequirestwo
memoryreferencetofetchtheoperand
Multilevelorcascadedindirectaddressingcan
M ltil l
d d i di t dd
i
alsobeused
Register Addressing
RegisterAddressing
Similar
Similartodirectaddressing
to direct addressing
Onlydifferenceisthattheaddressfieldofthe
instruction refers to a register rather than a
instructionreferstoaregisterratherthana
memorylocation
3or4bitsareusedasaddressfieldto
3 or 4 bits are used as address field to
reference8to16generalpurposeregisters
Advantage::Smalladdressfieldisneededin
Advantage :: Small address field is needed in
theinstruction
Implicit Addressing
ImplicitAddressing
Address
Addressofsourceofdataaswellasaddressof
of source of data as well as address of
destinationofresultisfixed
Thereisnoneedtogiveanyoperandalong
There is no need to give any operand along
withtheinstruction