SlideShare a Scribd company logo
1 of 57
Introduction to 8086 
Microprocessor
Architecture of 8086 
 The architecture of 8086 includes 
 Arithmetic Logic Unit (ALU) 
 Flags 
 General registers 
 Instruction byte queue 
 Segment registers
EU & BIU 
 The 8086 CPU logic has been partitioned into two 
functional units namely Bus Interface Unit (BIU) and 
Execution Unit (EU) 
 The major reason for this separation is to increase 
the processing speed of the processor 
 The BIU has to interact with memory and input and 
output devices in fetching the instructions and data 
required by the EU 
 EU is responsible for executing the instructions of 
the programs and to carry out the required 
processing
EU & BIU
Architecture Diagram
Execution Unit 
 The Execution Unit (EU) has 
 Control unit 
 Instruction decoder 
 Arithmetic and Logical Unit (ALU) 
 General registers 
 Flag register 
 Pointers 
 Index registers
Execution Unit 
 Control unit is responsible for the co-ordination 
of all other units of the processor 
 ALU performs various arithmetic and logical 
operations over the data 
 The instruction decoder translates the 
instructions fetched from the memory into a 
series of actions that are carried out by the 
EU
Execution Unit - Registers 
 General registers are used for temporary 
storage and manipulation of data and 
instructions 
 Accumulator register consists of two 8-bit 
registers AL and AH, which can be combined 
together and used as a 16-bit register AX 
 Accumulator can be used for I/O operations 
and string manipulation
Execution Unit - Registers 
 Base register consists of two 8-bit registers BL and 
BH, which can be combined together and used as a 
16-bit register BX 
 BX register usually contains a data pointer used for 
based, based indexed or register indirect addressing 
 Count register consists of two 8-bit registers CL and 
CH, which can be combined together and used as a 
16-bit register CX 
 Count register can be used as a counter in string 
manipulation and shift/rotate instructions
Execution Unit - Registers 
 Data register consists of two 8-bit registers 
DL and DH, which can be combined together 
and used as a 16-bit register DX 
 Data register can be used as a port number 
in I/O operations 
 In integer 32-bit multiply and divide 
instruction the DX register contains high-order 
word of the initial or resulting number
Execution Unit - Registers
Execution Unit - Flags
Execution Unit - Flags 
 Overflow Flag (OF) - set if the result is too large 
positive number, or is too small negative number to 
fit into destination operand 
 Direction Flag (DF) - if set then string manipulation 
instructions will auto-decrement index registers. If 
cleared then the index registers will be auto-incremented 
 Interrupt-enable Flag (IF) - setting this bit enables 
maskable interrupts 
 Single-step Flag (TF) - if set then single-step 
interrupt will occur after the next instruction
Execution Unit - Flags 
 Sign Flag (SF) - set if the most significant bit of the 
result is set. 
 Zero Flag (ZF) - set if the result is zero. 
 Auxiliary carry Flag (AF) - set if there was a carry 
from or borrow to bits 0-3 in the AL register. 
 Parity Flag (PF) - set if parity (the number of "1" bits) 
in the low-order byte of the result is even. 
 Carry Flag (CF) - set if there was a carry from or 
borrow to the most significant bit during last result 
calculation
Execution Unit - Flags
Execution Unit - Pointers 
 Stack Pointer (SP) is a 16-bit register pointing to program stack 
 Base Pointer (BP) is a 16-bit register pointing to data in stack 
segment. BP register is usually used for based, based indexed or 
register indirect addressing. 
 Source Index (SI) is a 16-bit register. SI is used for indexed, 
based indexed and register indirect addressing, as well as a 
source data addresses in string manipulation instructions. 
 Destination Index (DI) is a 16-bit register. DI is used for indexed, 
based indexed and register indirect addressing, as well as a 
destination data addresses in string manipulation instructions.
Execution Unit - Pointers
Bus Interface Unit 
 The BIU has 
 Instruction stream byte queue 
 A set of segment registers 
 Instruction pointer
