Addressing Modes in 8085 Microprocessor
Addressing Modes in 8085 Microprocessor
Addressing Modes in 8085 Microprocessor
Here are some reasons why addressing modes are used in the 8085
microprocessor:
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)
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)
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)
5. Implied/Implicit Addressing Mode –
In implied/implicit addressing mode the operand is hidden and the
data to be operated is available in the instruction itself.
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)
example:
MOV R0,#05H
AGAIN:
MVI A,#55H
ADD A,R0
JMP AGAIN
In this example, the instruction JMP AGAIN uses the Relative Addressing
Mode. The instruction jumps to the label AGAIN by adding the contents of
the program counter with the specified constant value. The constant value
is calculated based on the distance between the current instruction and
the label AGAIN.
In this case, the instruction JMP AGAIN is executing a loop that loads the
accumulator with the value 55H, adds the contents of the register R0 to
the accumulator, and then jumps back to the label AGAIN to repeat the
loop.
Here are some of the most common uses of addressing modes in the 8085
microprocessor: