SlideShare une entreprise Scribd logo
1  sur  21
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

Contenu connexe

Tendances

8086 addressing modes
8086 addressing modes8086 addressing modes
8086 addressing modesj4jiet
 
Notes 8086 instruction format
Notes 8086 instruction formatNotes 8086 instruction format
Notes 8086 instruction formatHarshitParkar6677
 
Based and indexed addressing
Based and indexed addressingBased and indexed addressing
Based and indexed addressingJaveria Yaqoob
 
Instruction Set and Assembly Language Programming
Instruction Set and Assembly Language ProgrammingInstruction Set and Assembly Language Programming
Instruction Set and Assembly Language ProgrammingBrenda Debra
 
Memory segmentation-of-8086
Memory segmentation-of-8086Memory segmentation-of-8086
Memory segmentation-of-8086mudulin
 
Indexing structure for files
Indexing structure for filesIndexing structure for files
Indexing structure for filesZainab Almugbel
 
Memory sementation sem
Memory sementation semMemory sementation sem
Memory sementation semVishal Jangid
 
File organization and indexing
File organization and indexingFile organization and indexing
File organization and indexingraveena sharma
 
Addressing mode of 80286 microprocessor
Addressing mode of 80286 microprocessorAddressing mode of 80286 microprocessor
Addressing mode of 80286 microprocessorpal bhumit
 
File organization 1
File organization 1File organization 1
File organization 1Rupali Rana
 
Implementação do Hash Coalha/Coalesced
Implementação do Hash Coalha/CoalescedImplementação do Hash Coalha/Coalesced
Implementação do Hash Coalha/CoalescedCriatividadeZeroDocs
 
Addressing modes of 80386
Addressing modes of 80386Addressing modes of 80386
Addressing modes of 80386PDFSHARE
 

Tendances (20)

8086 addressing modes
8086 addressing modes8086 addressing modes
8086 addressing modes
 
Notes 8086 instruction format
Notes 8086 instruction formatNotes 8086 instruction format
Notes 8086 instruction format
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
 
Based and indexed addressing
Based and indexed addressingBased and indexed addressing
Based and indexed addressing
 
8086 add mod
8086 add mod8086 add mod
8086 add mod
 
Instruction Set and Assembly Language Programming
Instruction Set and Assembly Language ProgrammingInstruction Set and Assembly Language Programming
Instruction Set and Assembly Language Programming
 
Memory segmentation-of-8086
Memory segmentation-of-8086Memory segmentation-of-8086
Memory segmentation-of-8086
 
Indexing structure for files
Indexing structure for filesIndexing structure for files
Indexing structure for files
 
Addressing modes
Addressing  modesAddressing  modes
Addressing modes
 
Memory sementation sem
Memory sementation semMemory sementation sem
Memory sementation sem
 
File organization and indexing
File organization and indexingFile organization and indexing
File organization and indexing
 
Ip v6
Ip v6Ip v6
Ip v6
 
Addressing mode of 80286 microprocessor
Addressing mode of 80286 microprocessorAddressing mode of 80286 microprocessor
Addressing mode of 80286 microprocessor
 
File organization 1
File organization 1File organization 1
File organization 1
 
Addressing mode
Addressing modeAddressing mode
Addressing mode
 
Implementação do Hash Coalha/Coalesced
Implementação do Hash Coalha/CoalescedImplementação do Hash Coalha/Coalesced
Implementação do Hash Coalha/Coalesced
 
Chapter4.3 4-mikroprocessor
Chapter4.3 4-mikroprocessorChapter4.3 4-mikroprocessor
Chapter4.3 4-mikroprocessor
 
Assembly
AssemblyAssembly
Assembly
 
Addressing modes of 80386
Addressing modes of 80386Addressing modes of 80386
Addressing modes of 80386
 
Chapter13
Chapter13Chapter13
Chapter13
 

En vedette

Flag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction setFlag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction setaviban
 
Addressing Modes
Addressing ModesAddressing Modes
Addressing ModesMayank Garg
 
ADDRESING THE PROBLEMS OF PHYSICALLY DISABLED IN THE CLOTHING INDUSTRY by Aji...
ADDRESING THE PROBLEMS OF PHYSICALLY DISABLED IN THE CLOTHING INDUSTRY by Aji...ADDRESING THE PROBLEMS OF PHYSICALLY DISABLED IN THE CLOTHING INDUSTRY by Aji...
ADDRESING THE PROBLEMS OF PHYSICALLY DISABLED IN THE CLOTHING INDUSTRY by Aji...Kumari Wickramasinghe
 
LinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-PresentedLinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-PresentedSlideShare
 

En vedette (7)

Addresing modes
Addresing modesAddresing modes
Addresing modes
 
3. adressingmodes1
3. adressingmodes13. adressingmodes1
3. adressingmodes1
 
Flag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction setFlag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction set
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 
Addressing Modes
Addressing ModesAddressing Modes
Addressing Modes
 
ADDRESING THE PROBLEMS OF PHYSICALLY DISABLED IN THE CLOTHING INDUSTRY by Aji...
ADDRESING THE PROBLEMS OF PHYSICALLY DISABLED IN THE CLOTHING INDUSTRY by Aji...ADDRESING THE PROBLEMS OF PHYSICALLY DISABLED IN THE CLOTHING INDUSTRY by Aji...
ADDRESING THE PROBLEMS OF PHYSICALLY DISABLED IN THE CLOTHING INDUSTRY by Aji...
 
LinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-PresentedLinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-Presented
 

Similaire à 1327 addressingmodesof8086-100523023240-phpapp02

