SlideShare uma empresa Scribd logo
1 de 39
Introduction to 8086/8088 Microprocesser
- General Facilities
- BIU and EU
- Data Registers
- Segment Registers
- Index Registers
- Pointer Registers
- Flag Register
- Memory Addressing
- Physical Memory Address Calculations.
8086 – Introduction
• 16 bit µp with 20 bit address bus & 16 bit data bus
• Can address up to 220 = 1 MB memory directly
• Can read or write 8 or 16 bit data
• 8088 - 8 bit data bus
• Internal architecture has two main units
• BIU - Bus Interface Unit
• EU – Execution Unit
• BIU and EU work simultaneously for instruction
execution and form 2 stage instruction pipeline.
• BIU – has bus interface logic, segment registers,
memory addressing logic and 6 byte instruction
queue.
• While EU is busy in instruction execution, BIU
fetches instruction from memory and stores them
in instruction queue.
• If EU executes a jump instruction
– Program control to be transferred to another location
then BIU
• Resets the queue
• Fetches instruction from new address
• Passes the instruction to EU
• Starts refilling the queue from new location
• Process is called pipeline flushing.
BIU of 8088
• 8088 – 4 byte instruction queue
• Each time there is empty space of 2 bytes or more
8086 BIU startes filling the queue.
• 8088 BIU fills the queue when there is empty space
of 1 byte.
Execution Unit (EU)
• Contains – instruction decoder, ALU, general purpose
registers, pointer registers, index registers, flag register
and control circuitary to execute instruction.
• EU is resposible for-
– Execution of instructions
– Providing address to BIU for fetching
data/instruction.
– Manipulating various registers as well as flag register.
• EU is almost completly isolated from outside world.
• BIU performs all bus operations for EU.
• Overlapped fetching and execution of instruction is
shown
It is assumed that
• Two µps i.e 2nd generation and 8086 execute the
instruction in same no. of clock cycles.
• Due to overlapping of fetch and excute, 8086/8088
is able to excute 3 instruction in lesser time but also
able to fetch 4th and 5th instruction.
• Register Set- 8086 has fourteen – 16 bit registers
• Data Registers
• Segment Registers
• Pointer & index register
• flag register
• Data Registers- Four sixteen bit AX,BX,CX,DX
• Or 8 – 8 bit registers
• AH AL BH BL CH CL DH DL
• AX- Primary Accumulator
• Input-Output operations through AX(or AL)
• Several string operations require one operand
to be in AX (or AL).
• 16 bit divide or multiply - AX has one word
operand (AL for 8 bit operation).
• 32 bit multiply or divide – AX holds lower order
word operand.
• BX – GPR (Genral Purpose Register) + Base Register
• CX – GPR + Count Register in multi iteration
instruction.
• DX – GPR + used in I/O instructions, multiply
& divide instructions.
Segment Registers
• concept of memory segmentation.
Memory divided into no. of parts called segments.
• In 8086, 1 MB physical memory can be divide into 4
types of segments.
• Starting address of each segment is placed in 16 bit
register
• CS – Code Segment Register.
• DS – Data Segment Register.
• SS – Stack Segment Register.
• ES – Extra Segment Register.
• Each segment has memory space of 64k byte
Index Registers
SI – Source Index Register
DI – Destination Index Register
• May be used as GPR. However main purpose is to
store address offset in case of – Indexed, Base
Indexed, and Relative Base Indexed addressing
modes
Pointer Registers
• Stack Pointer(SP) - provides access to stack top.
Holds offset address of stack top.
• Instruction Pointer(IP) - holds offset address of next
instruction to be executed. Like program counter.
• Base Pointer (BP) - GPR. Main purpose is to provide
indirect access to data in stack.
• Flag Register - also called program status word
(PSW)
9 active Flags
6 status flags
3 control flags
Status Flag –
• Carry – Arithmetic operation results is carry out of
MSB or Borrow in Subtraction. Also used in shift &
Rotate.
• Parity – Even parity in byte operation or lower byte
of word operation
• Auxiliary Carry – set if there in carry out of lower
nibble to higher nibble in 8 bit quantity or lower
byte to higher byte in 16 bit quantity. Used in BCD
operations.
• Zero – set when result of operation is zero.
• Sign – set when after arithmetic or logic
operation, MSB of result = 1 indicates that result is
negative.
• Overflow – used to detect magnitude overflow in
signed arithmetic.
• For addition operation – flag is set when there
is carry in to MSB but no carry out of MSB or
vice versa.
• For subtraction – flag is set when MSB needs a
borrow but there is no borrow from MSB or
vice versa.
Control Flags –
• Direction – Used with string operations. When set
(i.e = 1) then string operation in auto decrement
mode (i.e right to left) when reset (i.e = 0) then
string operation in auto increment mode (left to
right)
Interrupt Enable –
• When = 1, enables 8086 to recognize external
interrupts. When = 0, all maskable interrupts are
disabled. No effect on non maskable interrupts.
• Trap flag – when = 1, sets processor in single step
mode for debugging.
Memory Addressing – Real Mode
• Real Mode – limited to 1 MB of memory i.e real
memory.
• Segment Register – 16 bits in length.
• Memory address – 20 bits.
• Segment register content are appended with 0000 to
make it 20 bit address i.e segment register contents are
multiplied by 16
• Now the address represent the starting address of
segment in memory
• Let us say CS = 1234H
• After appending with 0000(=0H) we get 12340H as
starting address of code segment in memory.
• The size of a segment i.e 64kb i.e FFFFH
• The address range of code segment 12340H to (12340
+ FFFF) = 2233FH
• A segment must thus start at 16 byte boundary
[since last 4 bits = 0000]
• Two segment can overlap with each other partially
if segment address have been defined like that.
• There may be more then one segment of a
particular type. For that segment register contents
are dynamically changed.
• All real mode memory addresses consist of segment
address plus an offset address.
• Offset address – increment from starting of
segment.
• Thus segment address defines the starting address
of 64k byte memory segment.
• Offset address selects a location within 64k byte
memory segment.
• Offset address is also known as logical address.
• Physical address is actual memory location of
operands = segment address appended with 0H +
offset address = (segment address) x 16 + offset
address.
- Let us take an example.
-> Segment register = 1234H
-> Offset = 0022H
Physical address ?
Segment starting address = 12340H
+ offset = 0022H
________________________
Physical address = 12362H
Exercise 1 – calculate last address of segment, given
the segment register values as 1234H, 2300H and
AB00H.
Exercise -2 – Given physical address of memory
location and segment register content, find the
logical address i.e offset
Note –
• 8086 and 8088 operate only in real mode
• 80286 – 80486 – Pentium – operate in real or
protected mode.
• Real mode operation allows microprocessor to
address only first 1 MB of memory space even if it is
80486 µp.
• Memory segmentation allows program to be
relocated in any portion of memory.
• There is a set combination of segment register and
offset register known as default combination .
Segment offset Special purpose
CS IP Instruction address
SS SP or BP stack address
DS BX,DI,SI Data address
An 8 or 16 bit number
ES DI for string string destination
instruction address
Introduction to 8086 microprocessor

