SlideShare a Scribd company logo
1 of 26
 Select the appropriate addressing mode to
accomplish a given task.
 Detail the difference between addressing
memory data using real mode and protected
mode operation.
 Describe the sequence of events that place data
onto the stack or remove data from the stack.
 Explain how a data structure is placed in
memory and used with software.
 An addressing mode means the method by which
an operand can be specified in a register or a
memory location
 8086provide a seven Addressing Modes:
(1) Register Addressing
(2) Immediate Addressing
(3) Direct Addressing
(4) Register Indirect Addressing
(5) Based Indexed Addressing
(6) Register Relative Addressing
(7) Relative Based Indexed Addressing
8-bit 8-bit 8-bit
OP CODE OPERAND
byte 1 to 2 byte
 An opcode is a short of “operation code”
 An opcede is a singe instruction can be executed by the CPU.
In machine language it is a binary or hexadecimal value such
as B7 loaded into the instruction register.
 In assembly language mnemonic form an opcode is a
command such as MOV or ADD or JMP.
 Example:
MOV AX, 1000H ; MOV is the opcode.
; AX (register) is an operand.
 Operands are manipulated by the opcode. In this example,
the operands are the register AX and the value 1000H.
 Transfers a copy of a byte or word from the source register
or memory location to the destination register or memory
location.
 Use of registers to hold the data to be manipulated
 Memory is not accessed when this addressing mode is
executed
 Example:
MOV BX, DX
MOV ES, AX
ADD AL, BH
; copy the contents of DX into BX
; copy the contents of AX into ES
; add the contents of BH to
contents of AL
destination registers must have the same size
 Transfers the source, an immediate byte or word of data,
into the destination register or memory location
 The source operand is a constant
 The operand comes immediately after the opcode
 For this reason, this addressing mode executes quickly
 Immediate addressing mode can be used to load
information into any of the registers except the segment
registers and flag registers.
 Example:
MOV AX, 2550H
MOV CX, 625
MOV BL, 40H
; move 2550H into AX
; load the decimal value 625 into
CX
; load 40H into BL
 The data must first be moved to a general-purpose
register and then to the segment register.
 Example:
MOV AX, 2550H MOV DS, AX
MOV DS, 0123H ; illegal instruction!
Moves a byte or word between a memory location and
a register.
The data is in some memory location(s) and the
address of the data in memory comes immediately
after the instruction
This address is the offset address
Example:
MOV AX, [2400] ; move contents of DS:2400H
into AX
The physical address is calculated by combining the
contents of offset location 2400 with DS
 Example:
Find the physical address of the memory location and its
contents after the execution of the following, assuming that DS
= 1512H.
AL, 3BH
[3518], AL
MOV
MOV
Sol
ution
:
 First 3BH is copied into AL,
 Then in line two, the contents of AL are moved to logical
address DS:3518 which is 1512:3518.
 Shifting DS left and adding it to the offset gives the physical
address of 18638H (15120H + 3518H = 18638H).
 After the execution of the second instruction, the memory
Prof. Fayleoz Fc. aMa.tEil-oSonusy with address 18638H will contain the
value 3BH.
Transfers a byte or word between a register and a
memory location addressed by an index or base
register
The address of the memory location where the
operand resides is held by a register
The registers used for this purpose are SI, DI, and BX
They must be combined with DS in order to generate
the 20-bit physical address.
Example:
MOV AX, [BX] ; moves into AX the contents of
the memory location pointed
to by DS:BX, 1000:1234
The physical address is calculated as
1000x10+1234=11234H
The same rules apply when using register SI or DI.
Example:
MOV CL, [SI]
MOV [DI], AH
; move contents of DS:SI into CL
; move contents of AH into DS:DI
 Example:
 Assume that DS = 1120, SI = 2498, and AX = 17FE Show
the contents of memory locations after the execution of
MOV [SI], AX ; move contents of AX into DS:SI
 Solution:
The contents of AX are moved into memory locations
with logical address DS:SI and DS:SI + 1;
The physical address starts at DS (shifted left) + SI =
13698. According to the little endian convention,
Low address 13698H contains FE, the low byte,
High address 13699H will contain 17, the high byte.
 Transfers a byte or word between a register and the memory location
addressed by a base register (BP or BX) plus an index register (DI or
SI).
 Combining based and indexed addressing modes.
 One base register and one index register are used.
 Examples:
MOV [BX+DI], CL ; move contents of CL into DS:BX+DI
 Physical Address = DSx10 + BX+DI
MOV CH, [BX+SI] ; move contents of the DS:BX+SI into CH
 Physical Address = DSx10 + BX+SI
MOV AH, [BP+DI] ; move contents of the SS:BP+SI into AH
 Physical Address = SSx10 + BP+DI
MOV [BP+SI], AL ; move contents of AL into SS:BP+SI
= SSx10 + BP+SI
 Moves a byte or word between a register and the memory location
addressed by an index or base register plus a displacement.
 The data in a segment of memory are addressed by adding the
displacement to the contents of a base or an index register (BP, BX, DI,
or SI).
 Examples:
MOV AX, [BX+4] ; move contents of DS:BX+4 into AX
 Physical Address = DSx10 + BX+4
MOV CH, [SI+5] ; move contents of the DS:SI+5 into CH
 Physical Address = DSx10 +SI+5
MOV AH, [DI+1] ; move contents of the DS:DI+1 into AH
 Physical Address = DSx10 + DI+1
MOV [BP+2], AL ; move contents of AL into SS:BP+2
= SSx10 + BP+2
 Example:
 Assume that DS = 4500, SS = 2000, BX = 2100, SI = 1486, DI =
 8500, BP= 7814, andAX = 2512. Show the exact physical memory location where
AX is stored in each of the following.All values are in hex.
1 MOV [BX+20], AX
2 MOV [SI+10], AX
3 MOV [DI+4], AX
4 MOV [BP+12], AX
 Solution:
 Physical Address = segment reg. x 10 + (offset reg.) +
displacement
1 DS:BX+20
2 DS:SI+10
3 DS:DI+4
4- SS:BP+12
location 47120 = (12) and 47121 = (25)
location 46496 = (12) and 46497 = (25 )
location 4D504 = (12) and 4D505 = (25)
location 27826 = (12) and 27827 = (25)
 The base relative-plus-index addressing mode is similar to the
base-plus-index addressing mode, but adds a displacement
besides using a base register and an index register to form the
memory address.
 This type of addressing mode often addresses a two-dimensional
array of memory data.
 The data in a segment of memory are addressed by adding the
displacement to the contents of a base and an index register (BP,
BX, DI, or SI).
 Examples:
MOV [BX+DI+1], AX ; move contents of AX into
DS:BX+DI+1
 Physical Address = DSx10 + BX+DI+1H
MOV AX, [BX+SI+10]; move contents of the DS:BX+SI+10
into AX
PhysicalAddress = DSx10 + BX+SI+10H
MOV AH, [BP+DI+3] ; move contents of the SS:BP+SI+3
into AH
 Physical Address = SSx10 + BP+DI+3H
MOV [BP+SI+6], AL ; move contents of AL into
SS:BP+SI+6
 Physical Address = SSx10 + BP+SI+6
MOV AX, FILE[BX+DI] ; move contents of the
DS:FILE+BX+DI into AX
 Physical Address = DSx10 + BX+DI+FILE
MOV LIST[BP+SI+4], DH ; move contents of DH into
SS:LIST+BP+SI+4
Address = SSx10 +LIST+ BP+SI+4
Segment Register CS DS ES SS
Offset Register IP SI, DI, BX SI, DI, BX SP, BP
The following Table provides a summary of the
offset registers that can be used with the four
segment registers of the 8086
8086 add mod

More Related Content

What's hot

Notes 8086 instruction format
Notes 8086 instruction formatNotes 8086 instruction format
Notes 8086 instruction formatHarshitParkar6677
 
8086 instruction set
8086 instruction set8086 instruction set
8086 instruction setmeenakshi_l
 