BIU – Instruction Byte Queue 
 8086 instructions vary from 1 to 6 bytes 
 Therefore fetch and execution are taking 
place concurrently in order to improve the 
performance of the microprocessor 
 The BIU feeds the instruction stream to the 
execution unit through a 6 byte prefetch 
queue 
 This prefetch queue can be considered as a 
form of loosely coupled pipelining
BIU – Instruction Byte Queue 
 Execution and decoding of certain instructions do 
not require the use of buses 
 While such instructions are executed, the BIU 
fetches up to six instruction bytes for the following 
instructions (the subsequent instructions) 
 The BIU store these prefetched bytes in a first-in-first 
out register by name instruction byte queue 
 When the EU is ready for its next instruction, it 
simply reads the instruction byte(s) for the 
instruction from the queue in BIU
Segment: Offset Notation 
 The total addressable memory size is 1MB 
Most of the processor instructions use 16-bit 
pointers the processor can effectively 
address only 64 KB of memory 
 To access memory outside of 64 KB the 
CPU uses special segment registers to 
specify where the code, stack and data 64 
KB segments are positioned within 1 MB of 
memory
Segment: Offset Notation 
 A simple scheme would be to order the bytes in a 
serial fashion and number them from 0 (or 1) to the 
end of memory 
 The scheme used in the 8086 is called 
segmentation 
 Every address has two parts, a SEGMENT and an 
OFFSET (Segmnet:Offset ) 
 The segment indicates the starting of a 64 kilobyte 
portion of memory, in multiples of 16 
 The offset indicates the position within the 64k 
portion 
 Absolute address = (segment * 16) + offset
Segment Registers 
 The memory of 8086 is divided into 4 
segments namely 
 Code segment (program memory) 
 Data segment (data memory) 
 Stack memory (stack segment) 
 Extra memory (extra segment)
Different Areas in Memory 
 Program memory – Program can be located 
anywhere in memory 
 Data memory – The processor can access data in 
any one out of 4 available segments 
 Stack memory – A stack is a section of the memory 
set aside to store addresses and data while a 
subprogram executes 
 Extra segment – This segment is also similar to data 
memory where additional data may be stored and 
maintained
Segment Registers 
 Code Segment (CS) register is a 16-bit register 
containing address of 64 KB segment with 
processor instructions 
 The processor uses CS segment for all accesses to 
instructions referenced by instruction pointer (IP) 
register 
 Stack Segment (SS) register is a 16-bit register 
containing address of 64KB segment with program 
stack 
 By default, the processor assumes that all data 
referenced by the stack pointer (SP) and base 
pointer (BP) registers is located in the stack 
segment
Segment Registers 
 Data Segment (DS) register is a 16-bit register 
containing address of 64KB segment with program 
data 
 By default, the processor assumes that all data 
referenced by general registers (AX, BX, CX, DX) 
and index register (SI, DI) is located in the data 
segment 
 Extra Segment (ES) register is a 16-bit register 
containing address of 64KB segment, usually with 
program data 
 By default, the processor assumes that the DI 
register references the ES segment in string 
manipulation instructions
Segment Registers
Pin Diagram
Immediate addressing 
When one of the operand is specified as part of the 
instruction, the addressing mode is known as 
immediate addressing. 
MOV CX, 2345H 
SUB AL, 24H
Register addressing 
When both destination and source operands are specified 
by the names of the registers, the addressing mode is 
known as register addressing 
MOV AX,BX 
AND AL,BL
Direct addressing 
When one of the operand addresses is specified as part of the 
instruction, the addressing mode is known as direct addressing 
mode
Register indirect addressing 
When one of the operand addresses is specified via a register, 
the addressing mode is known as register indirect addressing 
mode.
Based Indexed register addressing
Register relative addressing 
When one of the operand addresses is specified via a register and 
a relative displacement, the addressing mode is known as register 
relative addressing mode.
String addressing 
In this, the operands are not specified in instruction rather they 
are implicitly available in the registers.
Data Transfer Instructions
Data Transfer Instructions
Arithmetic Instructions
Arithmetic Instructions
Logical Instructions
String Instructions
Program Transfer Instructions
Program Transfer Instructions
Processor Control Instructions
Assembler Directives 
 Assembler directives give instruction to the 