Mais conteúdo relacionado

Mais procurados

Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor Mustapha Fatty
 
8086 pin details
8086 pin details8086 pin details
8086 pin detailsAJAL A J
 
Presentation on 8086 Microprocessor
Presentation  on   8086 MicroprocessorPresentation  on   8086 Microprocessor
Presentation on 8086 MicroprocessorNahian Ahmed
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086saurav kumar
 
8086 Microprocessor powerpoint
8086  Microprocessor  powerpoint8086  Microprocessor  powerpoint
8086 Microprocessor powerpointRandhir Kumar
 
8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controllerabhikalmegh
 
Pentium microprocessor
Pentium microprocessorPentium microprocessor
Pentium microprocessortanzidshawon
 
INTEL 80386 MICROPROCESSOR
INTEL  80386  MICROPROCESSORINTEL  80386  MICROPROCESSOR
INTEL 80386 MICROPROCESSORAnnies Minu
 
Register Organisation of 8086 Microprocessor
Register Organisation of 8086 MicroprocessorRegister Organisation of 8086 Microprocessor
Register Organisation of 8086 MicroprocessorNikhil Kumar
 
Clock-8086 bus cycle
Clock-8086 bus cycleClock-8086 bus cycle
Clock-8086 bus cycleRani Rahul
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 completeShubham Singh
 
Processor organization & register organization
Processor organization & register organizationProcessor organization & register organization
Processor organization & register organizationGhanshyam Patel
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction SetDr. Pankaj Zope
 
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
 

Mais procurados (20)

Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor
 
80386 Architecture
80386 Architecture80386 Architecture
80386 Architecture
 
8051 memory
8051 memory8051 memory
8051 memory
 
8086 pin details
8086 pin details8086 pin details
8086 pin details
 
