MP Lec 1 Notes
MP Lec 1 Notes
Course Credits
Course Syllabus
1. The Intel Microprocessors 8086
Architecture
• 1 The Intel Microprocessors 8086 Architecture
• 1.1 8086CPU Architecture,
• 1.2 Programmer’s Model
• 1.3 Functional Pin Diagram
• 1.4 Memory Segmentation
• 1.5 Banking in 8086
• 1.6 Demultiplexing of Address/Data bus
• 1.7 Functioning of 8086 in Minimum mode and
Maximum mode
• 1.8 Timing diagrams for Read and Write operations in
minimum and maximum mode
• 1.9 Interrupt structure and its servicing
8086
Microprocessor
Overview
First 16- bit processor
released by INTEL in the year
1978
Architecture
11
8086
Bus Interface Unit
Microprocessor
(BIU)
Architecture
Segment Data Segment Register
Registers
• 16-bit
12
8086
Bus Interface Unit
Microprocessor
(BIU)
Architecture
Segment Stack Segment Register
Registers
• 16-bit
13
8086
Bus Interface Unit
Microprocessor
(BIU)
Architecture
Segment Extra Segment Register
Registers
• 16-bit
14
8086
Bus Interface Unit
Microprocessor
(BIU)
Architecture
Segment Instruction Pointer
Registers
• 16-bit
15
8086
Bus Interface Unit
Microprocessor
(BIU)
Architecture
Instruction queue
• A group of
First-In-First-Out (FIFO)
in which up to 6 bytes
of instruction code are
pre fetched from the
memory ahead of time.
• This mechanism is
known as pipelining.
16
8086
Execution Unit (EU)
Microprocessor
A decoder in the
EU control
system translates
16-bit ALU for
instructions.
performing
arithmetic and
logic operation
Four general
purpose
registers(AX, BX,
CX, DX);
Pointer registers
(Stack Pointer,
Base Pointer);
Architecture
EU Accumulator Register (AX)
Registers
• Consists of two 8-bit registers AL and AH,
which can be combined together and used
as a 16-bit register AX.
18
8086
Execution Unit (EU)
Microprocessor
Architecture
EU Base Register (BX)
Registers
• Consists of two 8-bit registers BL and BH,
which can be combined together and used
as a 16-bit register BX.
19
8086
Execution Unit (EU)
Microprocessor
Architecture
EU Counter Register (CX)
Registers
• Consists of two 8-bit registers CL and CH,
which can be combined together and used
as a 16-bit register CX.
Example:
Architecture
EU
Registers
21
8086
Execution Unit (EU)
Microprocessor
Architecture
EU Stack Pointer (SP) and Base
Registers Pointer (BP)
22
8086
Execution Unit (EU)
Microprocessor
Architecture
EU Source Index (SI) and Destination
Registers Index (DI)
23
8086
Execution Unit (EU)
Microprocessor
Architecture
EU Source Index (SI) and Destination
Registers Index (DI)
24
8086
Execution Unit (EU)
Microprocessor
Architecture
Auxiliary Carry Flag
Carry Flag
This is set, if there is a carry
Flag Register from the lowest nibble, i.e, This flag is set, when
bit three during addition, or there is a carry out of
borrow for the lowest nibble, MSB in case of
i.e, bit three, during addition or a borrow
subtraction.
Zero Flag in case
Parity of subtraction.
Flag
Sign Flag
This flag is set, if the This flag is set to 1, if
This flag is set, result of the the lower byte of the
when the result of computation or result contains even
any computation is comparison performed number of 1’s ; for odd
negative by an instruction is number of 1’s set to
zero zero.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
OF DF IF TF SF ZF AF PF CF
Tarp Flag
Over flow Flag If this flag is set, the
This flag is set, if an overflow occurs, i.e, if the processor enters the
result of a signed operation is large enough to single step execution
accommodate in a destination register. The
mode by generating
result is of more than 7-bits in size in case of
8-bit signed operation and more than 15-bits in internal interrupts after
size in case of 16-bit sign Direction
operations, Flag
then the the execution of each
overflow
This is will
usedbe set.
by string manipulation instruction
Interrupt Flag
instructions. If this flag bit is ‘0’, the string is
processed beginning from the lowest address Causes the 8086 to
to the highest address, i.e., auto recognize external mask
incrementing mode. Otherwise, the string is interrupts; clearing IF
processed from the highest address towards disables these interrupts. 25
the lowest address, i.e., auto incrementing
8086
Microprocessor Architecture
8086
registers 1
5
1
4
1
3
1
2
11 10 9 8 7 6 5 4 3 2 1 0
categorize
O D IF TF S Z AF P C
d into 4 F F F F F F
groups