All-addressing-modes of the 80386 /microprocessor.pptx
All-addressing-modes of the 80386 /microprocessor.pptxAll-addressing-modes of the 80386 /microprocessor.pptx
All-addressing-modes of the 80386 /microprocessor.pptxVidyaAshokNemade
 
8086 instruction set (with simulator)
8086 instruction set (with simulator)8086 instruction set (with simulator)
8086 instruction set (with simulator)Aswini Dharmaraj
 
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMINGChapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMINGFrankie Jones
 
8086addressingmodes-200319141110.pdf
8086addressingmodes-200319141110.pdf8086addressingmodes-200319141110.pdf
8086addressingmodes-200319141110.pdfTanmoyMondal89
 
8086 microprocessor pptx JNTUH ece 3rd year
8086 microprocessor pptx JNTUH ece 3rd year8086 microprocessor pptx JNTUH ece 3rd year
8086 microprocessor pptx JNTUH ece 3rd yearBharghavteja1
 
addressing-modes-of-8086-mr-binu-joy-2.pptx
addressing-modes-of-8086-mr-binu-joy-2.pptxaddressing-modes-of-8086-mr-binu-joy-2.pptx
addressing-modes-of-8086-mr-binu-joy-2.pptxjohnpragasam1
 
lect 03- MIT Addressing Modes.pdf
lect 03- MIT Addressing Modes.pdflect 03- MIT Addressing Modes.pdf
lect 03- MIT Addressing Modes.pdfAdeelAsghar36
 
Instruction sets of 8086
Instruction sets of 8086Instruction sets of 8086
Instruction sets of 8086Mahalakshmiv11
 
31. 8086 addressing modes
31. 8086 addressing modes31. 8086 addressing modes
31. 8086 addressing modessandip das
 
Lecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptx
Lecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptxLecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptx
Lecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptxVikasMahor3
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor Mustapha Fatty
 
micro chapter 3jjgffffyeyhhuyerfftfgggffgjj
micro chapter 3jjgffffyeyhhuyerfftfgggffgjjmicro chapter 3jjgffffyeyhhuyerfftfgggffgjj
micro chapter 3jjgffffyeyhhuyerfftfgggffgjjTadeseBeyene
 
02 Addressing Modes.pptx
02 Addressing Modes.pptx02 Addressing Modes.pptx
02 Addressing Modes.pptxssuser586772
 
address5ng modes.pptx IS A GOOD MATERIAL
address5ng  modes.pptx IS A GOOD MATERIALaddress5ng  modes.pptx IS A GOOD MATERIAL
address5ng modes.pptx IS A GOOD MATERIALDrkoteswararaoseelam
 

Similaire à 1327 addressingmodesof8086-100523023240-phpapp02 (20)

All-addressing-modes of the 80386 /microprocessor.pptx
All-addressing-modes of the 80386 /microprocessor.pptxAll-addressing-modes of the 80386 /microprocessor.pptx
All-addressing-modes of the 80386 /microprocessor.pptx
 
8086 instruction set (with simulator)
8086 instruction set (with simulator)8086 instruction set (with simulator)
8086 instruction set (with simulator)
 
Lect03
Lect03Lect03
Lect03
 
Chapter 1 archietecture of 8086
Chapter 1 archietecture of 8086Chapter 1 archietecture of 8086
Chapter 1 archietecture of 8086
 
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMINGChapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
 
8086addressingmodes-200319141110.pdf
8086addressingmodes-200319141110.pdf8086addressingmodes-200319141110.pdf
8086addressingmodes-200319141110.pdf
 
8086 microprocessor pptx JNTUH ece 3rd year
8086 microprocessor pptx JNTUH ece 3rd year8086 microprocessor pptx JNTUH ece 3rd year
8086 microprocessor pptx JNTUH ece 3rd year
 
addressing-modes-of-8086-mr-binu-joy-2.pptx
addressing-modes-of-8086-mr-binu-joy-2.pptxaddressing-modes-of-8086-mr-binu-joy-2.pptx
addressing-modes-of-8086-mr-binu-joy-2.pptx
 
lect 03- MIT Addressing Modes.pdf
lect 03- MIT Addressing Modes.pdflect 03- MIT Addressing Modes.pdf
lect 03- MIT Addressing Modes.pdf
 
8086 architecture By Er. Swapnil Kaware
8086 architecture By Er. Swapnil Kaware8086 architecture By Er. Swapnil Kaware
8086 architecture By Er. Swapnil Kaware
 
Instruction sets of 8086
Instruction sets of 8086Instruction sets of 8086
Instruction sets of 8086
 
31. 8086 addressing modes
31. 8086 addressing modes31. 8086 addressing modes
31. 8086 addressing modes
 
Lecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptx
Lecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptxLecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptx
Lecture 28 , 29 & 30(instruction set & addressing mode of 8086.pptx
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor
 
micro chapter 3jjgffffyeyhhuyerfftfgggffgjj
micro chapter 3jjgffffyeyhhuyerfftfgggffgjjmicro chapter 3jjgffffyeyhhuyerfftfgggffgjj
micro chapter 3jjgffffyeyhhuyerfftfgggffgjj
 
02 Addressing Modes.pptx
02 Addressing Modes.pptx02 Addressing Modes.pptx
02 Addressing Modes.pptx
 
address5ng modes.pptx IS A GOOD MATERIAL
address5ng  modes.pptx IS A GOOD MATERIALaddress5ng  modes.pptx IS A GOOD MATERIAL
address5ng modes.pptx IS A GOOD MATERIAL
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
 
Lecture 11
Lecture 11Lecture 11
Lecture 11
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
 

Dernier

Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 

Dernier (20)

Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 

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