Cap 2
Cap 2
Monsoon 2024-25
8086 - Introduction
• 16-Bit Data Bus
• 20-Bit Address Bus
• Capability to access and work on 8-bit Data
8086-Internal Block Diagram
8086-Internal Block Diagram
• Partitioned into two logical units
• Bus Interface Unit (BIU)
• Execution Unit (EU)
• Interact directly with each other through internal bus
Concept of Registers
• All processors have internal registers
• On-chip RAM
• Some are visible to programs and some are not
• Used for temporary storage of data
• General purpose or special function registers
• Faster access
• Cost
• More number of registers – More number of bits required to
identify – More length for instructions
Register Model of 8086
Scratchpad Registers
• Used for temporary storage
• 8086 has four (4) 16-bit scratchpad registers – AX, BX, CX and DX
• Can also be used as separate 8-bit registers – AH, AL, BH, BL, CH,
CL, DH, DL
• Special purposes as well
Pointer and Index Registers
• SP – Stack Pointer – Points to Top of Stack
• BP – Base Pointer - Points to any location in Stack
• SI – Source Index
Used in various addressing modes
• DI – Destination Index
Flag Register
Flag Register - Example
Find the status of CF, SF, AF and ZF after executing the following
instructions