SlideShare a Scribd company logo
1 of 38
80386 Addressing Modes
Addressing Modes: Definition and classification
Memory segmentation
20-Bit Physical address=base
address+ offset
9
Addressing Modes:
• The term addressing modes refers to the way in which the
operand of an instruction is specified.
• When 80386 executes an instruction, it performs the specified
function on data. Operated data is stored in the memory location.
There are various techniques to specifyaddress of data. These
techniques are calledAddressing Modes.
• An addressing mode specifies how to calculate the effective
address (EA) of an operand.
Addressing Modes:
1
• REGISTER ADDRESSING TRANSFERSACOPYOFABYTE
OR WORD FROM THE SOURCE REGISTER TO DESTINATION
REGISTER.
• 8-BIT REGISTER NAMES WITH REGISTER ADDRESSING:AH,AL,
BH, BL,CH, CL, DH, DL.
• 16-BIT REGISTER NAMES:AX, BX,CX, DX, SP
,BP
,SI,DI, IP
,CS, SS,
DSAND ES.
13
Register addressing
Destination
Note: Wewill use MOVinstruction to explain all the data addressing modes.
Source
MOV AX, BX
Opcode
Register addressing
MOV EAX,EDX
• Copy the contents of EDX register to the EAX
register
1
REGISTER ADDRESSING MODE
MOV EX, DS ; Not allowed (segment to segment)
MOV BL, DX ; Not allowed (mixed size)
MOV CS,AX ; Not allowed (Code segment register maynot be destination register)
• Code segment register (CS) is never used as destination.
• Segment to segment MOVinstruction is not allowed.
• Example: MOV AL, BL
MOV AX, CX
; Copies 8-bit content ofBLintoAL
; Copies 16-bit content of CX intoAX
1
2
17
Immediate addressing
• Immediate addressing transfers the source, an immediate byte or word data, into the
destination
register.
• Immediate data means constant data,whereas data transferred from aregister or memory
location are variable data.
• Example: MOV BL, 44 ; Copies44 decimal (2CH) into BL
MOV AX, 44H ; Copies 0044H intoAX
MOV AL,‘A
’ ; CopiesASCII AintoAL
Data
4D12H
Register
BX
MOVBX,4D12H
Operation
2
Immediate addressing
2
Immediate addressing
MOV ECX,12345678H
• This instruction Copies the 12345678H In
ECX register.
• 32-bit data is given in the instruction and it will
be transferred to ECX register after instruction
execution.
2
• In this mode, the instruction contains the address of the actual
memory location where the operand's value is stored.
• The address of this memory location is referred to as the
effective address.
Direct addressing:
3
• The square brackets around the 1354 H denotes the
contents of the memory location.
• When executed, this instruction will copy the contents
of the memory location into BX register.
• This addressing mode is called direct because the
displacement of the operand from the segment base is
specified directly in the instruction.
Direct addressing:
3
Direct addressing:
3
Direct addressing:
3
Register indirect addressing
• In register indirect addressing, name of the
register which holds the effective address (EA)
will be specified in the instruction.
• Registers used to hold EA are any of the
following registers: BX, BP, DI and SI.
• Content of the DS register is used for base
address calculation.
4
25
Register Indirect addressing
• Register addressing transfers abyte or word between aregister and memory location
addressed byan index or base register.
• The index and base registers are BP
,BX,DI and SI.These registers hold the offset address
of the memory location.
• The data segment is used bydefault with register indirect addressing or any other
addressing modesthat uses BX, DI or, SIto address memory
.
• IfBPregister addresses memory, the stack segment is used bydefault.
• The [ ] symbol denote indirect addressing in assembly language.
Register
CL
Memoryaddress
DSx 10+BX
MOV[BX], CL
Operation
Register Indirect addressing
Register indirect addressing
• Example: MOVCX, [BX] ; Copies the word contents of the data
segment memory location addressed by BXinto CX.
• MOV EAX, [EBX]
Base addressing
5
Base addressing
5
Indexed addressing
• ESI or EDI register is used to hold an index value for
Memory data and a displacement will be specified in the
Instruction.
• Displacement is added to the index value in ESI or EDI
register to obtain the EA.
• MOV EAX, [ESI+2040H]
• P.A=DS+ESI+2040
6
Indexed
Addressing
6
Scale Indexed
Addressing
7
MOV EAX,[ESI*02]
Based index addressing
8
MOV EAX, [EBX+ESI]
The address of the data was represent in the
operand field of the instruction by combination of
base register and index register.
Based index addressing
Based index addressing
9
Based Scaled Index
addressing
10
11