assembler where as other instructions discussed in 
the above section give instruction to the 8086 
microprocessor 
 Assembler directives are specific for a particular 
assembler 
 However all the popular assemblers like the Intel 
8086 macro assembler, the turbo assembler and the 
IBM macro assembler use common assembler 
directives
Important Directives 
 The ASSUME directive tell the assembler the name of the logical 
segment it should use for a specified segment 
 The DB directive is used to declare a byte-type variable or to set 
aside one or more storage locations of type byte in memory 
(Define Byte) 
 The DD directive is used to declare a variable of type doubleword 
or to reserve memory locations which can be accessed as type 
doubleword (Define Doubleword) 
 The DQ directive is used to tell the assembler to declare a 
variable 4 words in length or to reverse 4 words of storage in 
memory (Define Quadword)
Important Directives 
 The ENDS directive is used with the name of 
a segment to indicate the end of that logical 
segment 
 The EQU is used to give a name to some 
value or symbol
Assembly Language Program 
 Writing assembly language programs for 8086 is 
slightly different from that of writing assembly 
language programs for 8085 
 In addition to the instructions that are meant for 
solving the problem, some additional instructions 
are required to complete the programs 
 The purpose of these additional programs is to 
initialize various parts of the system, such as 
segment registers, flags and programmable port 
devices 
 Some of the instructions are to handle the stack of 
the 8086 based system
Assembly Language Program 
 Another purpose of these additional instructions is to 
handle the programmable peripheral devices such 
as ports, timers and controllers 
 The programmable peripheral interfaces should be 
assigned suitable control words to make them to 
function in the way as we expect 
 The best way to approach the initialization task is to 
make a checklist of all the registers, programmable 
devices and flags in the system we are working on
Assembly Language Program 
 An 8086 assembly language program has 
five columns namely 
 Address 
 Data or code 
 Labels 
 Mmnemonics 
 Operands 
 Comments
Assembly Language Program 
 The address column is used for the address 
or the offset of a code byte or a data byte 
 The actual code bytes or data bytes are put 
in the data or code column 
 A label is a name which represents an 
address referred to in a jump or call 
instruction 
 Labels are put in the labels column
Assembly Language Program 
 The operands column contains the registers, 
memory locations or data acted upon by the 
instructions 
 A comments column gives space to describe 
the function of the instruction for future 
reference

More Related Content

What's hot

8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architectureprasadpawaskar
 
8086 MICROPROCESSOR
8086 MICROPROCESSOR8086 MICROPROCESSOR
8086 MICROPROCESSORAkhila Rahul
 
Programmers model of 8086
Programmers model of 8086Programmers model of 8086
Programmers model of 8086KunalPatel260
 
8086 Microprocessor powerpoint
8086  Microprocessor  powerpoint8086  Microprocessor  powerpoint
8086 Microprocessor powerpointRandhir Kumar
 
Salient featurs of 80386
Salient featurs of 80386Salient featurs of 80386
Salient featurs of 80386aviban
 
8051 architecture
8051 architecture8051 architecture
8051 architecturesb108ec
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Jismy .K.Jose
 
Presentation on 8086 microprocessor
Presentation on 8086 microprocessorPresentation on 8086 microprocessor
Presentation on 8086 microprocessorDiponkor Bala
 
8086 pin details
8086 pin details8086 pin details
8086 pin detailsAJAL A J
 
Evolution of microprocessors and 80486 Microprocessor.
Evolution of microprocessors and 80486 Microprocessor.Evolution of microprocessors and 80486 Microprocessor.
Evolution of microprocessors and 80486 Microprocessor.Ritwik MG
 
Architecture of 8086
Architecture of 8086Architecture of 8086
Architecture of 8086Nikhil Kumar
 
