8086 Microprocessor Summary Notes
8086 Microprocessor Overview
16-bit microprocessor architecture with a 20-bit address bus.
Supports a memory space of .
Implements pipelining through a 6-byte instruction queue.
System Architecture
BIU (Bus Interface Unit): Fetches instructions, generates 20-bit physical addresses, and maintains the 6-byte queue. It contains registers: , , , , and .
EU (Execution Unit): Decodes and executes instructions using the ALU, control logic, and flags. It contains general-purpose registers: , , , and .
Memory Segmentation and Physical Addressing
Memory is organized into segments: Code Segment (), Data Segment (), Stack Segment (), and Extra Segment ().
The Physical Address is calculated using the formula: .
Example: .
Registers and Flags
Flag Register: Includes , , , , , , , , and .
Notable Flags: Carry Flag (), Zero Flag (), Sign Flag (), and Overflow Flag ().
Stack and Interrupts
Stack Behavior: The stack grows downward toward lower memory addresses. A operation results in .
Function Calls: pushes the return address onto the stack, while pops the return address.
Interrupt Types:
NMI: Non-maskable interrupt.
INTR: Maskable interrupt.
Addressing Modes
Immediate addressing
Register addressing
Direct addressing
Indirect addressing
Based addressing
Indexed addressing