Prerequisite – Addressing modes, Addressing modes in 8085 microprocessor
The way of specifying data to be operated by an instruction is known as addressing modes. This specifies that the given data is an immediate data or an address. It also specifies whether the given operand is register or register pair.
Types of addressing modes:
- Register mode – In this type of addressing mode both the operands are registers.
MOV AX, BX XOR AX, DX ADD AL, BL
- Immediate mode – In this type of addressing mode the source operand is a 8 bit or 16 bit data. Destination operand can never be immediate data.
MOV AX, 2000 MOV CL, 0A ADD AL, 45 AND AX, 0000
Note that to initialize the value of segment register an register is required.
MOV AX, 2000 MOV CS, AX
- Displacement or direct mode – In this type of addressing mode the effective address is directly given in the instruction as displacement.
MOV AX, [DISP] MOV AX, 
- Register indirect mode – In this addressing mode the effective address is in SI, DI or BX.
MOV AX, [DI] ADD AL, [BX] MOV AX, [SI]
- Based indexed mode – In this the effective address is sum of base register and index register.
Base register: BX, BP Index register: SI, DI
The physical memory address is calculated according to the base register.
MOV AL, [BP+SI] MOV AX, [BX+DI]
- Indexed mode – In this type of addressing mode the effective address is sum of index register and displacement.
MOV AX, [SI+2000] MOV AL, [DI+3000]
- Based mode – In this the effective address is the sum of base register and displacement.
MOV AL, [BP+ 0100]
- Based indexed displacement mode – In this type of addressing mode the effective address is the sum of index register, base register and displacement.
MOV AL, [SI+BP+2000]
- String mode – This addressing mode is related to string instructions. In this the value of SI and DI are auto incremented and decremented depending upon the value of directional flag.
MOVS B MOVS W
- Input/Output mode – This addressing mode is related with input output operations.
IN A, 45 OUT A, 50
- Relative mode –
In this the effective address is calculated with reference to instruction pointer.
JNZ 8 bit address IP=IP+8 bit address
- Addressing modes in 8085 microprocessor
- Addressing Modes
- Difference between Direct and Indirect Addressing Modes
- 8255 microprocessor operating modes
- Interrupts in 8086 microprocessor
- Pin diagram of 8086 microprocessor
- Flag register of 8086 microprocessor
- Differences between 8085 and 8086 microprocessor
- Arithmetic instructions in 8086 microprocessor
- Logical instructions in 8086 microprocessor
- Memory Segmentation in 8086 Microprocessor
- Difference between Memory based and Register based Addressing Modes
- General purpose registers in 8086 microprocessor
- Process control instructions in 8086 microprocessor
- Reset Accumulator (8085 & 8086 microprocessor)
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.