Architecture of 8086 microprocessor
Architecture of  8086 microprocessorArchitecture of  8086 microprocessor
Architecture of 8086 microprocessorAnirban Saha Anik
 
flag register of 8086
flag register of 8086flag register of 8086
flag register of 8086asrithak
 
8086 modes
8086 modes8086 modes
8086 modesPDFSHARE
 

What's hot (20)

8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessor
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architecture
 
8086
80868086
8086
 
8086 MICROPROCESSOR
8086 MICROPROCESSOR8086 MICROPROCESSOR
8086 MICROPROCESSOR
 
Programmers model of 8086
Programmers model of 8086Programmers model of 8086
Programmers model of 8086
 
8086 Microprocessor powerpoint
8086  Microprocessor  powerpoint8086  Microprocessor  powerpoint
8086 Microprocessor powerpoint
 
Salient featurs of 80386
Salient featurs of 80386Salient featurs of 80386
Salient featurs of 80386
 
8051 architecture
8051 architecture8051 architecture
8051 architecture
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086
 
Presentation on 8086 microprocessor
Presentation on 8086 microprocessorPresentation on 8086 microprocessor
Presentation on 8086 microprocessor
 
8086 pin details
8086 pin details8086 pin details
8086 pin details
 
Interrupts of microprocessor 8085
Interrupts of microprocessor  8085Interrupts of microprocessor  8085
Interrupts of microprocessor 8085
 
Evolution of microprocessors and 80486 Microprocessor.
Evolution of microprocessors and 80486 Microprocessor.Evolution of microprocessors and 80486 Microprocessor.
Evolution of microprocessors and 80486 Microprocessor.
 
Architecture of 8086
Architecture of 8086Architecture of 8086
Architecture of 8086
 
Instruction formats-in-8086
Instruction formats-in-8086Instruction formats-in-8086
Instruction formats-in-8086
 
Module 1 8086
Module 1 8086Module 1 8086
Module 1 8086
 
Architecture of 8086 microprocessor
Architecture of  8086 microprocessorArchitecture of  8086 microprocessor
Architecture of 8086 microprocessor
 
flag register of 8086
flag register of 8086flag register of 8086
flag register of 8086
 
8086 memory segmentation
8086 memory segmentation8086 memory segmentation
8086 memory segmentation
 
8086 modes
8086 modes8086 modes
8086 modes
 

Viewers also liked

Presentation on 8086 Microprocessor
Presentation  on   8086 MicroprocessorPresentation  on   8086 Microprocessor
Presentation on 8086 MicroprocessorNahian Ahmed
 
Linux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKBLinux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKBshimosawa
 
The Intel 8086 microprocessor
The Intel 8086 microprocessorThe Intel 8086 microprocessor
The Intel 8086 microprocessorGeorge Thomas
 
Sequential logics
Sequential logicsSequential logics
Sequential logicsfaiqikhan
 
Lesson 4 data processing
Lesson 4   data processingLesson 4   data processing
Lesson 4 data processingguevarra_2000
 
module 1 computer architecture diploma
 module 1 computer architecture diploma   module 1 computer architecture diploma
module 1 computer architecture diploma Manoharan Ragavan
 
Chapter4 Data Processing
Chapter4 Data ProcessingChapter4 Data Processing
Chapter4 Data ProcessingMuhammad Waqas
 
Computer Data Processing And Representation 4
Computer Data Processing And Representation   4Computer Data Processing And Representation   4
Computer Data Processing And Representation 4Amit Chandra
 
Computer Data Processing And Representation 4
Computer Data Processing And Representation   4Computer Data Processing And Representation   4
Computer Data Processing And Representation 4guestb912a3d
 
Truth tables presentation
Truth tables presentationTruth tables presentation
Truth tables presentationMujtaBa Khan
 
OCR GCSE Computing - Binary logic and Truth Tables
OCR GCSE Computing - Binary logic and Truth TablesOCR GCSE Computing - Binary logic and Truth Tables
OCR GCSE Computing - Binary logic and Truth Tablesnorthernkiwi
 
Truth tables
Truth tablesTruth tables
Truth tableswalkerlj
 
Flag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction setFlag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction setaviban
 
Registers and-common-bus
Registers and-common-busRegisters and-common-bus
Registers and-common-busAnuj Modi
 
8237 / 8257 DMA
8237 / 8257 DMA8237 / 8257 DMA
8237 / 8257 DMAAJAL A J
 
Computer architecture
Computer architectureComputer architecture
Computer architectureSanjeev Patel
 

Viewers also liked (20)

Presentation on 8086 Microprocessor
Presentation  on   8086 MicroprocessorPresentation  on   8086 Microprocessor
Presentation on 8086 Microprocessor
 
Linux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKBLinux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKB
 
The Intel 8086 microprocessor
The Intel 8086 microprocessorThe Intel 8086 microprocessor
The Intel 8086 microprocessor
 
Sequential logics
Sequential logicsSequential logics
Sequential logics
 
Lesson 4 data processing
Lesson 4   data processingLesson 4   data processing
Lesson 4 data processing
 
module 1 computer architecture diploma
 module 1 computer architecture diploma   module 1 computer architecture diploma
module 1 computer architecture diploma
 
Chapter4 Data Processing
Chapter4 Data ProcessingChapter4 Data Processing
Chapter4 Data Processing
 
Number Systems
Number  SystemsNumber  Systems
Number Systems
 
Computer Data Processing And Representation 4
Computer Data Processing And Representation   4Computer Data Processing And Representation   4
Computer Data Processing And Representation 4
 
Computer Data Processing And Representation 4
Computer Data Processing And Representation   4Computer Data Processing And Representation   4
Computer Data Processing And Representation 4
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
DATA PROCESSING
DATA PROCESSINGDATA PROCESSING
DATA PROCESSING
 
Truth tables presentation
Truth tables presentationTruth tables presentation
Truth tables presentation
 
OCR GCSE Computing - Binary logic and Truth Tables
OCR GCSE Computing - Binary logic and Truth TablesOCR GCSE Computing - Binary logic and Truth Tables
OCR GCSE Computing - Binary logic and Truth Tables
 
Truth tables
Truth tablesTruth tables
Truth tables
 
Flag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction setFlag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction set
 
Registers and-common-bus
Registers and-common-busRegisters and-common-bus
Registers and-common-bus
 
Interrupts
InterruptsInterrupts
Interrupts
 
8237 / 8257 DMA
8237 / 8257 DMA8237 / 8257 DMA
8237 / 8257 DMA
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 

Similar to intel 8086 introduction

introduction to Architecture of 8086 and it's application
introduction to Architecture of 8086 and it's applicationintroduction to Architecture of 8086 and it's application
introduction to Architecture of 8086 and it's applicationDrVikasMahor
 
26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architecture26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architectureSaurabh Jain
 
microprocessor_part_3_compressed_1588259301.pdf
microprocessor_part_3_compressed_1588259301.pdfmicroprocessor_part_3_compressed_1588259301.pdf
microprocessor_part_3_compressed_1588259301.pdfssuserd21262
 
1326 Introduction To 8086 Microprocessor
1326 Introduction To 8086 Microprocessor1326 Introduction To 8086 Microprocessor
1326 Introduction To 8086 Microprocessortechbed
 
Microprocessor Architecture.pptx
Microprocessor Architecture.pptxMicroprocessor Architecture.pptx
Microprocessor Architecture.pptxCaptain Price
 
3 organization of intel 8086
3 organization of intel 80863 organization of intel 8086
3 organization of intel 8086ELIMENG
 
N_Asm Assembly registers (sol)
N_Asm Assembly registers (sol)N_Asm Assembly registers (sol)
N_Asm Assembly registers (sol)Selomon birhane
 
physical_address segmentation.pdf
physical_address segmentation.pdfphysical_address segmentation.pdf
physical_address segmentation.pdfSwapnil511014
 
8086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp018086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp01jemimajerome
 
8086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp018086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp01destaw belay
 
8086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp018086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp01Siva Raman
 
