Addressing Modes of
       8086
  Prepared & Presented by-
        Rajvir Singh
• The different ways in which a
  processor can access data are called
 addressing modes
• 8086 accesses code bytes using
  contents of CS & IP register
• 8086 accesses stack using contents
  of SS & SP register
How 8086 accesses data?
• 8086 assembly language instructions
  can be used to illustrate the
  addressing modes
• Format of MOV instruction
     MOV destination, source
• Source of data can be
  – Immediate data
  – A specified register
  – A memory location specified in 1 of 24
    different ways
• Destination of data can be
  – A specified register
  – A memory location specified in 1 of 24
    different ways
Classification of
      Addressing Modes
1.   Register addressing mode
2.   Immediate addressing mode
3.   Memory addressing mode
4.   Port addressing mode
5.   Relative addressing mode
6.   Implied addressing mode
1. Register addressing mode

• Source/destination can be one of the
  8086 registers
• MOV AX, BX ; 16-bit data transfer
• MOV AL, BL ; 8-bit data transfer
2. Immediate addressing mode

• 8 or 16-bit data can be specified as
  part of the instruction
• E.g. MOV AL, 45H
        MOV BX, 5062H
3. Memory addressing mode
• One of the operands is in memory
• 8086 must use
  – a segment register
  – A 16-bit offset (effective address)
• By default, DS register is used for
  accessing data from memory
• 16-bit offset can be specified in
  many ways
Different ways of
      specifying offset
•   Direct memory addressing
•   Register Indirect addressing
•   Based addresing
•   Indexed addressing
•   Based Indexed addressing
•   String addressing
a. Direct Memory addressing

• Effective address is specified
  directly in the instruction
• E.g. MOV BX, [5062]
• 20-bit physical address of memory
  location is calculated using DS and
  offset value 5062
Accessing memory
Segment register

       +           =   20-bit physical address
                                   of operand
16-bit offset
b. Register indirect addressing

• The effective address of memory
  operand is present in one of the base
  or index registers [BX, BP, SI, DI]
• E.g. MOV CX, [BX]
• If DS = 2000H, BX = 0004H
• THEN contents of memory location
  20004H are copied to register CX
c. Based addressing
• Effective address is sum of
  – 16-bit offset given in instruction
  – Contents of   base register BX or BP
• Segment register is DS or     SS
• E.g. MOV AX, 4[BX]
• E.G. PUSH CX
d. Indexed addressing
• Effective address is sum of
  – 16-bit offset given in instruction
  – Contents of   index register SI or DI
• Segment register is    DS
• E.g. MOV AX, 4[SI]
e. Based Indexed addressing
• Effective address is sum of
  – 16-bit offset given in instruction
  – Contents of index register SI or DI
  – Contents of base register BX or BP
• Segment register is DS
• E.g. MOV AX, 4[BX][SI]
f. String addressing

• Used when string related instructions
  are executed
• Uses index registers
• SI register points to the first byte or
  word of the source string
• DI register points to the first byte or
  word of the destination
Classification of
      Addressing Modes
1.   Register addressing mode
2.   Immediate addressing mode
3.   Memory addressing mode
4.   Port addressing mode
5.   Relative addressing mode
6.   Implied addressing mode
4. Port addressing

• Two I/O port addressing modes can
  be used
  – Direct (e.g. IN AL, 02H)
  – Indirect (e.g. IN AL, DXH)
5. Relative addressing mode
• Specifies the operand as a 8-bit
  signed displacement relative to PC
• E.g. JNC 08H
• IF carry = 0, THEN PC is loaded with
  current PC contents + 8-bit signed
  value
6. Implied addressing mode
• No operands are specified
• E.g. CLC
• Means clear carry flag

More Related Content

PPTX
Addressing modes of 8086
PPT
1327 Addressing Modes Of 8086
PPTX
Addressing Modes Of 8086
PPTX
Addressing modes of 8086
PPTX
Adressing modes of 8086
PPTX
8086 addressing modes
PPTX
Addressing modes of 8086 - Binu Joy
PPTX
Addressing modes
Addressing modes of 8086
1327 Addressing Modes Of 8086
Addressing Modes Of 8086
Addressing modes of 8086
Adressing modes of 8086
8086 addressing modes
Addressing modes of 8086 - Binu Joy
Addressing modes

What's hot (20)

DOCX
8086 addressing modes
DOCX
Notes 8086 instruction format
DOCX
Addressing modes of 8086
PPTX
Based and indexed addressing
PPT
8086 add mod
PPTX
Instruction Set and Assembly Language Programming
PDF
Memory segmentation-of-8086
PPTX
Indexing structure for files
PPTX
Addressing modes
PPTX
Memory sementation sem
PPT
File organization and indexing
PPT
PPTX
Addressing mode of 80286 microprocessor
PPT
File organization 1
PPTX
Addressing mode
PDF
Implementação do Hash Coalha/Coalesced
PPT
Chapter4.3 4-mikroprocessor
PPT
Assembly
PDF
Addressing modes of 80386
PPT
Chapter13
8086 addressing modes
Notes 8086 instruction format
Addressing modes of 8086
Based and indexed addressing
8086 add mod
Instruction Set and Assembly Language Programming
Memory segmentation-of-8086
Indexing structure for files
Addressing modes
Memory sementation sem
File organization and indexing
Addressing mode of 80286 microprocessor
File organization 1
Addressing mode
Implementação do Hash Coalha/Coalesced
Chapter4.3 4-mikroprocessor
Assembly
Addressing modes of 80386
Chapter13
Ad

Viewers also liked (7)

PPTX
Addresing modes
PPTX
3. adressingmodes1
PPTX
Flag registers, addressing modes, instruction set
PPT
Addressing modes
PPTX
Addressing Modes
PPT
ADDRESING THE PROBLEMS OF PHYSICALLY DISABLED IN THE CLOTHING INDUSTRY by Aji...
PDF
LinkedIn SlideShare: Knowledge, Well-Presented
Addresing modes
3. adressingmodes1
Flag registers, addressing modes, instruction set
Addressing modes
Addressing Modes
ADDRESING THE PROBLEMS OF PHYSICALLY DISABLED IN THE CLOTHING INDUSTRY by Aji...
LinkedIn SlideShare: Knowledge, Well-Presented
Ad

Similar to 1327 addressingmodesof8086-100523023240-phpapp02 (20)

PPTX
UNIT-I MICROPROCESSOR PROGRAMMING AND STACK.pptx
PPTX
4-ADDRESSING_MODES_E logic circuits.pptx
PDF
8086 instruction set (with simulator)
PPTX
02 Addressing Modes.pptx
PPTX
Lecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptx
PPT
a wounderful lecture on microprocessor 8086
PPTX
31. 8086 addressing modes
PPTX
All-addressing-modes of the 80386 /microprocessor.pptx
PPTX
micro chapter 3jjgffffyeyhhuyerfftfgggffgjj
PPT
ADDRESSING MODES in 8086 MICROPROCESSOR.ppt
PPTX
Chapter 1 archietecture of 8086
PPTX
MIC3_The Intel 8086 .pptx
PDF
8086addressingmodes-200319141110.pdf
PPTX
addressing-modes-of-8086-mr-binu-joy-2 (2).pptx
PPTX
OPERAND ADDRESSING MODESOPERAND ADDRESSING MODES
PPTX
Addressing modes
PPTX
address5ng modes.pptx IS A GOOD MATERIAL
PPTX
addressing-modes-of-8086-mr-binu-joy-2.pptx
PDF
lect 03- MIT Addressing Modes.pdf
PPTX
Microprocessor Chapter3 hawassa Univetsi
UNIT-I MICROPROCESSOR PROGRAMMING AND STACK.pptx
4-ADDRESSING_MODES_E logic circuits.pptx
8086 instruction set (with simulator)
02 Addressing Modes.pptx
Lecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptx
a wounderful lecture on microprocessor 8086
31. 8086 addressing modes
All-addressing-modes of the 80386 /microprocessor.pptx
micro chapter 3jjgffffyeyhhuyerfftfgggffgjj
ADDRESSING MODES in 8086 MICROPROCESSOR.ppt
Chapter 1 archietecture of 8086
MIC3_The Intel 8086 .pptx
8086addressingmodes-200319141110.pdf
addressing-modes-of-8086-mr-binu-joy-2 (2).pptx
OPERAND ADDRESSING MODESOPERAND ADDRESSING MODES
Addressing modes
address5ng modes.pptx IS A GOOD MATERIAL
addressing-modes-of-8086-mr-binu-joy-2.pptx
lect 03- MIT Addressing Modes.pdf
Microprocessor Chapter3 hawassa Univetsi

Recently uploaded (20)