More Related Content

Similar to All-addressing-modes of the 80386 /microprocessor.pptx

micro chapter 3jjgffffyeyhhuyerfftfgggffgjj
micro chapter 3jjgffffyeyhhuyerfftfgggffgjjmicro chapter 3jjgffffyeyhhuyerfftfgggffgjj
micro chapter 3jjgffffyeyhhuyerfftfgggffgjjTadeseBeyene
 
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
 
Notes 8086 instruction format
Notes 8086 instruction formatNotes 8086 instruction format
Notes 8086 instruction formatHarshitParkar6677
 
Addressing Modes Of 8086
Addressing Modes Of 8086Addressing Modes Of 8086
Addressing Modes Of 8086Ikhlas Rahman
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086Dr. AISHWARYA N
 
1327 Addressing Modes Of 8086
1327 Addressing Modes Of 80861327 Addressing Modes Of 8086
1327 Addressing Modes Of 8086techbed
 
31. 8086 addressing modes
31. 8086 addressing modes31. 8086 addressing modes
31. 8086 addressing modessandip das
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086saurav kumar
 
addressing-modes-of-8086-mr-binu-joy-2 (2).pptx
addressing-modes-of-8086-mr-binu-joy-2 (2).pptxaddressing-modes-of-8086-mr-binu-joy-2 (2).pptx
addressing-modes-of-8086-mr-binu-joy-2 (2).pptxDr.MUTHURAJ BOSE
 
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
 
N_Asm Assembly addressing modes (sol)
N_Asm Assembly addressing modes (sol)N_Asm Assembly addressing modes (sol)
N_Asm Assembly addressing modes (sol)Selomon birhane
 
8086addressingmodes-200319141110.pdf
8086addressingmodes-200319141110.pdf8086addressingmodes-200319141110.pdf
8086addressingmodes-200319141110.pdfTanmoyMondal89
 
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
 
Mastering Assembly Language: Programming with 8086
Mastering Assembly Language: Programming with 8086Mastering Assembly Language: Programming with 8086
Mastering Assembly Language: Programming with 8086sravanithonta79
 

Similar to All-addressing-modes of the 80386 /microprocessor.pptx (20)

8086 add mod
8086 add mod8086 add mod
8086 add mod
 
micro chapter 3jjgffffyeyhhuyerfftfgggffgjj
micro chapter 3jjgffffyeyhhuyerfftfgggffgjjmicro chapter 3jjgffffyeyhhuyerfftfgggffgjj
micro chapter 3jjgffffyeyhhuyerfftfgggffgjj
 
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
 
Notes 8086 instruction format
Notes 8086 instruction formatNotes 8086 instruction format
Notes 8086 instruction format
 
Chapter 1 archietecture of 8086
Chapter 1 archietecture of 8086Chapter 1 archietecture of 8086
Chapter 1 archietecture of 8086
 
Addressing Modes Of 8086
Addressing Modes Of 8086Addressing Modes Of 8086
Addressing Modes Of 8086
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
 
1327 Addressing Modes Of 8086
1327 Addressing Modes Of 80861327 Addressing Modes Of 8086
1327 Addressing Modes Of 8086
 
31. 8086 addressing modes
31. 8086 addressing modes31. 8086 addressing modes
31. 8086 addressing modes
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
 
addressing-modes-of-8086-mr-binu-joy-2 (2).pptx
addressing-modes-of-8086-mr-binu-joy-2 (2).pptxaddressing-modes-of-8086-mr-binu-joy-2 (2).pptx
addressing-modes-of-8086-mr-binu-joy-2 (2).pptx
 
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
 
N_Asm Assembly addressing modes (sol)
N_Asm Assembly addressing modes (sol)N_Asm Assembly addressing modes (sol)
N_Asm Assembly addressing modes (sol)
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 
8086addressingmodes-200319141110.pdf
8086addressingmodes-200319141110.pdf8086addressingmodes-200319141110.pdf
8086addressingmodes-200319141110.pdf
 
8086 addressing modes
8086 addressing modes8086 addressing modes
8086 addressing modes
 
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
 
Mastering Assembly Language: Programming with 8086
Mastering Assembly Language: Programming with 8086Mastering Assembly Language: Programming with 8086
Mastering Assembly Language: Programming with 8086
 
Notes all instructions
Notes all instructionsNotes all instructions
Notes all instructions
 

Recently uploaded

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 

Recently uploaded (20)

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 

All-addressing-modes of the 80386 /microprocessor.pptx

  • 1. 80386 Addressing Modes Addressing Modes: Definition and classification
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 9. 9 Addressing Modes: • The term addressing modes refers to the way in which the operand of an instruction is specified. • When 80386 executes an instruction, it performs the specified function on data. Operated data is stored in the memory location. There are various techniques to specifyaddress of data. These techniques are calledAddressing Modes. • An addressing mode specifies how to calculate the effective address (EA) of an operand.
  • 11.
  • 12. 1
  • 13. • REGISTER ADDRESSING TRANSFERSACOPYOFABYTE OR WORD FROM THE SOURCE REGISTER TO DESTINATION REGISTER. • 8-BIT REGISTER NAMES WITH REGISTER ADDRESSING:AH,AL, BH, BL,CH, CL, DH, DL. • 16-BIT REGISTER NAMES:AX, BX,CX, DX, SP ,BP ,SI,DI, IP ,CS, SS, DSAND ES. 13 Register addressing Destination Note: Wewill use MOVinstruction to explain all the data addressing modes. Source MOV AX, BX Opcode
  • 14. Register addressing MOV EAX,EDX • Copy the contents of EDX register to the EAX register 1
  • 15. REGISTER ADDRESSING MODE MOV EX, DS ; Not allowed (segment to segment) MOV BL, DX ; Not allowed (mixed size) MOV CS,AX ; Not allowed (Code segment register maynot be destination register) • Code segment register (CS) is never used as destination. • Segment to segment MOVinstruction is not allowed. • Example: MOV AL, BL MOV AX, CX ; Copies 8-bit content ofBLintoAL ; Copies 16-bit content of CX intoAX 1
  • 16. 2
  • 17. 17 Immediate addressing • Immediate addressing transfers the source, an immediate byte or word data, into the destination register. • Immediate data means constant data,whereas data transferred from aregister or memory location are variable data. • Example: MOV BL, 44 ; Copies44 decimal (2CH) into BL MOV AX, 44H ; Copies 0044H intoAX MOV AL,‘A ’ ; CopiesASCII AintoAL Data 4D12H Register BX MOVBX,4D12H Operation 2
  • 19. Immediate addressing MOV ECX,12345678H • This instruction Copies the 12345678H In ECX register. • 32-bit data is given in the instruction and it will be transferred to ECX register after instruction execution. 2
  • 20. • In this mode, the instruction contains the address of the actual memory location where the operand's value is stored. • The address of this memory location is referred to as the effective address. Direct addressing: 3
  • 21. • The square brackets around the 1354 H denotes the contents of the memory location. • When executed, this instruction will copy the contents of the memory location into BX register. • This addressing mode is called direct because the displacement of the operand from the segment base is specified directly in the instruction. Direct addressing: 3
  • 24. Register indirect addressing • In register indirect addressing, name of the register which holds the effective address (EA) will be specified in the instruction. • Registers used to hold EA are any of the following registers: BX, BP, DI and SI. • Content of the DS register is used for base address calculation. 4
  • 25. 25 Register Indirect addressing • Register addressing transfers abyte or word between aregister and memory location addressed byan index or base register. • The index and base registers are BP ,BX,DI and SI.These registers hold the offset address of the memory location. • The data segment is used bydefault with register indirect addressing or any other addressing modesthat uses BX, DI or, SIto address memory . • IfBPregister addresses memory, the stack segment is used bydefault. • The [ ] symbol denote indirect addressing in assembly language. Register CL Memoryaddress DSx 10+BX MOV[BX], CL Operation
  • 27. Register indirect addressing • Example: MOVCX, [BX] ; Copies the word contents of the data segment memory location addressed by BXinto CX. • MOV EAX, [EBX]
  • 30. Indexed addressing • ESI or EDI register is used to hold an index value for Memory data and a displacement will be specified in the Instruction. • Displacement is added to the index value in ESI or EDI register to obtain the EA. • MOV EAX, [ESI+2040H] • P.A=DS+ESI+2040 6
  • 34. MOV EAX, [EBX+ESI] The address of the data was represent in the operand field of the instruction by combination of base register and index register. Based index addressing
  • 37. 10
  • 38. 11