Unit IV 8086 complete ppt, architecture and instruction set.pptx
Unit IV 8086 complete ppt, architecture and instruction set.pptxUnit IV 8086 complete ppt, architecture and instruction set.pptx
Unit IV 8086 complete ppt, architecture and instruction set.pptxDrVikasMahor
 
INTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSORINTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSORSagar Kuntumal
 

Similar to intel 8086 introduction (20)

Intel 8086
Intel 8086 Intel 8086
Intel 8086
 
Advanced micro -processor
Advanced micro -processorAdvanced micro -processor
Advanced micro -processor
 
Arch 8086
Arch 8086Arch 8086
Arch 8086
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
introduction to Architecture of 8086 and it's application
introduction to Architecture of 8086 and it's applicationintroduction to Architecture of 8086 and it's application
introduction to Architecture of 8086 and it's application
 
26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architecture26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architecture
 
microprocessor_part_3_compressed_1588259301.pdf
microprocessor_part_3_compressed_1588259301.pdfmicroprocessor_part_3_compressed_1588259301.pdf
microprocessor_part_3_compressed_1588259301.pdf
 
1326 Introduction To 8086 Microprocessor
1326 Introduction To 8086 Microprocessor1326 Introduction To 8086 Microprocessor
1326 Introduction To 8086 Microprocessor
 
Amp
AmpAmp
Amp
 
Microprocessor Architecture.pptx
Microprocessor Architecture.pptxMicroprocessor Architecture.pptx
Microprocessor Architecture.pptx
 
3 organization of intel 8086
3 organization of intel 80863 organization of intel 8086
3 organization of intel 8086
 
N_Asm Assembly registers (sol)
N_Asm Assembly registers (sol)N_Asm Assembly registers (sol)
N_Asm Assembly registers (sol)
 
lec 2.pptx
lec 2.pptxlec 2.pptx
lec 2.pptx
 
physical_address segmentation.pdf
physical_address segmentation.pdfphysical_address segmentation.pdf
physical_address segmentation.pdf
 
8086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp018086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp01
 
8086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp018086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp01
 
8086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp018086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp01
 
Unit IV 8086 complete ppt, architecture and instruction set.pptx
Unit IV 8086 complete ppt, architecture and instruction set.pptxUnit IV 8086 complete ppt, architecture and instruction set.pptx
Unit IV 8086 complete ppt, architecture and instruction set.pptx
 
INTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSORINTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSOR
 
8086ppt
8086ppt8086ppt
8086ppt
 

Recently uploaded

The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
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
 
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
 
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
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
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
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
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
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
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
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 

Recently uploaded (20)

The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
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
 
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
 
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
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
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
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
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
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
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
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 