Instruction sets of 8086
Instruction sets of 8086Instruction sets of 8086
Instruction sets of 8086Mahalakshmiv11
 
Assembly language (addition and subtraction)
Assembly language (addition and subtraction)Assembly language (addition and subtraction)
Assembly language (addition and subtraction)Muhammad Umar Farooq
 
Based and indexed addressing
Based and indexed addressingBased and indexed addressing
Based and indexed addressingJaveria Yaqoob
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086Vijay Kumar
 
10 8086 instruction set
10 8086 instruction set10 8086 instruction set
10 8086 instruction setShivam Singhal
 
0015.register allocation-graph-coloring
0015.register allocation-graph-coloring0015.register allocation-graph-coloring
0015.register allocation-graph-coloringsean chen
 
Instruction Set of 8086 Microprocessor
Instruction Set of 8086 MicroprocessorInstruction Set of 8086 Microprocessor
Instruction Set of 8086 MicroprocessorAshita Agrawal
 
Lecture 17 Iterative Deepening a star algorithm
Lecture 17 Iterative Deepening a star algorithmLecture 17 Iterative Deepening a star algorithm
Lecture 17 Iterative Deepening a star algorithmHema Kashyap
 
8086 instruction set
8086 instruction set8086 instruction set
8086 instruction setjemimajerome
 

What's hot (20)

Notes 8086 instruction format
Notes 8086 instruction formatNotes 8086 instruction format
Notes 8086 instruction format
 
8086 instruction set
8086 instruction set8086 instruction set
8086 instruction set
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
 
Lecture 11
Lecture 11Lecture 11
Lecture 11
 
Instruction sets of 8086
Instruction sets of 8086Instruction sets of 8086
Instruction sets of 8086
 
Assembly language (addition and subtraction)
Assembly language (addition and subtraction)Assembly language (addition and subtraction)
Assembly language (addition and subtraction)
 
Based and indexed addressing
Based and indexed addressingBased and indexed addressing
Based and indexed addressing
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
Assembly Language -I
Assembly Language -IAssembly Language -I
Assembly Language -I
 
10 8086 instruction set
10 8086 instruction set10 8086 instruction set
10 8086 instruction set
 
0015.register allocation-graph-coloring
0015.register allocation-graph-coloring0015.register allocation-graph-coloring
0015.register allocation-graph-coloring
 
8086 instruction set
8086 instruction set8086 instruction set
8086 instruction set
 
Addressing modes
Addressing  modesAddressing  modes
Addressing modes
 
Instruction Set of 8086 Microprocessor
Instruction Set of 8086 MicroprocessorInstruction Set of 8086 Microprocessor
Instruction Set of 8086 Microprocessor
 
Addressing mode
Addressing modeAddressing mode
Addressing mode
 
Lecture 17 Iterative Deepening a star algorithm
Lecture 17 Iterative Deepening a star algorithmLecture 17 Iterative Deepening a star algorithm
Lecture 17 Iterative Deepening a star algorithm
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 
Chapter4.3 4-mikroprocessor
Chapter4.3 4-mikroprocessorChapter4.3 4-mikroprocessor
Chapter4.3 4-mikroprocessor
 
8085 is details
8085 is details8085 is details
8085 is details
 
8086 instruction set
8086 instruction set8086 instruction set
8086 instruction set
 

Similar to 8086 add mod

8086addressingmodes-200319141110.pdf
8086addressingmodes-200319141110.pdf8086addressingmodes-200319141110.pdf
8086addressingmodes-200319141110.pdfTanmoyMondal89
 
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
 
Addressing mode of 80286 microprocessor
Addressing mode of 80286 microprocessorAddressing mode of 80286 microprocessor
Addressing mode of 80286 microprocessorpal bhumit
 
Mastering Assembly Language: Programming with 8086
Mastering Assembly Language: Programming with 8086Mastering Assembly Language: Programming with 8086
Mastering Assembly Language: Programming with 8086sravanithonta79
 
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
 
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
 