Presentation on 8086 Microprocessor
Presentation  on   8086 MicroprocessorPresentation  on   8086 Microprocessor
Presentation on 8086 Microprocessor
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
 
8086 Microprocessor powerpoint
8086  Microprocessor  powerpoint8086  Microprocessor  powerpoint
8086 Microprocessor powerpoint
 
8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller
 
Pentium microprocessor
Pentium microprocessorPentium microprocessor
Pentium microprocessor
 
INTEL 80386 MICROPROCESSOR
INTEL  80386  MICROPROCESSORINTEL  80386  MICROPROCESSOR
INTEL 80386 MICROPROCESSOR
 
80386
8038680386
80386
 
80386 microprocessor
80386 microprocessor80386 microprocessor
80386 microprocessor
 
Register Organisation of 8086 Microprocessor
Register Organisation of 8086 MicroprocessorRegister Organisation of 8086 Microprocessor
Register Organisation of 8086 Microprocessor
 
Clock-8086 bus cycle
Clock-8086 bus cycleClock-8086 bus cycle
Clock-8086 bus cycle
 
8155 PPI
8155 PPI8155 PPI
8155 PPI
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 complete
 
Processor organization & register organization
Processor organization & register organizationProcessor organization & register organization
Processor organization & register organization
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction Set
 
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
 
8086
80868086
8086
 

Destaque

The Intel 8086 microprocessor
The Intel 8086 microprocessorThe Intel 8086 microprocessor
The Intel 8086 microprocessorGeorge Thomas
 
1326 Introduction To 8086 Microprocessor
1326 Introduction To 8086 Microprocessor1326 Introduction To 8086 Microprocessor
1326 Introduction To 8086 Microprocessortechbed
 
Minimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 MicroprocessorMinimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 MicroprocessorNikhil Kumar
 
Memory Segmentation of 8086
Memory Segmentation of 8086Memory Segmentation of 8086
Memory Segmentation of 8086Nikhil Kumar
 
8086 class notes-Y.N.M
8086 class notes-Y.N.M8086 class notes-Y.N.M
8086 class notes-Y.N.MDr.YNM
 
1327 Addressing Modes Of 8086
1327 Addressing Modes Of 80861327 Addressing Modes Of 8086
1327 Addressing Modes Of 8086techbed
 
8086 microprocessor introduction
8086 microprocessor introduction8086 microprocessor introduction
8086 microprocessor introductionAakash Ugale
 
Instruction Set of 8086 Microprocessor
Instruction Set of 8086 MicroprocessorInstruction Set of 8086 Microprocessor
Instruction Set of 8086 MicroprocessorAshita Agrawal
 
Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kVijay Kumar
 
Addressing Modes Of 8086
Addressing Modes Of 8086Addressing Modes Of 8086
Addressing Modes Of 8086Ikhlas Rahman
 
8085 microprocessor architecture ppt
8085 microprocessor architecture ppt8085 microprocessor architecture ppt
8085 microprocessor architecture pptParvesh Gautam
 
8086 microprocessor instruction set by Er. Swapnil Kaware
8086 microprocessor instruction set by Er. Swapnil Kaware8086 microprocessor instruction set by Er. Swapnil Kaware
8086 microprocessor instruction set by Er. Swapnil KawareProf. Swapnil V. Kaware
 
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction setSaumitra Rukmangad
 
Assembly Language Programming Of 8085
Assembly Language Programming Of 8085Assembly Language Programming Of 8085
Assembly Language Programming Of 8085techbed
 
Assembly language programming(unit 4)
Assembly language programming(unit 4)Assembly language programming(unit 4)
Assembly language programming(unit 4)Ashim Saha
 
3D Microprocessor Design: Stacking at different granularities
3D Microprocessor Design: Stacking at different granularities3D Microprocessor Design: Stacking at different granularities
3D Microprocessor Design: Stacking at different granularitiesAlberto Villegas
 

Destaque (20)

The Intel 8086 microprocessor
The Intel 8086 microprocessorThe Intel 8086 microprocessor
The Intel 8086 microprocessor
 
8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessor
 
1326 Introduction To 8086 Microprocessor
1326 Introduction To 8086 Microprocessor1326 Introduction To 8086 Microprocessor
1326 Introduction To 8086 Microprocessor
 
Minimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 MicroprocessorMinimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 Microprocessor
 
Memory Segmentation of 8086
Memory Segmentation of 8086Memory Segmentation of 8086
Memory Segmentation of 8086
 