intel 8086 introduction

  • 1. Introduction to 8086 Microprocessor
  • 2. Architecture of 8086  The architecture of 8086 includes  Arithmetic Logic Unit (ALU)  Flags  General registers  Instruction byte queue  Segment registers
  • 3. EU & BIU  The 8086 CPU logic has been partitioned into two functional units namely Bus Interface Unit (BIU) and Execution Unit (EU)  The major reason for this separation is to increase the processing speed of the processor  The BIU has to interact with memory and input and output devices in fetching the instructions and data required by the EU  EU is responsible for executing the instructions of the programs and to carry out the required processing
  • 6. Execution Unit  The Execution Unit (EU) has  Control unit  Instruction decoder  Arithmetic and Logical Unit (ALU)  General registers  Flag register  Pointers  Index registers
  • 7. Execution Unit  Control unit is responsible for the co-ordination of all other units of the processor  ALU performs various arithmetic and logical operations over the data  The instruction decoder translates the instructions fetched from the memory into a series of actions that are carried out by the EU
  • 8. Execution Unit - Registers  General registers are used for temporary storage and manipulation of data and instructions  Accumulator register consists of two 8-bit registers AL and AH, which can be combined together and used as a 16-bit register AX  Accumulator can be used for I/O operations and string manipulation
  • 9. Execution Unit - Registers  Base register consists of two 8-bit registers BL and BH, which can be combined together and used as a 16-bit register BX  BX register usually contains a data pointer used for based, based indexed or register indirect addressing  Count register consists of two 8-bit registers CL and CH, which can be combined together and used as a 16-bit register CX  Count register can be used as a counter in string manipulation and shift/rotate instructions
  • 10. Execution Unit - Registers  Data register consists of two 8-bit registers DL and DH, which can be combined together and used as a 16-bit register DX  Data register can be used as a port number in I/O operations  In integer 32-bit multiply and divide instruction the DX register contains high-order word of the initial or resulting number
  • 11. Execution Unit - Registers
  • 13. Execution Unit - Flags  Overflow Flag (OF) - set if the result is too large positive number, or is too small negative number to fit into destination operand  Direction Flag (DF) - if set then string manipulation instructions will auto-decrement index registers. If cleared then the index registers will be auto-incremented  Interrupt-enable Flag (IF) - setting this bit enables maskable interrupts  Single-step Flag (TF) - if set then single-step interrupt will occur after the next instruction
  • 14. Execution Unit - Flags  Sign Flag (SF) - set if the most significant bit of the result is set.  Zero Flag (ZF) - set if the result is zero.  Auxiliary carry Flag (AF) - set if there was a carry from or borrow to bits 0-3 in the AL register.  Parity Flag (PF) - set if parity (the number of "1" bits) in the low-order byte of the result is even.  Carry Flag (CF) - set if there was a carry from or borrow to the most significant bit during last result calculation
  • 16. Execution Unit - Pointers  Stack Pointer (SP) is a 16-bit register pointing to program stack  Base Pointer (BP) is a 16-bit register pointing to data in stack segment. BP register is usually used for based, based indexed or register indirect addressing.  Source Index (SI) is a 16-bit register. SI is used for indexed, based indexed and register indirect addressing, as well as a source data addresses in string manipulation instructions.  Destination Index (DI) is a 16-bit register. DI is used for indexed, based indexed and register indirect addressing, as well as a destination data addresses in string manipulation instructions.
  • 17. Execution Unit - Pointers
  • 18. Bus Interface Unit  The BIU has  Instruction stream byte queue  A set of segment registers  Instruction pointer
  • 19. BIU – Instruction Byte Queue  8086 instructions vary from 1 to 6 bytes  Therefore fetch and execution are taking place concurrently in order to improve the performance of the microprocessor  The BIU feeds the instruction stream to the execution unit through a 6 byte prefetch queue  This prefetch queue can be considered as a form of loosely coupled pipelining
  • 20. BIU – Instruction Byte Queue  Execution and decoding of certain instructions do not require the use of buses  While such instructions are executed, the BIU fetches up to six instruction bytes for the following instructions (the subsequent instructions)  The BIU store these prefetched bytes in a first-in-first out register by name instruction byte queue  When the EU is ready for its next instruction, it simply reads the instruction byte(s) for the instruction from the queue in BIU
  • 21. Segment: Offset Notation  The total addressable memory size is 1MB Most of the processor instructions use 16-bit pointers the processor can effectively address only 64 KB of memory  To access memory outside of 64 KB the CPU uses special segment registers to specify where the code, stack and data 64 KB segments are positioned within 1 MB of memory
  • 22. Segment: Offset Notation  A simple scheme would be to order the bytes in a serial fashion and number them from 0 (or 1) to the end of memory  The scheme used in the 8086 is called segmentation  Every address has two parts, a SEGMENT and an OFFSET (Segmnet:Offset )  The segment indicates the starting of a 64 kilobyte portion of memory, in multiples of 16  The offset indicates the position within the 64k portion  Absolute address = (segment * 16) + offset
  • 23. Segment Registers  The memory of 8086 is divided into 4 segments namely  Code segment (program memory)  Data segment (data memory)  Stack memory (stack segment)  Extra memory (extra segment)
  • 24. Different Areas in Memory  Program memory – Program can be located anywhere in memory  Data memory – The processor can access data in any one out of 4 available segments  Stack memory – A stack is a section of the memory set aside to store addresses and data while a subprogram executes  Extra segment – This segment is also similar to data memory where additional data may be stored and maintained
  • 25. Segment Registers  Code Segment (CS) register is a 16-bit register containing address of 64 KB segment with processor instructions  The processor uses CS segment for all accesses to instructions referenced by instruction pointer (IP) register  Stack Segment (SS) register is a 16-bit register containing address of 64KB segment with program stack  By default, the processor assumes that all data referenced by the stack pointer (SP) and base pointer (BP) registers is located in the stack segment
  • 26. Segment Registers  Data Segment (DS) register is a 16-bit register containing address of 64KB segment with program data  By default, the processor assumes that all data referenced by general registers (AX, BX, CX, DX) and index register (SI, DI) is located in the data segment  Extra Segment (ES) register is a 16-bit register containing address of 64KB segment, usually with program data  By default, the processor assumes that the DI register references the ES segment in string manipulation instructions
  • 29. Immediate addressing When one of the operand is specified as part of the instruction, the addressing mode is known as immediate addressing. MOV CX, 2345H SUB AL, 24H
  • 30. Register addressing When both destination and source operands are specified by the names of the registers, the addressing mode is known as register addressing MOV AX,BX AND AL,BL
  • 31. Direct addressing When one of the operand addresses is specified as part of the instruction, the addressing mode is known as direct addressing mode
  • 32.
  • 33. Register indirect addressing When one of the operand addresses is specified via a register, the addressing mode is known as register indirect addressing mode.
  • 34.
  • 36.
  • 37. Register relative addressing When one of the operand addresses is specified via a register and a relative displacement, the addressing mode is known as register relative addressing mode.
  • 38.
  • 39. String addressing In this, the operands are not specified in instruction rather they are implicitly available in the registers.
  • 40.
  • 50. Assembler Directives  Assembler directives give instruction to the assembler where as other instructions discussed in the above section give instruction to the 8086 microprocessor  Assembler directives are specific for a particular assembler  However all the popular assemblers like the Intel 8086 macro assembler, the turbo assembler and the IBM macro assembler use common assembler directives
  • 51. Important Directives  The ASSUME directive tell the assembler the name of the logical segment it should use for a specified segment  The DB directive is used to declare a byte-type variable or to set aside one or more storage locations of type byte in memory (Define Byte)  The DD directive is used to declare a variable of type doubleword or to reserve memory locations which can be accessed as type doubleword (Define Doubleword)  The DQ directive is used to tell the assembler to declare a variable 4 words in length or to reverse 4 words of storage in memory (Define Quadword)
  • 52. Important Directives  The ENDS directive is used with the name of a segment to indicate the end of that logical segment  The EQU is used to give a name to some value or symbol
  • 53. Assembly Language Program  Writing assembly language programs for 8086 is slightly different from that of writing assembly language programs for 8085  In addition to the instructions that are meant for solving the problem, some additional instructions are required to complete the programs  The purpose of these additional programs is to initialize various parts of the system, such as segment registers, flags and programmable port devices  Some of the instructions are to handle the stack of the 8086 based system
  • 54. Assembly Language Program  Another purpose of these additional instructions is to handle the programmable peripheral devices such as ports, timers and controllers  The programmable peripheral interfaces should be assigned suitable control words to make them to function in the way as we expect  The best way to approach the initialization task is to make a checklist of all the registers, programmable devices and flags in the system we are working on
  • 55. Assembly Language Program  An 8086 assembly language program has five columns namely  Address  Data or code  Labels  Mmnemonics  Operands  Comments
  • 56. Assembly Language Program  The address column is used for the address or the offset of a code byte or a data byte  The actual code bytes or data bytes are put in the data or code column  A label is a name which represents an address referred to in a jump or call instruction  Labels are put in the labels column
  • 57. Assembly Language Program  The operands column contains the registers, memory locations or data acted upon by the instructions  A comments column gives space to describe the function of the instruction for future reference