Assembly Language Lecture 4
Assembly Language Lecture 4Assembly Language Lecture 4
Assembly Language Lecture 4Motaz Saad
 
1.ADDRESSING MODES OF 8086.ppt
1.ADDRESSING MODES OF 8086.ppt1.ADDRESSING MODES OF 8086.ppt
1.ADDRESSING MODES OF 8086.pptyuvaraaj7
 
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
 
Addressing modes of 8086 - Binu Joy
Addressing modes of 8086 - Binu JoyAddressing modes of 8086 - Binu Joy
Addressing modes of 8086 - Binu JoyBinu Joy
 
Microprocessor 8086-lab-mannual
Microprocessor 8086-lab-mannualMicroprocessor 8086-lab-mannual
Microprocessor 8086-lab-mannualyeshwant gadave
 
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
 
8086 instructions
8086 instructions8086 instructions
8086 instructionsRavi Anand
 
1.ADDRESSING MODES OF 8086.ppt
1.ADDRESSING MODES OF 8086.ppt1.ADDRESSING MODES OF 8086.ppt
1.ADDRESSING MODES OF 8086.pptyuvaraaj7
 
Topic 6 - Programming in Assembly Language_230517_115118.pdf
Topic 6 - Programming in Assembly Language_230517_115118.pdfTopic 6 - Programming in Assembly Language_230517_115118.pdf
Topic 6 - Programming in Assembly Language_230517_115118.pdfezaldeen2013
 

Similar to 8086 add mod (20)

8086addressingmodes-200319141110.pdf
8086addressingmodes-200319141110.pdf8086addressingmodes-200319141110.pdf
8086addressingmodes-200319141110.pdf
 
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)
 
Addressing mode of 80286 microprocessor
Addressing mode of 80286 microprocessorAddressing mode of 80286 microprocessor
Addressing mode of 80286 microprocessor
 
Chapter 1 archietecture of 8086
Chapter 1 archietecture of 8086Chapter 1 archietecture of 8086
Chapter 1 archietecture of 8086
 
Mastering Assembly Language: Programming with 8086
Mastering Assembly Language: Programming with 8086Mastering Assembly Language: Programming with 8086
Mastering Assembly Language: Programming with 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
 
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
 
Assembly Language Lecture 4
Assembly Language Lecture 4Assembly Language Lecture 4
Assembly Language Lecture 4
 
mm_1.pdf
mm_1.pdfmm_1.pdf
mm_1.pdf
 
1.ADDRESSING MODES OF 8086.ppt
1.ADDRESSING MODES OF 8086.ppt1.ADDRESSING MODES OF 8086.ppt
1.ADDRESSING MODES OF 8086.ppt
 
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
 
Chapter 3 programming concepts-ii
Chapter 3  programming concepts-iiChapter 3  programming concepts-ii
Chapter 3 programming concepts-ii
 
Addressing modes of 8086 - Binu Joy
Addressing modes of 8086 - Binu JoyAddressing modes of 8086 - Binu Joy
Addressing modes of 8086 - Binu Joy
 
Microprocessor 8086-lab-mannual
Microprocessor 8086-lab-mannualMicroprocessor 8086-lab-mannual
Microprocessor 8086-lab-mannual
 
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
 
Chapter3.1 3-mikroprocessor
Chapter3.1 3-mikroprocessorChapter3.1 3-mikroprocessor
Chapter3.1 3-mikroprocessor
 
8086 instructions
8086 instructions8086 instructions
8086 instructions
 
1.ADDRESSING MODES OF 8086.ppt
1.ADDRESSING MODES OF 8086.ppt1.ADDRESSING MODES OF 8086.ppt
1.ADDRESSING MODES OF 8086.ppt
 
Topic 6 - Programming in Assembly Language_230517_115118.pdf
Topic 6 - Programming in Assembly Language_230517_115118.pdfTopic 6 - Programming in Assembly Language_230517_115118.pdf
Topic 6 - Programming in Assembly Language_230517_115118.pdf
 

More from Mohansonale1

More from Mohansonale1 (6)

8259
82598259
8259
 