8086 class notes-Y.N.M
8086 class notes-Y.N.M8086 class notes-Y.N.M
8086 class notes-Y.N.M
 
1327 Addressing Modes Of 8086
1327 Addressing Modes Of 80861327 Addressing Modes Of 8086
1327 Addressing Modes Of 8086
 
8086 microprocessor introduction
8086 microprocessor introduction8086 microprocessor introduction
8086 microprocessor introduction
 
8086 architecture By Er. Swapnil Kaware
8086 architecture By Er. Swapnil Kaware8086 architecture By Er. Swapnil Kaware
8086 architecture By Er. Swapnil Kaware
 
Instruction Set of 8086 Microprocessor
Instruction Set of 8086 MicroprocessorInstruction Set of 8086 Microprocessor
Instruction Set of 8086 Microprocessor
 
8086 microprocessor lab manual
8086 microprocessor lab manual8086 microprocessor lab manual
8086 microprocessor lab manual
 
Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.k
 
Addressing Modes Of 8086
Addressing Modes Of 8086Addressing Modes Of 8086
Addressing Modes Of 8086
 
8085 microprocessor architecture ppt
8085 microprocessor architecture ppt8085 microprocessor architecture ppt
8085 microprocessor architecture ppt
 
8086 microprocessor instruction set by Er. Swapnil Kaware
8086 microprocessor instruction set by Er. Swapnil Kaware8086 microprocessor instruction set by Er. Swapnil Kaware
8086 microprocessor instruction set by Er. Swapnil Kaware
 
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
8085 Paper Presentation slides,ppt,microprocessor 8085 ,guide, instruction set
 
Assembly Language Programming Of 8085
Assembly Language Programming Of 8085Assembly Language Programming Of 8085
Assembly Language Programming Of 8085
 
Assembly language programming(unit 4)
Assembly language programming(unit 4)Assembly language programming(unit 4)
Assembly language programming(unit 4)
 
Mpi unit i_8086_architectures
Mpi unit i_8086_architecturesMpi unit i_8086_architectures
Mpi unit i_8086_architectures
 
3D Microprocessor Design: Stacking at different granularities
3D Microprocessor Design: Stacking at different granularities3D Microprocessor Design: Stacking at different granularities
3D Microprocessor Design: Stacking at different granularities
 

Semelhante a Introduction to 8086 microprocessor

Assembly_Language _Programming_UNIT.pptx
Assembly_Language _Programming_UNIT.pptxAssembly_Language _Programming_UNIT.pptx
Assembly_Language _Programming_UNIT.pptxVickyThakur61
 
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
 
3 organization of intel 8086
3 organization of intel 80863 organization of intel 8086
3 organization of intel 8086ELIMENG
 
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
 
26677766 8086-microprocessor-architecture-110905125037-phpapp02
26677766 8086-microprocessor-architecture-110905125037-phpapp0226677766 8086-microprocessor-architecture-110905125037-phpapp02
26677766 8086-microprocessor-architecture-110905125037-phpapp02Avijeet Negel
 
8086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp018086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp01jemimajerome
 
SAURABH MITRA-8086 MICROPROCESSOR
SAURABH MITRA-8086 MICROPROCESSORSAURABH MITRA-8086 MICROPROCESSOR
SAURABH MITRA-8086 MICROPROCESSORSAURABH MITRA
 
INTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSORINTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSORSagar Kuntumal
 
8086-microprocessor-architecture.ppt
8086-microprocessor-architecture.ppt8086-microprocessor-architecture.ppt
8086-microprocessor-architecture.pptMadhan7771
 

Semelhante a Introduction to 8086 microprocessor (20)

Assembly_Language _Programming_UNIT.pptx
Assembly_Language _Programming_UNIT.pptxAssembly_Language _Programming_UNIT.pptx
Assembly_Language _Programming_UNIT.pptx
 
8086 archi notes final
8086 archi notes final8086 archi notes final
8086 archi notes final
 
8086 archi notes final
8086 archi notes final8086 archi notes final
8086 archi notes final
 
8086 architecture
8086 architecture8086 architecture
8086 architecture
 
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
 
3 organization of intel 8086
3 organization of intel 80863 organization of intel 8086
3 organization of intel 8086
 
Mpmc
MpmcMpmc
Mpmc
 
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 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
 
26677766 8086-microprocessor-architecture-110905125037-phpapp02
26677766 8086-microprocessor-architecture-110905125037-phpapp0226677766 8086-microprocessor-architecture-110905125037-phpapp02
26677766 8086-microprocessor-architecture-110905125037-phpapp02
 
