SlideShare una empresa de Scribd logo
1 de 18
Descargar para leer sin conexión
Addressing Modes of 80386
Prepared By pdfshare
Introduction
Addressing modes indicate a way of locating data or operands.
Described the type of operands and the way they are accessed
for executing an instruction.
The method by which address of source data and address of
destination of result is given in the instruction is called as “
Addressing Modes”.
The 80386 Microprocessor Provide 11 addressing modes.
Prepared By pdfshare
Addressing Modes
 Register addressing Mode
 Immediate addressing Mode
 Direct addressing Mode
 Register Indirect addressing Mode
 Based addressing Mode
 Index addressing Mode
 Scaled Index addressing Mode
 Based Index addressing Mode
 Based Scaled Index addressing Mode
 Based Index addressing Mode with Displacement
 Based Scaled Index addressing Mode with Displacement
Prepared By pdfshare
Register addressing Mode
The data is stored in a register and it is referred using a
particular register.
All register accept IP used in this addressing mode.
The 8/16/32 bit data required to execute an instruction is
present in 8/16/32 bit register is given along with the
instruction is called “Register addressing mode. “
 Example : ADD EAX,EBX
Prepared By pdfshare
Immediate addressing Mode
 In this addressing mode, immediate data is part of
instruction.
 The 8/16/32 bit data required to execute an instruction is given
directly along with the instruction is called “Immediate addressing
mode”.
 Example :
 Mov EAX,12345678H
Prepared By pdfshare
Cont…..
 The linear address consists of two components:
The segment base address and
An effective address.
 The effective address is calculated by using four address elements:
DISPLACEMENT: An 8-, or 32-bit immediate value
BASE: The contents of any general purpose register. It is
generally used by compilers to point to the start of the local
variable area.
INDEX: The contents of any general purpose register except for
ESP. The index registers are used to access the elements of an
array, or a string of characters.
SCALE: The index register's value can be multiplied by a scale
factor, either 1, 2, 4 or 8. Scaled index mode is especially useful
for accessing arrays or structures.
Prepared By pdfshare
 The effective address (EA) of an operand is calculated according to the following formula:
 EA = Base Register + (Index Register * Scaling) + Displacement.
Prepared By pdfshare
Prepared By pdfshare
Direct addressing Mode
 The 8/16/32 bit data required to execute an instruction is present in memory location and effective
address of this memory location is given directly along with the instruction then it is called “Direct
addressing mode”.
 Example : Mov AX,[5000H]
Prepared By pdfshare
Register Indirect addressing Mode
 A base register will contain the address of operand
 Example: MOV [ECX], EDX
 The 8/16/32 bit data required to execute an instruction is present in
memory location and effective address of that memory location is
present in a 32 bit register and the name of this register is given along
with the instruction then it is called “Register Indirect addressing
mode”.
Prepared By pdfshare
Based addressing Mode
A BASE register's contents is added to a
DISPLACEMENT to form the operands offset.
Example: MOV ECX, [EAX+24]
Prepared By pdfshare
Index addressing Mode
 An INDEX register's contents is added to a DISPLACEMENT to form the operands
offset. EXAMPLE: ADD EAX, TABLE[ESI]
 The 8/16/32 bit data required to execute an instruction is present in memory
location and effective address of that memory location is obtained by adding three
contents : 1. The 32 bit content of base register 2. The 32 bit content of Index
Register 3. Displacement.
Prepared By pdfshare
Scaled Index addressing Mode
 An INDEX register's contents is multiplied by a scaling factor
which is added to a DISPLACEMENT to form the operands
offset.
 Example: MOV EBX, LIST[ESI*4]
Prepared By pdfshare
Based Index addressing Mode
The contents of a BASE register are added to the contents of an INDEX
register to form the effective address of an operand.
The 8/16/32 bit data required to execute an instruction is present in memory
location and effective address of that memory location is obtained by adding
two contents : 1. The 32 bit content of base register 2. The 32 bit content of
Index Register is called as Based Index addressing Mode.
 Example: MOV EAX, [ESI] [EBX]
Prepared By pdfshare
Based Scaled Index addressing Mode
The contents of an INDEX register is multiplied by a SCALING factor and
the result is added to the contents of a BASE register to obtain the operands
offset.
Example: MOV ECX, [EDX*8] [EAX]
Prepared By pdfshare
Based Index addressing Mode with Displacement
The contents of an INDEX Register and a BASE register's contents and a
DISPLACEMENT are all summed together to form the operand offset.
Example: ADD EDX, [ESI] [EBP+00FFFFF0H]
Prepared By pdfshare
Based Scaled Index addressing Mode with
Displacement
The contents of an INDEX register are multiplied by a SCALING factor, the
result is added to the contents of a BASE register and a DISPLACEMENT to
form the operand's offset.
EXAMPLE: MOV EAX, LIST [EDI*4] [EBP+80]
Prepared By pdfshare
Prepared By PDFSHARE
Prepared By PDFSHARE

