0% found this document useful (0 votes)
417 views7 pages

Addressing Mode of 8085

The 8085 microprocessor has five addressing modes: 1) Register addressing uses registers as operands and is efficient. 2) Direct addressing specifies memory addresses directly. 3) Register indirect addressing uses register pairs to specify memory addresses. 4) Immediate addressing provides operands within instructions. 5) Implicit addressing has fixed source and destination registers, requiring no operands. These addressing modes allow instructions to access operands in registers or memory in different ways.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
417 views7 pages

Addressing Mode of 8085

The 8085 microprocessor has five addressing modes: 1) Register addressing uses registers as operands and is efficient. 2) Direct addressing specifies memory addresses directly. 3) Register indirect addressing uses register pairs to specify memory addresses. 4) Immediate addressing provides operands within instructions. 5) Implicit addressing has fixed source and destination registers, requiring no operands. These addressing modes allow instructions to access operands in registers or memory in different ways.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Addressing Modes of 8085 :

To perform any operation, we have to give the corresponding


instructions to the microprocessor.
In each instruction, programmer has to specify 3 things: A = 05 H
1. Operation to be performed. A=A+B
2. Address of source of data.
3. Address of destination of result.
Addressing Modes :
The method by which the address of source of data or the
address of destination of result is given in the instruction is
called Addressing Modes.
The term ‘addressing mode’ refers to the way in which the
operand of the instruction is specified.
Types of Addressing Modes :
Intel 8085 microprocessor has five addressing modes:

1. Register Addressing Mode


2. Direct Addressing Mode
3. Register Indirect Addressing Mode
4. Immediate Addressing Mode
5. Implicit Addressing Mode (Implied)

channel link :
https://www.youtube.com/c/ComputerScienceAcademy7
1. Register Addressing Mode
A
• In this mode, the operand is in general purpose register.
B C
• A, B, C, D, E, H and L are general purpose registers.
D E
• In instruction, both source and destination are registers.
• Instructions using register addressing are very efficient. H L

• These instructions only use 1 byte of programming memory space.


• They are also executed quickly because they do not have to fetch
operands from memory.

Eg. MOV A, B ( OP Code 78 H = 0111 1000) A=B


• MOV (copy / move) is the operation to be performed.
• Reg. B is the source of data.
• Reg. A (Accumulator) is the Destination of result.
Let A = 05 H , B = 17 H After MOV A, B A = 17 H
B = 17 H
2. Direct Addressing Mode
• In this mode, the memory address of the operand is given C000 H

in the instruction itself. C001 H

• Either memory address of source or destination is given in C002 H

the instruction directly.


• Instructions using direct addressing are 3 byte instruction.
Eg. LDA C000 H ( OP Code 3A H)
• LDA is the operation to be performed.
(Load accumulator from)
A = [ C000 H ]
• Memory location C000 H is the source of data.
• Reg. A (Accumulator) is the Destination of result.
Let A = 05 H
C000 H C8 H
C000 H C8 H
After LDA C000 H A = C8 H C001 H 71 H
C001 H 71 H
3. Register Indirect Addressing Mode
• In this mode, the memory address of the operand is C000 H

specified by (given in) register pair. C001 H


• Either memory address of source or destination is given in C002 H M
register pair. HL, BC, DE are register pair.
• Instructions using register indirect addressing are 1 byte
instruction. C0 02

Eg. MOV A, M ( OP Code 7E H)


H L

• MOV is the operation to be performed.


• Memory location (M) whose addressed is specified in A = [ HL ]
reg. pair HL is source of data.
• Reg. A (Accumulator) is the Destination of result.

Let A = 05 H C000 H C8 H
71 H
After MOV A, M A = 71 H
C001 H M
C0 01
H L
4. Immediate Addressing Mode
• In this mode, the operand is specified (given) within the instruction
itself.
• Either 8 bit data or 16 bit data given in the instruction.
• Instructions using immediate addressing are 2 byte or 3 byte
instruction.
Eg. MOV
MVI A, 23 H ( OP Code 3E H)
• MVI is the operation to be performed.
• Immediate data 23 H is itself source of data. A = 23 H
• Reg. A (Accumulator) is the Destination of result.

Let A = 05 H Eg. LXI H, C000 H


After MVI A, 23 H HL = C000 H
A = 23 H
5. Implicit / Implied Addressing Mode
• In this mode, address of source of data as well as address of
destination of result is fixed and there is no need to give any
operand along with the instruction.
• Instructions using implicit addressing are 1 byte instructions.
Eg. CMA ( OP Code 2F H)
• CMA is the operation to be performed.
(Complement accumulator)
• Reg. A (Accumulator) is the source of data.
• Reg. A (Accumulator) is the Destination of result.

Let A = 05 H 05 H
1’s
FA H
After CMA Bin Hex A = FA H
1’s
0000 0101 1111 1010

You might also like