Mpi chapter 2
Mpi chapter 2Mpi chapter 2
Mpi chapter 2
 
8086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp018086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp01
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
 
SAURABH MITRA-8086 MICROPROCESSOR
SAURABH MITRA-8086 MICROPROCESSORSAURABH MITRA-8086 MICROPROCESSOR
SAURABH MITRA-8086 MICROPROCESSOR
 
INTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSORINTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSOR
 
8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessor
 
8086-microprocessor-architecture.ppt
8086-microprocessor-architecture.ppt8086-microprocessor-architecture.ppt
8086-microprocessor-architecture.ppt
 
8086 Microprocessor
8086 Microprocessor8086 Microprocessor
8086 Microprocessor
 
8086Architecture.pptx
8086Architecture.pptx8086Architecture.pptx
8086Architecture.pptx
 

Mais de Shreyans Pathak

Mais de Shreyans Pathak (7)

8051 interrupts
8051 interrupts8051 interrupts
8051 interrupts
 
8051 Timers and Counters
8051 Timers and Counters8051 Timers and Counters
8051 Timers and Counters
 
AVL Trees
AVL TreesAVL Trees
AVL Trees
 
8051 Programming Instruction Set
 8051 Programming Instruction Set 8051 Programming Instruction Set
8051 Programming Instruction Set
 
Introduction state machine
Introduction state machineIntroduction state machine
Introduction state machine
 
Java packages
Java packagesJava packages
Java packages
 
Java interfaces & abstract classes
Java interfaces & abstract classesJava interfaces & abstract classes
Java interfaces & abstract classes
 

Último

Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 

Último (20)

Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 