PPTX
Configure Apache Mutual Authentication
PPTX
Chapter 5: Probability Theory and Statistics
PDF
Credit Without Borders: AI and Financial Inclusion in Bangladesh
PDF
Flame analysis and combustion estimation using large language and vision assi...
PDF
Consumable AI The What, Why & How for Small Teams.pdf
PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
sustainability-14-14877-v2.pddhzftheheeeee
DOCX
search engine optimization ppt fir known well about this
PDF
CloudStack 4.21: First Look Webinar slides
PPTX
Microsoft Excel 365/2024 Beginner's training
PDF
OpenACC and Open Hackathons Monthly Highlights July 2025
PPTX
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
PPTX
Custom Battery Pack Design Considerations for Performance and Safety
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
Two-dimensional Klein-Gordon and Sine-Gordon numerical solutions based on dee...
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
Configure Apache Mutual Authentication
Chapter 5: Probability Theory and Statistics
Credit Without Borders: AI and Financial Inclusion in Bangladesh
Flame analysis and combustion estimation using large language and vision assi...
Consumable AI The What, Why & How for Small Teams.pdf
Convolutional neural network based encoder-decoder for efficient real-time ob...
Zenith AI: Advanced Artificial Intelligence
sustainability-14-14877-v2.pddhzftheheeeee
search engine optimization ppt fir known well about this
CloudStack 4.21: First Look Webinar slides
Microsoft Excel 365/2024 Beginner's training
OpenACC and Open Hackathons Monthly Highlights July 2025
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
Custom Battery Pack Design Considerations for Performance and Safety
Hindi spoken digit analysis for native and non-native speakers
Two-dimensional Klein-Gordon and Sine-Gordon numerical solutions based on dee...
Enhancing emotion recognition model for a student engagement use case through...
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
Module 1.ppt Iot fundamentals and Architecture
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor

1327 addressingmodesof8086-100523023240-phpapp02

  • 1. Addressing Modes of 8086 Prepared & Presented by- Rajvir Singh
  • 2. • The different ways in which a processor can access data are called addressing modes
  • 3. • 8086 accesses code bytes using contents of CS & IP register • 8086 accesses stack using contents of SS & SP register
  • 4. How 8086 accesses data? • 8086 assembly language instructions can be used to illustrate the addressing modes • Format of MOV instruction MOV destination, source
  • 5. • Source of data can be – Immediate data – A specified register – A memory location specified in 1 of 24 different ways • Destination of data can be – A specified register – A memory location specified in 1 of 24 different ways
  • 6. Classification of Addressing Modes 1. Register addressing mode 2. Immediate addressing mode 3. Memory addressing mode 4. Port addressing mode 5. Relative addressing mode 6. Implied addressing mode
  • 7. 1. Register addressing mode • Source/destination can be one of the 8086 registers • MOV AX, BX ; 16-bit data transfer • MOV AL, BL ; 8-bit data transfer
  • 8. 2. Immediate addressing mode • 8 or 16-bit data can be specified as part of the instruction • E.g. MOV AL, 45H MOV BX, 5062H
  • 9. 3. Memory addressing mode • One of the operands is in memory • 8086 must use – a segment register – A 16-bit offset (effective address) • By default, DS register is used for accessing data from memory • 16-bit offset can be specified in many ways
  • 10. Different ways of specifying offset • Direct memory addressing • Register Indirect addressing • Based addresing • Indexed addressing • Based Indexed addressing • String addressing
  • 11. a. Direct Memory addressing • Effective address is specified directly in the instruction • E.g. MOV BX, [5062] • 20-bit physical address of memory location is calculated using DS and offset value 5062
  • 12. Accessing memory Segment register + = 20-bit physical address of operand 16-bit offset
  • 13. b. Register indirect addressing • The effective address of memory operand is present in one of the base or index registers [BX, BP, SI, DI] • E.g. MOV CX, [BX] • If DS = 2000H, BX = 0004H • THEN contents of memory location 20004H are copied to register CX
  • 14. c. Based addressing • Effective address is sum of – 16-bit offset given in instruction – Contents of base register BX or BP • Segment register is DS or SS • E.g. MOV AX, 4[BX] • E.G. PUSH CX
  • 15. d. Indexed addressing • Effective address is sum of – 16-bit offset given in instruction – Contents of index register SI or DI • Segment register is DS • E.g. MOV AX, 4[SI]
  • 16. e. Based Indexed addressing • Effective address is sum of – 16-bit offset given in instruction – Contents of index register SI or DI – Contents of base register BX or BP • Segment register is DS • E.g. MOV AX, 4[BX][SI]
  • 17. f. String addressing • Used when string related instructions are executed • Uses index registers • SI register points to the first byte or word of the source string • DI register points to the first byte or word of the destination
  • 18. Classification of Addressing Modes 1. Register addressing mode 2. Immediate addressing mode 3. Memory addressing mode 4. Port addressing mode 5. Relative addressing mode 6. Implied addressing mode
  • 19. 4. Port addressing • Two I/O port addressing modes can be used – Direct (e.g. IN AL, 02H) – Indirect (e.g. IN AL, DXH)
  • 20. 5. Relative addressing mode • Specifies the operand as a 8-bit signed displacement relative to PC • E.g. JNC 08H • IF carry = 0, THEN PC is loaded with current PC contents + 8-bit signed value
  • 21. 6. Implied addressing mode • No operands are specified • E.g. CLC • Means clear carry flag