Más contenido relacionado

La actualidad más candente

8086 pin details
8086 pin details8086 pin details
8086 pin detailsAJAL A J
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086saurav kumar
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controllerTech_MX
 
Time delay programs and assembler directives 8086
Time delay programs and assembler directives 8086Time delay programs and assembler directives 8086
Time delay programs and assembler directives 8086Dheeraj Suri
 
Pin Description Of Intel 80386 DX Microprocessor
Pin Description Of Intel 80386 DX MicroprocessorPin Description Of Intel 80386 DX Microprocessor
Pin Description Of Intel 80386 DX MicroprocessorRaunaq Sahni
 
Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kVijay Kumar
 
Computer architecture addressing modes and formats
Computer architecture addressing modes and formatsComputer architecture addressing modes and formats
Computer architecture addressing modes and formatsMazin Alwaaly
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 80869840596838
 
COMPUTER ORGANIZATION NOTES Unit 2
COMPUTER ORGANIZATION NOTES  Unit 2COMPUTER ORGANIZATION NOTES  Unit 2
COMPUTER ORGANIZATION NOTES Unit 2Dr.MAYA NAYAK
 
Computer registers
Computer registersComputer registers
Computer registersDeepikaT13
 
8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessorVikas Gupta
 
Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086
Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086
Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086samirbharat77
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor Mustapha Fatty
 

La actualidad más candente (20)

8086 pin details
8086 pin details8086 pin details
8086 pin details
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controller
 
Time delay programs and assembler directives 8086
Time delay programs and assembler directives 8086Time delay programs and assembler directives 8086
Time delay programs and assembler directives 8086
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
 
Pin Description Of Intel 80386 DX Microprocessor
Pin Description Of Intel 80386 DX MicroprocessorPin Description Of Intel 80386 DX Microprocessor
Pin Description Of Intel 80386 DX Microprocessor
 
Intel 80486 Microprocessor
Intel 80486 MicroprocessorIntel 80486 Microprocessor
Intel 80486 Microprocessor
 
Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.k
 
Computer architecture addressing modes and formats
Computer architecture addressing modes and formatsComputer architecture addressing modes and formats
Computer architecture addressing modes and formats
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
COMPUTER ORGANIZATION NOTES Unit 2
COMPUTER ORGANIZATION NOTES  Unit 2COMPUTER ORGANIZATION NOTES  Unit 2
COMPUTER ORGANIZATION NOTES Unit 2
 
Computer registers
Computer registersComputer registers
Computer registers
 
Interrupts of 8086
Interrupts of 8086Interrupts of 8086
Interrupts of 8086
 
8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessor
 
80386
8038680386
80386
 
Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086
Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086
Addressing modes/Addressing Mode with illustration/ Addressing mode in 8086
 
Instruction formats-in-8086
Instruction formats-in-8086Instruction formats-in-8086
Instruction formats-in-8086
 
8086 memory segmentation
8086 memory segmentation8086 memory segmentation
8086 memory segmentation
 
8255 PPI
8255 PPI8255 PPI
8255 PPI
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor
 

Similar a Addressing modes of 80386

pptx_20221115_180411_0000.pptx
pptx_20221115_180411_0000.pptxpptx_20221115_180411_0000.pptx
pptx_20221115_180411_0000.pptxAManiMaran1
 
Describe the three main addressing modes of the PIC16 architecture di.pdf
Describe the three main addressing modes of the PIC16 architecture di.pdfDescribe the three main addressing modes of the PIC16 architecture di.pdf
Describe the three main addressing modes of the PIC16 architecture di.pdfSALES97
 
Notes 8086 instruction format
Notes 8086 instruction formatNotes 8086 instruction format
Notes 8086 instruction formatHarshitParkar6677
 
lect 03- MIT Addressing Modes.pdf
lect 03- MIT Addressing Modes.pdflect 03- MIT Addressing Modes.pdf
lect 03- MIT Addressing Modes.pdfAdeelAsghar36
 
