Assembly Language For x86 Processors: Chapter 2: x86 Processor Architecture
Assembly Language For x86 Processors: Chapter 2: x86 Processor Architecture
7th Edition
Kip Irvine
(c) Pearson Education, 2015. All rights reserved. You may modify and copy this slide show for your personal use, or for
use in the classroom, as long as this copyright statement, the author's name, and the title are not changed.
Chapter Overview
• General Concepts
• IA-32 Processor Architecture
• IA-32 Memory Management
registers
I/O I/O
Central Processor Unit Memory Storage
Device Device
(CPU) Unit
#1 #2
ALU CU clock
control bus
address bus
• General Concepts
• IA-32 Processor Architecture
• IA-32 Memory Management
• Components of an IA-32 Microcomputer
• Input-Output System
• Fetch
• Decode
• Fetch operands
• Execute
• Store output
CLK
Address
ADDR
RD
Data
DATA
gets starting
cluster from returns to
System
loads and path
starts
Directory Program
entry
• Modes of operation
• Basic execution environment
• Floating-point unit
• Intel Microprocessor history
• Virtual-8086 mode
• hybrid of Protected
• each program has its own 8086 computer
• Addressable memory
• General-purpose registers
• Index and base registers
• Specialized register uses
• Status flags
• Floating-point, MMX, XMM registers
• Protected mode
• 4 GB
• 32-bit address
• Real-address and Virtual-8086 modes
• 1 MB space
• 20-bit address
EAX EBP
EBX ESP
ECX ESI
EDX EDI
EFLAGS CS ES
SS FS
EIP
DS GS
AH AL 8 bits + 8 bits
AX 16 bits
EAX 32 bits
• General-Purpose
• EAX – accumulator
• ECX – loop counter
• ESP – stack pointer
• ESI, EDI – index registers
• EBP – extended frame pointer (stack)
• Segment
• CS – code segment
• DS – data segment
• SS – stack segment
• ES, FS, GS - additional segments
Opcode Register
• General Concepts
• IA-32 Processor Architecture
• IA-32 Memory Management
• 64-Bit Processors
• Real-address mode
• Calculating linear addresses
• Protected mode
• Multi-segment model
• Paging
• 4 GB addressable RAM
• (00000000 to FFFFFFFFh)
• Each program assigned a memory partition which
is protected from other programs
• Designed for multitasking
• Supported by Linux & MS-Windows
• General Concepts
• IA-32 Processor Architecture
• IA-32 Memory Management
• 64-Bit Processors