2. the 8086 Microprocessor
2. the 8086 Microprocessor
Farhan Sadaf
Lecturer, Dept. of CSE
The 8086
• It is a 16-bit microprocessor
• It’s ALU, internal registers and most of the instructions are designed
to work with 16-bit binary words
• It has 16-bit data bus
• It has 20-bit address bus = 220 (1,048,576) memory locations
8086 Internal Architecture
• 8086 CPU is divided into two independent functional parts:
• Bus interface unit (BIU)
• Execution unit (EU)
8086 Internal Architecture
8086 Internal Architecture
• BIU handles all transfers of data and addresses on the buses for the
execution unit
• The execution unit of the 8086 tells the BIU where to fetch
instructions or data from, decodes instructions, and executes
instructions
• The EU has a 16-bit arithmetic logic unit which can add, subtract,
AND. OR, XOR, increment, decrement, complement, or shift binary
numbers
Flag Register
Flag Register
• Is a flip-flop which indicates some condition produced by the
execution of an instruction or controls certain operations of the EU
• A 16-bit flag register in the EU contains nine active flags
• Six of the nine flags are used to indicate some condition produced by an
instruction – CF, PF, AF, ZF, SF, OF
• Three remaining flags In the flag register are used to control certain
operations of the processor – TF, IF, DF
• At any given time the 8086 works with
only four 65,536-byte (64-Kbyte)
segments within its 1,048,576-byte
Segment Registers
(1-Mbyte) range