micro chapter 3jjgffffyeyhhuyerfftfgggffgjj
micro chapter 3jjgffffyeyhhuyerfftfgggffgjjmicro chapter 3jjgffffyeyhhuyerfftfgggffgjj
micro chapter 3jjgffffyeyhhuyerfftfgggffgjjTadeseBeyene
 
instruction format and addressing modes
instruction format and addressing modesinstruction format and addressing modes
instruction format and addressing modesRamaPrabha24
 
8086 instruction set (with simulator)
8086 instruction set (with simulator)8086 instruction set (with simulator)
8086 instruction set (with simulator)Aswini Dharmaraj
 
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
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction SetDr. Pankaj Zope
 
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
 
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
 
Addressing modes presentation
Addressing modes presentationAddressing modes presentation
Addressing modes presentationUmeshBhattarai4
 
Memory Access Instructions
Memory Access InstructionsMemory Access Instructions
Memory Access InstructionsSharif Ullah
 
Advanced computer architect lesson 3 and 4
Advanced computer architect lesson 3 and 4Advanced computer architect lesson 3 and 4
Advanced computer architect lesson 3 and 4Ismail Mukiibi
 
Chapter 4 programming concepts III
Chapter 4  programming concepts IIIChapter 4  programming concepts III
Chapter 4 programming concepts IIISHREEHARI WADAWADAGI
 
Computer architecture instruction formats
Computer architecture instruction formatsComputer architecture instruction formats
Computer architecture instruction formatsMazin Alwaaly
 

Similar a Addressing modes of 80386 (20)

pptx_20221115_180411_0000.pptx
pptx_20221115_180411_0000.pptxpptx_20221115_180411_0000.pptx
pptx_20221115_180411_0000.pptx
 
Describe the three main addressing modes of the PIC16 architecture di.pdf
Describe the three main addressing modes of the PIC16 architecture di.pdfDescribe the three main addressing modes of the PIC16 architecture di.pdf
Describe the three main addressing modes of the PIC16 architecture di.pdf
 
Notes 8086 instruction format
Notes 8086 instruction formatNotes 8086 instruction format
Notes 8086 instruction format
 
lect 03- MIT Addressing Modes.pdf
lect 03- MIT Addressing Modes.pdflect 03- MIT Addressing Modes.pdf
lect 03- MIT Addressing Modes.pdf
 
micro chapter 3jjgffffyeyhhuyerfftfgggffgjj
micro chapter 3jjgffffyeyhhuyerfftfgggffgjjmicro chapter 3jjgffffyeyhhuyerfftfgggffgjj
micro chapter 3jjgffffyeyhhuyerfftfgggffgjj
 
instruction format and addressing modes
instruction format and addressing modesinstruction format and addressing modes
instruction format and addressing modes
 
8086 instruction set (with simulator)
8086 instruction set (with simulator)8086 instruction set (with simulator)
8086 instruction set (with simulator)
 
Chapter 1 archietecture of 8086
Chapter 1 archietecture of 8086Chapter 1 archietecture of 8086
Chapter 1 archietecture of 8086
 
Chapter 7
Chapter 7Chapter 7
Chapter 7
 
UNIT-2.pptx
UNIT-2.pptxUNIT-2.pptx
UNIT-2.pptx
 
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
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction Set
 
ADDRESSING MODE
ADDRESSING MODEADDRESSING MODE
ADDRESSING MODE
 
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
 
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
 
Addressing modes presentation
Addressing modes presentationAddressing modes presentation
Addressing modes presentation
 
Memory Access Instructions
Memory Access InstructionsMemory Access Instructions
Memory Access Instructions
 
Advanced computer architect lesson 3 and 4
Advanced computer architect lesson 3 and 4Advanced computer architect lesson 3 and 4
Advanced computer architect lesson 3 and 4
 
Chapter 4 programming concepts III
Chapter 4  programming concepts IIIChapter 4  programming concepts III
Chapter 4 programming concepts III
 
Computer architecture instruction formats
Computer architecture instruction formatsComputer architecture instruction formats
Computer architecture instruction formats
 

Último

Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 
Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxNadaHaitham1
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"mphochane1998
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesRAJNEESHKUMAR341697
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilVinayVitekari
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsvanyagupta248
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEselvakumar948
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARKOUSTAV SARKAR
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Servicemeghakumariji156
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...drmkjayanthikannan
 

Último (20)

Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptx
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 