Introduction to 8086 microprocessor

  • 1. Introduction to 8086/8088 Microprocesser - General Facilities - BIU and EU - Data Registers - Segment Registers - Index Registers - Pointer Registers - Flag Register - Memory Addressing - Physical Memory Address Calculations.
  • 2. 8086 – Introduction • 16 bit µp with 20 bit address bus & 16 bit data bus • Can address up to 220 = 1 MB memory directly • Can read or write 8 or 16 bit data • 8088 - 8 bit data bus • Internal architecture has two main units • BIU - Bus Interface Unit • EU – Execution Unit
  • 3.
  • 4. • BIU and EU work simultaneously for instruction execution and form 2 stage instruction pipeline. • BIU – has bus interface logic, segment registers, memory addressing logic and 6 byte instruction queue. • While EU is busy in instruction execution, BIU fetches instruction from memory and stores them in instruction queue.
  • 5. • If EU executes a jump instruction – Program control to be transferred to another location then BIU • Resets the queue • Fetches instruction from new address • Passes the instruction to EU • Starts refilling the queue from new location • Process is called pipeline flushing.
  • 6. BIU of 8088 • 8088 – 4 byte instruction queue • Each time there is empty space of 2 bytes or more 8086 BIU startes filling the queue. • 8088 BIU fills the queue when there is empty space of 1 byte.
  • 7. Execution Unit (EU) • Contains – instruction decoder, ALU, general purpose registers, pointer registers, index registers, flag register and control circuitary to execute instruction. • EU is resposible for- – Execution of instructions – Providing address to BIU for fetching data/instruction. – Manipulating various registers as well as flag register. • EU is almost completly isolated from outside world. • BIU performs all bus operations for EU. • Overlapped fetching and execution of instruction is shown
  • 8.
  • 9. It is assumed that • Two µps i.e 2nd generation and 8086 execute the instruction in same no. of clock cycles. • Due to overlapping of fetch and excute, 8086/8088 is able to excute 3 instruction in lesser time but also able to fetch 4th and 5th instruction. • Register Set- 8086 has fourteen – 16 bit registers • Data Registers • Segment Registers • Pointer & index register • flag register
  • 10.
  • 11. • Data Registers- Four sixteen bit AX,BX,CX,DX • Or 8 – 8 bit registers • AH AL BH BL CH CL DH DL • AX- Primary Accumulator • Input-Output operations through AX(or AL) • Several string operations require one operand to be in AX (or AL). • 16 bit divide or multiply - AX has one word operand (AL for 8 bit operation). • 32 bit multiply or divide – AX holds lower order word operand.
  • 12.
  • 13. • BX – GPR (Genral Purpose Register) + Base Register • CX – GPR + Count Register in multi iteration instruction. • DX – GPR + used in I/O instructions, multiply & divide instructions.
  • 14.
  • 15. Segment Registers • concept of memory segmentation. Memory divided into no. of parts called segments. • In 8086, 1 MB physical memory can be divide into 4 types of segments. • Starting address of each segment is placed in 16 bit register • CS – Code Segment Register. • DS – Data Segment Register. • SS – Stack Segment Register. • ES – Extra Segment Register. • Each segment has memory space of 64k byte
  • 16.
  • 17.
  • 18. Index Registers SI – Source Index Register DI – Destination Index Register • May be used as GPR. However main purpose is to store address offset in case of – Indexed, Base Indexed, and Relative Base Indexed addressing modes
  • 19.
  • 20. Pointer Registers • Stack Pointer(SP) - provides access to stack top. Holds offset address of stack top. • Instruction Pointer(IP) - holds offset address of next instruction to be executed. Like program counter. • Base Pointer (BP) - GPR. Main purpose is to provide indirect access to data in stack.
  • 21.
  • 22. • Flag Register - also called program status word (PSW) 9 active Flags 6 status flags 3 control flags
  • 23.
  • 24. Status Flag – • Carry – Arithmetic operation results is carry out of MSB or Borrow in Subtraction. Also used in shift & Rotate. • Parity – Even parity in byte operation or lower byte of word operation • Auxiliary Carry – set if there in carry out of lower nibble to higher nibble in 8 bit quantity or lower byte to higher byte in 16 bit quantity. Used in BCD operations. • Zero – set when result of operation is zero.
  • 25. • Sign – set when after arithmetic or logic operation, MSB of result = 1 indicates that result is negative. • Overflow – used to detect magnitude overflow in signed arithmetic. • For addition operation – flag is set when there is carry in to MSB but no carry out of MSB or vice versa. • For subtraction – flag is set when MSB needs a borrow but there is no borrow from MSB or vice versa.
  • 26. Control Flags – • Direction – Used with string operations. When set (i.e = 1) then string operation in auto decrement mode (i.e right to left) when reset (i.e = 0) then string operation in auto increment mode (left to right) Interrupt Enable – • When = 1, enables 8086 to recognize external interrupts. When = 0, all maskable interrupts are disabled. No effect on non maskable interrupts. • Trap flag – when = 1, sets processor in single step mode for debugging.
  • 27. Memory Addressing – Real Mode • Real Mode – limited to 1 MB of memory i.e real memory. • Segment Register – 16 bits in length. • Memory address – 20 bits. • Segment register content are appended with 0000 to make it 20 bit address i.e segment register contents are multiplied by 16 • Now the address represent the starting address of segment in memory • Let us say CS = 1234H • After appending with 0000(=0H) we get 12340H as starting address of code segment in memory. • The size of a segment i.e 64kb i.e FFFFH • The address range of code segment 12340H to (12340 + FFFF) = 2233FH
  • 28.
  • 29. • A segment must thus start at 16 byte boundary [since last 4 bits = 0000] • Two segment can overlap with each other partially if segment address have been defined like that. • There may be more then one segment of a particular type. For that segment register contents are dynamically changed. • All real mode memory addresses consist of segment address plus an offset address. • Offset address – increment from starting of segment.
  • 30. • Thus segment address defines the starting address of 64k byte memory segment. • Offset address selects a location within 64k byte memory segment. • Offset address is also known as logical address. • Physical address is actual memory location of operands = segment address appended with 0H + offset address = (segment address) x 16 + offset address.
  • 31.
  • 32. - Let us take an example. -> Segment register = 1234H -> Offset = 0022H Physical address ? Segment starting address = 12340H + offset = 0022H ________________________ Physical address = 12362H Exercise 1 – calculate last address of segment, given the segment register values as 1234H, 2300H and AB00H.
  • 33.
  • 34. Exercise -2 – Given physical address of memory location and segment register content, find the logical address i.e offset
  • 35.
  • 36.
  • 37. Note – • 8086 and 8088 operate only in real mode • 80286 – 80486 – Pentium – operate in real or protected mode. • Real mode operation allows microprocessor to address only first 1 MB of memory space even if it is 80486 µp. • Memory segmentation allows program to be relocated in any portion of memory.
  • 38. • There is a set combination of segment register and offset register known as default combination . Segment offset Special purpose CS IP Instruction address SS SP or BP stack address DS BX,DI,SI Data address An 8 or 16 bit number ES DI for string string destination instruction address