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.