100% found this document useful (1 vote)
195 views13 pages

Addressing Modes of 8086

The document discusses the addressing modes of the 8086 microprocessor. It describes the different data addressing modes like immediate, register, direct, register indirect, base, index, based indexed, and string. It also explains the four address addressing modes - intrasegment direct, intrasegment indirect, intersegment direct, and intersegment indirect. Examples are provided to demonstrate how to determine the effective address for different addressing modes given register values, displacements, and segment registers.

Uploaded by

Aakash Garg
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)
195 views13 pages

Addressing Modes of 8086

The document discusses the addressing modes of the 8086 microprocessor. It describes the different data addressing modes like immediate, register, direct, register indirect, base, index, based indexed, and string. It also explains the four address addressing modes - intrasegment direct, intrasegment indirect, intersegment direct, and intersegment indirect. Examples are provided to demonstrate how to determine the effective address for different addressing modes given register values, displacements, and segment registers.

Uploaded by

Aakash Garg
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/ 13

MICROPROCESSORS AND

MICROCONTROLLERS
(ETEC 305)
Prepared for 5E123 and 5E789, MAIT

Teacher Name: Vatsala Khanna Arya

Department of Electronics and


1
Communication Engineering ,MAIT
Objectives of the Lecture
 Addressing Modes of 8086

Department of Electronics and


2
Communication Engineering ,MAIT
ADDRESSING MODES OF 8086

The addressing modes are the ways of specifying an


operand in an instruction.
Data addressing modes
Address addressing modes.
Data addressing modes
 Implied
 Register
 Immediate
 Direct
 Register indirect
Register indirect addressing mode works with SI, DI, BX and BP
registers
 Base Addressing mode
 Index addressing mode
 Based Indexed Addressing mode
 Based Indexed with displacement Addressing mode
 String Addressing Mode
Data addressing modes

• Immediate Addressing Mode


MOV AX, 2500H
• Register Addressing Mode
MOV AX, BX
• Direct Addressing mode or the Displacement
Only Addressing Mode
MOV AX, [4321H]
MOV AX, ES: [4321H]
MOV AX, CS: [4321H] 
• The Register Indirect Addressing Modes
MOV DX, [BX]
MOV AX, CS:[BX]
Data addressing modes

• Base Addressing mode

MOV AL, [BX + 15]


MOV AL, DISP [BX]
• Index addressing mode

MOV AL, DISP [SI]


MOV AL, CS: DISP [SI]
Data Addressing mode

• Based Indexed Addressing mode


MOV AL, [BX][SI]

• Based Indexed with displacement AM


MOV AL, [BX + SI + 15]

String Addressing Modes


Data addressing modes
Summary of data addressing modes
Address Addressing Modes
• These addressing modes indicate the branch addresses
in the Call and Jump instructions.
• In 8086 there are four types of address addressing
modes
• Intrasegment direct
• Intrasegment indirect
• Intersegment direct
• Intersegment indirect.
Address Addressing Modes

• Intrasegment direct
2000 JMP 20H

New IP = 2020h

• Intrasegment indirect

2000 JMP [BX]

New IP = BX
Address Addressing Modes

• Intersegment direct
2000 CALL 1000H: 5000H

New IP = 1000H
New CS = 5000H

• Intersegment indirect
2000 CALL [BX]

New IP = Contents [BX, BX+1]


New CS = Contents [BX +2, BX+3]
Example 1: Given that
BX = 2500H SI = 5000H, Displacement = 1000 H,IP = 2000H
Determine the effective address for the various addressing
Solution:
Immediate addressing mode effective address is the content of the IP, so
EA = 2000H.
Register addressing using SI, EA = 5000H
Direct addressing using the displacement , EA = 1000H
Register indirect addressing using BX, EA = 2500H
Base addressing using displacement , EA = 2500H + 1000H = 3500H
Index addressing using displacement, EA = 5000H + 1000H = 6000H
Base index addressing , EA = BX +SI = 2500H + 5000H = 7500H
Base index relative addressing, EA = BX +SI + Disp = 2500H + 5000H
+1000 = 8500H
Example 2:
Find the branch address for the following address addressing mode
Assume the following
IP= 2500H CS = 2000H BX = 3000H DS = 4000H
Immediate value (16-bit) = 1500H
Immediate value (32-bit) = 1500:3500H [43000H] = 40FD3598H [44500H] =
05F6H
Solution:
For Intrasegment direct addressing mode the branch = 1500H + 2500H =4000H
For Intrasegment indirect addressing mode the branch address = 3000H
For Intrasegment indirect addressing using base addressing using BX register mode,
branch address = [DS * 10H + BX + Disp] = [44500H] =05F6H
or Intersegment direct addressing mode the branch address will be IP = 1500H and CS
=3500H
or intersegment indirect addressing mode using BX register the branch address
= [DS * 10H + BX] = [43000H] = 40FD3598H So IP = 40FDH and CS =
3598H

You might also like