100% found this document useful (1 vote)
131 views

Addressing Modes of 8086

1. There are 8 types of addressing modes in the 8086 microprocessor: immediate, direct, register, register indirect, indexed, register relative, base plus index, and base relative plus index. 2. The addressing modes determine how operands are accessed during instruction execution. Immediate addressing uses data from the instruction itself. Direct addressing directly specifies the memory address. Register addressing stores data in a register. 3. Indexed addressing uses an offset stored in an index register. Register relative addressing adds a displacement to a register value. Base plus index and base relative plus index addressing combine base and index registers with optional displacements.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
131 views

Addressing Modes of 8086

1. There are 8 types of addressing modes in the 8086 microprocessor: immediate, direct, register, register indirect, indexed, register relative, base plus index, and base relative plus index. 2. The addressing modes determine how operands are accessed during instruction execution. Immediate addressing uses data from the instruction itself. Direct addressing directly specifies the memory address. Register addressing stores data in a register. 3. Indexed addressing uses an offset stored in an index register. Register relative addressing adds a displacement to a register value. Base plus index and base relative plus index addressing combine base and index registers with optional displacements.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 18

‫هندسة تقنيات الحاسوب‬

[email protected]

Addressing Modes of
8086

Ref. Mr. Binu Joy


Why study addressing modes?

Addressing modes help us to understand the types of


operands and the way they are accessed while executing
an instruction.
What are we going to study?

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

2. Direct addressing mode

3. Register addressing mode

4. Register Indirect addressing mode

5. Indexed addressing mode

6. Register relative addressing mode

7. Base plus index addressing mode

8. Base relative plus index addressing mode


1: Immediate addressing mode

▶ In this type of mode, immediate data is part of instruction and


appears in the form of successive byte or bytes

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

▶ The address of the memory location which contains data or operand is


determined in a indirect way, using the offset register.

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

▶ Inthis mode, the data is available at an effective address formed by adding an


8-bit or 16-bit displacement with the content of any one of the registers
BX, BP, SI and DI in the default (either DS or ES) segment.
Memory

44 5050
A
33 5051
X
MOV AX, 5052

50H[BX] 50 00 + 50H = 5050H


Final
Index
B Offset Address
7: Base plus index addressing mode

▶ In this mode the effective address is formed by adding content of a base


register (any one of BX or BP) to the content of an index register (SI or DI).
Default segment register DS.

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

▶ Inthe effective address is formed by adding an 8 or 16-bit displacement with


sum of contents of any one of the base registers (BX or BP) and any one of
the index registers, in a default segment.

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

What we have learnt


▶ Different types of addressing modes present in 8086.
▶ Location of operands with respect to different addressing
modes.
References

▶ Advanced Microprocessors and Peripheral


- By K Bhurchandi, A. K. Ray
This presentation is licensed to the public
Text is available under the Creative
Commons Attribution-ShareAlike License

You might also like