Lec 4
Lec 4
Lec 4
Lecture
8086 Microprocessors
2
8086 Microprocessors
The BIU is responsible for performing all external bus
operations, such as instruction fetching, reading and
writing of data operands for memory, address
generating, and inputting or outputting data for
input/output peripherals.
3
8086 Microprocessors
8086 microprocessor is divided internally into two separate
units:
◦ Bus Interface Unit (BIU)
◦ Execution Unit (EU)
The two units functions independently.
The Execution Unit (EU) is responsible for decoding and
executing instructions.
It contains arithmetic logic unit (ALU), status and control flags,
general-purpose register, and temporary operand registers.
Maintain the microprocessor status and control flags,
manipulates the general registers and instruction operands
4
THE EXECUTION UNIT
The EU has 16 bit ALU for performing arithmetic and
logic operations.
16 bit registers (AX, BX, CX, DX, SP, BP, SI, DI and
Flag registers).
◦ AX, BX, CX, DX (general purpose registers) can be
used as eight 8 bit registers (AH, AL, BH, BL, CH,
CL, DH, DL).
5
8086 Microprocessors
The BIU uses a mechanism known as pre fetching.
6
8086 Microprocessors
7
GENERAL PURPOSE REGISTERS
General purpose registers (AH, AL, BH, BL,
CH, CL, DH, DL).
8
GENERAL PURPOSE REGISTERS
9
GENERAL PURPOSE REGISTERS
AX
◦ AX is 16 bit accumulator accumulator
◦ AL is 8 bit accumulator
Used for operations involving input/output
10
GENERAL PURPOSE REGISTERS
BX
◦ BX is known as the Base register
◦ This is only general purpose register whose contents can
be used for addressing 8086 memory.
All memory reference utilizing this register content for
11
GENERAL PURPOSE REGISTERS
CX
12
GENERAL PURPOSE REGISTERS
DX
DX is known as a data register
13
POINTER & INDEX REGISTERS
The 8086 has four other general registers,
two pointer registers SP and BP,
two index registers DI and SI
These are used to store what are called offset addresses
14
POINTER REGISTERS
The two pointer registers (16 bits), stack pointer (SP) and base
pointer (BP) are used to access data in the stack segment.
15
POINTER REGISTERS
16
17
18