Addressing modes of 80386

  • 1. Addressing Modes of 80386 Prepared By pdfshare
  • 2. Introduction Addressing modes indicate a way of locating data or operands. Described the type of operands and the way they are accessed for executing an instruction. The method by which address of source data and address of destination of result is given in the instruction is called as “ Addressing Modes”. The 80386 Microprocessor Provide 11 addressing modes. Prepared By pdfshare
  • 3. Addressing Modes  Register addressing Mode  Immediate addressing Mode  Direct addressing Mode  Register Indirect addressing Mode  Based addressing Mode  Index addressing Mode  Scaled Index addressing Mode  Based Index addressing Mode  Based Scaled Index addressing Mode  Based Index addressing Mode with Displacement  Based Scaled Index addressing Mode with Displacement Prepared By pdfshare
  • 4. Register addressing Mode The data is stored in a register and it is referred using a particular register. All register accept IP used in this addressing mode. The 8/16/32 bit data required to execute an instruction is present in 8/16/32 bit register is given along with the instruction is called “Register addressing mode. “  Example : ADD EAX,EBX Prepared By pdfshare
  • 5. Immediate addressing Mode  In this addressing mode, immediate data is part of instruction.  The 8/16/32 bit data required to execute an instruction is given directly along with the instruction is called “Immediate addressing mode”.  Example :  Mov EAX,12345678H Prepared By pdfshare
  • 6. Cont…..  The linear address consists of two components: The segment base address and An effective address.  The effective address is calculated by using four address elements: DISPLACEMENT: An 8-, or 32-bit immediate value BASE: The contents of any general purpose register. It is generally used by compilers to point to the start of the local variable area. INDEX: The contents of any general purpose register except for ESP. The index registers are used to access the elements of an array, or a string of characters. SCALE: The index register's value can be multiplied by a scale factor, either 1, 2, 4 or 8. Scaled index mode is especially useful for accessing arrays or structures. Prepared By pdfshare
  • 7.  The effective address (EA) of an operand is calculated according to the following formula:  EA = Base Register + (Index Register * Scaling) + Displacement. Prepared By pdfshare
  • 9. Direct addressing Mode  The 8/16/32 bit data required to execute an instruction is present in memory location and effective address of this memory location is given directly along with the instruction then it is called “Direct addressing mode”.  Example : Mov AX,[5000H] Prepared By pdfshare
  • 10. Register Indirect addressing Mode  A base register will contain the address of operand  Example: MOV [ECX], EDX  The 8/16/32 bit data required to execute an instruction is present in memory location and effective address of that memory location is present in a 32 bit register and the name of this register is given along with the instruction then it is called “Register Indirect addressing mode”. Prepared By pdfshare
  • 11. Based addressing Mode A BASE register's contents is added to a DISPLACEMENT to form the operands offset. Example: MOV ECX, [EAX+24] Prepared By pdfshare
  • 12. Index addressing Mode  An INDEX register's contents is added to a DISPLACEMENT to form the operands offset. EXAMPLE: ADD EAX, TABLE[ESI]  The 8/16/32 bit data required to execute an instruction is present in memory location and effective address of that memory location is obtained by adding three contents : 1. The 32 bit content of base register 2. The 32 bit content of Index Register 3. Displacement. Prepared By pdfshare
  • 13. Scaled Index addressing Mode  An INDEX register's contents is multiplied by a scaling factor which is added to a DISPLACEMENT to form the operands offset.  Example: MOV EBX, LIST[ESI*4] Prepared By pdfshare
  • 14. Based Index addressing Mode The contents of a BASE register are added to the contents of an INDEX register to form the effective address of an operand. The 8/16/32 bit data required to execute an instruction is present in memory location and effective address of that memory location is obtained by adding two contents : 1. The 32 bit content of base register 2. The 32 bit content of Index Register is called as Based Index addressing Mode.  Example: MOV EAX, [ESI] [EBX] Prepared By pdfshare
  • 15. Based Scaled Index addressing Mode The contents of an INDEX register is multiplied by a SCALING factor and the result is added to the contents of a BASE register to obtain the operands offset. Example: MOV ECX, [EDX*8] [EAX] Prepared By pdfshare
  • 16. Based Index addressing Mode with Displacement The contents of an INDEX Register and a BASE register's contents and a DISPLACEMENT are all summed together to form the operand offset. Example: ADD EDX, [ESI] [EBP+00FFFFF0H] Prepared By pdfshare
  • 17. Based Scaled Index addressing Mode with Displacement The contents of an INDEX register are multiplied by a SCALING factor, the result is added to the contents of a BASE register and a DISPLACEMENT to form the operand's offset. EXAMPLE: MOV EAX, LIST [EDI*4] [EBP+80] Prepared By pdfshare