Arch 8086
Arch 8086Arch 8086
Arch 8086
 
Pin8086
Pin8086Pin8086
Pin8086
 
8086 ppt
8086 ppt8086 ppt
8086 ppt
 
Memory comp
Memory compMemory comp
Memory comp
 
Process.org
Process.orgProcess.org
Process.org
 

Recently uploaded

Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...Call Girls in Nagpur High Profile
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 

Recently uploaded (20)

Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 

8086 add mod

  • 1.
  • 2.  Select the appropriate addressing mode to accomplish a given task.  Detail the difference between addressing memory data using real mode and protected mode operation.  Describe the sequence of events that place data onto the stack or remove data from the stack.  Explain how a data structure is placed in memory and used with software.
  • 3.  An addressing mode means the method by which an operand can be specified in a register or a memory location  8086provide a seven Addressing Modes: (1) Register Addressing (2) Immediate Addressing (3) Direct Addressing (4) Register Indirect Addressing (5) Based Indexed Addressing (6) Register Relative Addressing (7) Relative Based Indexed Addressing
  • 4. 8-bit 8-bit 8-bit OP CODE OPERAND byte 1 to 2 byte  An opcode is a short of “operation code”  An opcede is a singe instruction can be executed by the CPU. In machine language it is a binary or hexadecimal value such as B7 loaded into the instruction register.  In assembly language mnemonic form an opcode is a command such as MOV or ADD or JMP.  Example: MOV AX, 1000H ; MOV is the opcode. ; AX (register) is an operand.  Operands are manipulated by the opcode. In this example, the operands are the register AX and the value 1000H.
  • 5.  Transfers a copy of a byte or word from the source register or memory location to the destination register or memory location.  Use of registers to hold the data to be manipulated  Memory is not accessed when this addressing mode is executed  Example: MOV BX, DX MOV ES, AX ADD AL, BH ; copy the contents of DX into BX ; copy the contents of AX into ES ; add the contents of BH to contents of AL destination registers must have the same size
  • 6.
  • 7.  Transfers the source, an immediate byte or word of data, into the destination register or memory location  The source operand is a constant  The operand comes immediately after the opcode  For this reason, this addressing mode executes quickly  Immediate addressing mode can be used to load information into any of the registers except the segment registers and flag registers.
  • 8.  Example: MOV AX, 2550H MOV CX, 625 MOV BL, 40H ; move 2550H into AX ; load the decimal value 625 into CX ; load 40H into BL  The data must first be moved to a general-purpose register and then to the segment register.  Example: MOV AX, 2550H MOV DS, AX MOV DS, 0123H ; illegal instruction!
  • 9.
  • 10. Moves a byte or word between a memory location and a register. The data is in some memory location(s) and the address of the data in memory comes immediately after the instruction This address is the offset address Example: MOV AX, [2400] ; move contents of DS:2400H into AX The physical address is calculated by combining the contents of offset location 2400 with DS
  • 11.  Example: Find the physical address of the memory location and its contents after the execution of the following, assuming that DS = 1512H. AL, 3BH [3518], AL MOV MOV Sol ution :  First 3BH is copied into AL,  Then in line two, the contents of AL are moved to logical address DS:3518 which is 1512:3518.  Shifting DS left and adding it to the offset gives the physical address of 18638H (15120H + 3518H = 18638H).  After the execution of the second instruction, the memory Prof. Fayleoz Fc. aMa.tEil-oSonusy with address 18638H will contain the value 3BH.
  • 12.
  • 13. Transfers a byte or word between a register and a memory location addressed by an index or base register The address of the memory location where the operand resides is held by a register The registers used for this purpose are SI, DI, and BX They must be combined with DS in order to generate the 20-bit physical address.
  • 14. Example: MOV AX, [BX] ; moves into AX the contents of the memory location pointed to by DS:BX, 1000:1234 The physical address is calculated as 1000x10+1234=11234H The same rules apply when using register SI or DI. Example: MOV CL, [SI] MOV [DI], AH ; move contents of DS:SI into CL ; move contents of AH into DS:DI
  • 15.  Example:  Assume that DS = 1120, SI = 2498, and AX = 17FE Show the contents of memory locations after the execution of MOV [SI], AX ; move contents of AX into DS:SI  Solution: The contents of AX are moved into memory locations with logical address DS:SI and DS:SI + 1; The physical address starts at DS (shifted left) + SI = 13698. According to the little endian convention, Low address 13698H contains FE, the low byte, High address 13699H will contain 17, the high byte.
  • 16.
  • 17.  Transfers a byte or word between a register and the memory location addressed by a base register (BP or BX) plus an index register (DI or SI).  Combining based and indexed addressing modes.  One base register and one index register are used.  Examples: MOV [BX+DI], CL ; move contents of CL into DS:BX+DI  Physical Address = DSx10 + BX+DI MOV CH, [BX+SI] ; move contents of the DS:BX+SI into CH  Physical Address = DSx10 + BX+SI MOV AH, [BP+DI] ; move contents of the SS:BP+SI into AH  Physical Address = SSx10 + BP+DI MOV [BP+SI], AL ; move contents of AL into SS:BP+SI = SSx10 + BP+SI
  • 18.
  • 19.  Moves a byte or word between a register and the memory location addressed by an index or base register plus a displacement.  The data in a segment of memory are addressed by adding the displacement to the contents of a base or an index register (BP, BX, DI, or SI).  Examples: MOV AX, [BX+4] ; move contents of DS:BX+4 into AX  Physical Address = DSx10 + BX+4 MOV CH, [SI+5] ; move contents of the DS:SI+5 into CH  Physical Address = DSx10 +SI+5 MOV AH, [DI+1] ; move contents of the DS:DI+1 into AH  Physical Address = DSx10 + DI+1 MOV [BP+2], AL ; move contents of AL into SS:BP+2 = SSx10 + BP+2
  • 20.  Example:  Assume that DS = 4500, SS = 2000, BX = 2100, SI = 1486, DI =  8500, BP= 7814, andAX = 2512. Show the exact physical memory location where AX is stored in each of the following.All values are in hex. 1 MOV [BX+20], AX 2 MOV [SI+10], AX 3 MOV [DI+4], AX 4 MOV [BP+12], AX  Solution:  Physical Address = segment reg. x 10 + (offset reg.) + displacement 1 DS:BX+20 2 DS:SI+10 3 DS:DI+4 4- SS:BP+12 location 47120 = (12) and 47121 = (25) location 46496 = (12) and 46497 = (25 ) location 4D504 = (12) and 4D505 = (25) location 27826 = (12) and 27827 = (25)
  • 21.
  • 22.  The base relative-plus-index addressing mode is similar to the base-plus-index addressing mode, but adds a displacement besides using a base register and an index register to form the memory address.  This type of addressing mode often addresses a two-dimensional array of memory data.  The data in a segment of memory are addressed by adding the displacement to the contents of a base and an index register (BP, BX, DI, or SI).  Examples: MOV [BX+DI+1], AX ; move contents of AX into DS:BX+DI+1  Physical Address = DSx10 + BX+DI+1H MOV AX, [BX+SI+10]; move contents of the DS:BX+SI+10 into AX PhysicalAddress = DSx10 + BX+SI+10H
  • 23. MOV AH, [BP+DI+3] ; move contents of the SS:BP+SI+3 into AH  Physical Address = SSx10 + BP+DI+3H MOV [BP+SI+6], AL ; move contents of AL into SS:BP+SI+6  Physical Address = SSx10 + BP+SI+6 MOV AX, FILE[BX+DI] ; move contents of the DS:FILE+BX+DI into AX  Physical Address = DSx10 + BX+DI+FILE MOV LIST[BP+SI+4], DH ; move contents of DH into SS:LIST+BP+SI+4 Address = SSx10 +LIST+ BP+SI+4
  • 24.
  • 25. Segment Register CS DS ES SS Offset Register IP SI, DI, BX SI, DI, BX SP, BP The following Table provides a summary of the offset registers that can be used with the four segment registers of the 8086