Diffrent Addressing Modes
Diffrent Addressing Modes
Computer Architecture
Subject code:- EC502
Presented by
Group 5
Our amazing team at your service
This mode is often used for constants or small values that are
frequently needed.
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
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
to data.
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
This mode offers the fastest access times since registers are
the quickest storage available.
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
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
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
This mode is useful for control flow operations, such as jumps and
branches.
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.
https://www.geeksforgeeks.org/addressing-modes-
8085-microprocessor/
Thanks