Addressing Modes of 8086
Addressing Modes of 8086
Addressing Modes of
8086
Addressing modes
▶ We will see the types of addressing modes present in 8086.
▶ We will study each addressing mode with example.
Types of addressing mode in 8086
1. Immediate addressing mode
10 ABH
MOV A
AX,10ABH X
2: Direct addressing mode
▶ In this type of addressing mode a 16-bit memory address is directly specified in the
instruction as a part of it.
Memory
22 5000
33 5001
MOV AX, 5002
[5000H] AX
3: Register addressing mode
▶ In this type of addressing mode, the data is stored in the register and it can be a 8-bit or 16-
bit register. All the registers, except IP, may be used in this mode.
10 AB B
MOV AL,BLH BH B X
MOV L
FF 33 A
AX,BXH A A X
4: Register Indirect addressing mode
Memory
22 5000
A 33 5001
X
MOV AX, 5002
[BX] 50 00 B
X
Reflection Spot
MOV [7000H],CX
Q) Which addressing does instruction above belong, and
why?
Reflection Spot
MOV [7000H],CX
Q) Which addressing does instruction above belonging and
why?
Memory
Ans) Direct addressing mode 22 7000
33 7001
7002
CX 43 56
5: Indexed addressing mode
▶ In this addressing mode, offset of the operand is stored in one of the index
registers. DS is the default segment for index register SI and DI.
Memory
22 5000
A 33 5001
MOV AX, X 5002
[SI] 50 00 SI
6: Register relative addressing mode
44 5050
A
33 5051
X
MOV AX, 5052
12 3000
A
MOV AX, [BX] X
34 3001
[SI] 3002
10 00 + 20 00 = 3000H
Final
B SI Index
X Address
8: Base relative plus index addressing mode
12 3050
MOV AX,50H[BX] A 34 3051
X
[SI] 3052
50H + 10 00 20 00 = 3050H
Final
B SI Index
X Address
Summery