You are on page 1of 11

Unit 5: Lecture 1

Addressing Modes of 8085

Prof. R.EZHILARASIE
Assistant Professor
School of Computing
SASTRA Deemed to be University

Digital Logic Circuits & Microprocessors -


Addressing Modes of 8085 1
Objectives

• To understand the need of addressing modes


• To comprehend the different types of addressing modes in 8085

Digital Logic Circuits & Microprocessors -


Addressing Modes of 8085 2
Outcomes

• Give examples for each addressing modes


• Identify the type of addressing modes in a given instruction
• Choose the appropriate addressing modes for solving the given problems

Digital Logic Circuits & Microprocessors -


Addressing Modes of 8085 3
Addressing Modes

• To perform any operation: instructions to the microprocessor


• In each instruction, programmer has to specify 2 things:
– Operation to be performed
– Operand
Ex: MOV A,B MOV – Operation A and B : Operand
• Various ways of specifying operands for an instruction: addressing modes
• Operands:
– Register
– Memory
– Immediate data
• Source data : Register / Memory / Immediate data
• Destination data: Register / Memory

Digital Logic Circuits & Microprocessors -


4
Addressing Modes of 8085
Types of Addressing Modes

• Five Types of Addressing Mode


1. Direct Addressing Mode
2. Register Addressing Mode
3. Indirect Addressing Mode
4. Immediate Addressing Mode
5. Implied Addressing Mode

Digital Logic Circuits & Microprocessors -


Addressing Modes of 8085 5
Immediate Addressing Mode
• In this mode, the operand is specified within the instruction itself

Ex: MVI A, 05 H
– Source: 05H
– Destination: Accumulator
– Operation: Move

• LXI H 3050 (load the H-L pair with the operand 3050H immediately)
• JMP address (jump to the operand address immediately)

Digital Logic Circuits & Microprocessors -


Addressing Modes of 8085 6
Register Addressing Mode
• In this mode, the operand is in general purpose register
• Faster Execution
• Ex MOV A, B
– Source: B
– Destination: Accumulator
– Operation: Move

• ADD B (add contents of registers A and B and store the result in register A)

• INR A (increment the contents of register A by one)

Digital Logic Circuits & Microprocessors -


Addressing Modes of 8085 7
Direct Addressing Mode
• In this mode, the address of the operand is given in the instruction itself
• Ex LDA 2500H

• Source: Memory address:2500H
• Destination: Accumulator
• Operation: Load

• LHLD 1234H

Digital Logic Circuits & Microprocessors -


Addressing Modes of 8085 8
Indirect Addressing Mode
• In this mode, the address of operand is specified by a register pair
Ex: MOV A, M
Move data from memory location specified by H-L pair to accumulator.
– Source: memory location specified by H-L register pair.
– Destination: Accumulator
– Operation: Move

Digital Logic Circuits & Microprocessors -


Addressing Modes of 8085 9
Implied Addressing Mode
• Source data as well as destination data of result is fixed
• No need to give any operand along with the instruction
• CMA
– CMA is the operation
– A is the source
– A is the destination

• RRC (rotate accumulator A right by one bit)

• RLC (rotate accumulator A left by one bit)

Digital Logic Circuits & Microprocessors -


Addressing Modes of 8085 10
Summary

• Define: Addressing mode


• Types of Addressing modes

Digital Logic Circuits & Microprocessors -


Addressing Modes of 8085 11

You might also like