0% found this document useful (0 votes)
8 views

Diffrent Addressing Modes

Uploaded by

mayey52643
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Diffrent Addressing Modes

Uploaded by

mayey52643
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

BP Poddar Institute of Management and Technology

Computer Architecture
Subject code:- EC502

Different Addressing Modes

Presented by
Group 5
Our amazing team at your service

Kushal Sarkar Anish Das

Niloy Dey Gairik Banerjee


01 02 03
Detailed
Introduction Explanations Advantages
Table Of
Contents
04 05 06
Disadvantages Conclusion References
Introduction
Addressing modes are techniques used in
computer architecture to specify the operand
location for instructions.

They play a critical role in the efficiency and


flexibility of instruction execution.

Understanding different addressing modes is


essential for optimizing performance in assembly
language programming.
Detailed Explanations
• Immediate Addressing Mode
• Direct Addressing Mode
• Indirect Addressing Mode
• Register Addressing Mode
• Register Indirect Addressing Mode
• Implied/Implicit Addressing Mode
• Relative Addressing Mode
Immediate
Addressing Mode
In immediate addressing mode, the operand is

specified explicitly within the instruction.

This mode is often used for constants or small values that are
frequently needed.

Since the operand is directly given, it allows for faster


execution without additional memory access.

Examples:
MVI B 45 (move the data 45H immediately to register B)
LXI H 3050 (load the H-L pair with the operand 3050H
immediately)
JMP address (jump to the operand address immediately)
Direct Addressing
Mode
Direct addressing mode specifies the memory address

of the operand directly in the instruction.

This mode simplifies the retrieval of data but limits flexibility to


fixed memory locations.

It is efficient for accessing data but can lead to larger instruction


sizes.

Examples:
LDA 2050 (load the contents of memory location into accumulator
A)
LHLD address (load contents of 16-bit memory location into H-L
register pair)
IN 35 (read the data from port whose address is 35)
Indirect Addressing
Mode
Indirect addressing mode uses a memory address that

contains the actual operand's address.

This mode provides more flexibility, allowing dynamic access

to data.

It is particularly useful for accessing arrays or data structures where


the exact location may vary.

Example:
•MOV AX, [BX]
•The memory location specified by the contents of the BX register is
accessed to obtain the actual address of the operand.
•LOAD R1, @100
•Loads the content of memory address stored at memory address
100 to the register R1.
Register Addressing
Mode
In register addressing mode, the operand is located

in a CPU register rather than in memory.

This mode offers the fastest access times since registers are
the quickest storage available.

It is commonly used for frequently accessed variables and


intermediate calculations.

Examples:
MOV A, B (move the contents of register B to register A)
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)
Register Indirect
Addressing Mode
Register indirect addressing mode uses a register to

hold the address of the operand.

This mode combines the speed of register access with the


flexibility of memory addressing.

It is often utilized in loops and for accessing arrays dynamically.

Examples:
MOV A, M (move the contents of the memory location pointed
by the H-L pair to the accumulator)
LDAX B (move contents of B-C register to the accumulator)
STAX B (store accumulator contents in memory pointed by
register pair B-C)
Implied/Implicit
Addressing Mode
Implicit addressing mode does not explicitly specify

an operand; it is implied by the operation itself.

This mode is often used in instructions where the operand


is evident, like accumulator operations.

It simplifies the instruction set but can limit the flexibility


of operand usage.

Examples:
CMA (finds and stores the 1’s complement of the contents
of accumulator A in A)
RRC (rotate accumulator A right by one bit)
RLC (rotate accumulator A left by one bit)
Relative
Addressing Mode
In relative addressing mode, the effective address is

determined by a fixed offset from the current instruction pointer.

This mode is useful for control flow operations, such as jumps and
branches.

It allows for more flexible program structures, particularly in interrupt


handling.

example:

MOV R0,#05H
AGAIN:
MVI A,#55H
ADD A,R0
JMP AGAIN
Advantages
Various addressing modes provide flexibility and
efficiency in software and hardware design.

They enable programmers to write optimized code


that can run faster on specific architectures.

Understanding these modes is crucial for low-level


programming and performance tuning.
Disadvantages
Some addressing modes can increase instruction
complexity, impacting performance.

Modes that require multiple memory accesses can


slow down execution time.

The choice of addressing mode can lead to larger


instruction sizes, consuming more memory.
Conclusion Different addressing modes are fundamental to
the operation of computer architectures.

Each mode has its own advantages and is


suited for specific types of tasks.

A solid understanding of these modes enhances


programming skills and optimizes performance.
References
Computer Architecture: A Quantitative Approach by John
L. Hennessy and David A. Patterson.

Computer Organization and Design: The


Hardware/Software Interface by David A. Patterson and
John L. Hennessy.

Online resources from reputable educational institutions


and computer science publications.

https://www.geeksforgeeks.org/addressing-modes-
8085-microprocessor/
Thanks

You might also like