SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
By Roll No
2467, 2474, 2471
2812, 2493, 2815
2814, 2489, 2818
X86 Architecture
Intro to X86 Architecture
x86 is a family of backward compatible instruction set architectures based
on the Intel 8086 CPU. The 8086 was introduced in 1978 as a fully 16-
bit extension of Intel's 8-bit based 8080 microprocessor
The x86 architecture has 8 General-Purpose
Registers (GPR), 6 Segment Registers, 1 Flags
Register and an Instruction Pointer. 64-bit
x86 has additional registers.
x86 Lineage
The x86 architecture,
which has been
enhanced numerous
times, comes from the
Intel 8088, the CPU in
the first IBM PC in 1981.
The 8088 was a slower
version of the 8086,
which begat the 80186,
286, 386, 486, Pentium
and subsequent CPU
families.
GPRS(General Purpose Registers):
Segment Registers
“Segmentation provides a mechanism for dividing the processor’s addressable
memory space (called the linear address space) into smaller protected address
spaces called segments
The EFLAGS is a 32-bit register used as a collection of bits
representing Boolean values to store the results of
operations and the state of the processor.
Instruction Pointer
The EIP register contains the address of
the next instruction to be executed if no
branching is done.
EIP can only be read through the stack after
a call instruction.
Addressing modes
The addressing mode indicates the manner in which the operand is
presented.
Register Addressing
(operand address R is in the address field)
mov ax, bx ; moves contents of register bx into ax
Immediate
(actual value is in the field)
mov ax, 1 ; moves value of 1 into register ax
or
mov ax, 010Ch ; moves value of 0x010C into register ax
Direct memory addressing
(operand address is in the address field)
.data my_var dw 0abcdh ;
my_var = 0xabcd .code mov ax, my_var ; copy my_var content in ax
(ax=0xabcd) mov ax, [my_var] ; idem as above
CPU Operation Modes
Real Mode
Real Mode is a holdover from the original Intel 8086. You
generally won't need to know anything about it (unless you are
programming for a DOS-based system or, more likely, writing a
boot loader that is directly called by the BIOS).
The Intel 8086 accessed memory using 20-bit addresses. But, as
the processor itself was 16-bit, Intel invented an addressing
scheme that provided a way of mapping a 20-bit addressing
space into 16-bit words. Today's x86 processors start in the so-
called Real Mode, which is an operating mode that mimics the
behavior of the 8086, with some very tiny differences, for
backwards compatibility.
Protected Mode
Flat Memory Model
If programming in a modern operating system (such as Linux,
Windows), you are basically programming in flat 32-bit mode.
Any register can be used in addressing, and it is generally more
efficient to use a full 32-bit register instead of a 16-bit register
part. Additionally, segment registers are generally unused in flat
mode, and it is generally a bad idea to touch them.
Multi-Segmented Memory Model
Using a 32-bit register to address memory the program can
access (almost) all of the memory in a modern computer. For
earlier processors (with only 16-bit registers) the segmented
memory model was used. The 'CS', 'DS', and 'ES' registers are
used to point to the different chunks of memory. For a small
program (small model) the CS=DS=ES. For larger memory
models, these 'segments' can point to different locations.

More Related Content

PPTX
Introduction to Computer Architecture
PPTX
x86 architecture
 
PDF
Chapter04 processor and memory
PPS
Block diagram-of-8085
PDF
Intel x86 Architecture
PPT
Bus interconnection
PDF
Assembly level language
PPT
Assembly language programming_fundamentals 8086
Introduction to Computer Architecture
x86 architecture
 
Chapter04 processor and memory
Block diagram-of-8085
Intel x86 Architecture
Bus interconnection
Assembly level language
Assembly language programming_fundamentals 8086

What's hot (20)

PDF
operating system structure
PPT
I/O System
PPTX
Interrupts on 8086 microprocessor by vijay kumar.k
PPTX
Memory Organization
PPTX
Addressing sequencing
PPTX
Interrupts
PPT
80486 microprocessor
PPT
Microprocessor 80386
PPTX
Multiprocessor system
PPT
Chapter 5
PPTX
Pentium processor
PPTX
Ipv4 presentation
PPTX
I/O Management
PPTX
Assembly Language
PDF
Distributed Operating System_1
PPTX
Salient featurs of 80386
PPTX
80386 Architecture
PPTX
Introduction to distributed database
PPTX
Segment registers
operating system structure
I/O System
Interrupts on 8086 microprocessor by vijay kumar.k
Memory Organization
Addressing sequencing
Interrupts
80486 microprocessor
Microprocessor 80386
Multiprocessor system
Chapter 5
Pentium processor
Ipv4 presentation
I/O Management
Assembly Language
Distributed Operating System_1
Salient featurs of 80386
80386 Architecture
Introduction to distributed database
Segment registers
Ad

Viewers also liked (11)

PPT
The x86 Family
PDF
Ch 1 the x86 µprocessor
PPTX
It322 intro 1
PPTX
Intel x86 and ARM Data types
PPT
PPTX
Intel & ARM: Strategic Comparison
PPTX
Flag registers, addressing modes, instruction set
PPT
The Intel 8086 microprocessor
DOC
8086 class notes-Y.N.M
PDF
AMD and the new “Zen” High Performance x86 Core at Hot Chips 28
 
PPTX
Slideshare ppt
The x86 Family
Ch 1 the x86 µprocessor
It322 intro 1
Intel x86 and ARM Data types
Intel & ARM: Strategic Comparison
Flag registers, addressing modes, instruction set
The Intel 8086 microprocessor
8086 class notes-Y.N.M
AMD and the new “Zen” High Performance x86 Core at Hot Chips 28
 
Slideshare ppt
Ad

Similar to X86 Architecture (20)

PPTX
PPT
Architecture_of_80386_Microprocessor - Inroduction
PPTX
It322 intro 2
DOC
8086 Microprocessor(Visit Munnuz Co Cc)
PPT
PDF
80386 Basic Programming Model and Application
PPTX
Microprocessor Unit -1 SE computer-II.pptx
PPT
Intel microprocessor history lec12_x86arch.ppt
PDF
Introduction to 80386 microprocessor
PDF
Microprocessor Unit-1( Introduction to 80386 Microprocessors)Second Year ppt
PDF
Microprocessor lecture 2
PPT
Architecture_of_80386_Micropro-An Introduction
PPTX
Part I:Introduction to assembly language
PPTX
32- bit Microprocessor-Indtel 80386.pptx
PPTX
Chapter_05_x86_assembly ARM processors have a number of general-purpose regis...
PDF
Intel architectuer
PDF
Intel 80386 Architecture and Programming
PPTX
8086 architecture-unit-1
PDF
80386_AKRay.pdf study computer programme
PPTX
MIC3_The Intel 8086 .pptx
Architecture_of_80386_Microprocessor - Inroduction
It322 intro 2
8086 Microprocessor(Visit Munnuz Co Cc)
80386 Basic Programming Model and Application
Microprocessor Unit -1 SE computer-II.pptx
Intel microprocessor history lec12_x86arch.ppt
Introduction to 80386 microprocessor
Microprocessor Unit-1( Introduction to 80386 Microprocessors)Second Year ppt
Microprocessor lecture 2
Architecture_of_80386_Micropro-An Introduction
Part I:Introduction to assembly language
32- bit Microprocessor-Indtel 80386.pptx
Chapter_05_x86_assembly ARM processors have a number of general-purpose regis...
Intel architectuer
Intel 80386 Architecture and Programming
8086 architecture-unit-1
80386_AKRay.pdf study computer programme
MIC3_The Intel 8086 .pptx

More from IGZ Software house (20)

PPT
Window server 2008
PPTX
Types of server
DOCX
Types of network
PPT
Ip address and subnetting
PPTX
Group policy management window server 2008r2
PPT
Active directory domain services
PPTX
17 roles of window server 2008 r2
PPTX
Raid and its levels
PPT
Introduction Network security
PPT
PPT
Encryption
PPT
Cryptography
PDF
Authentication techniques
PPTX
Window architecture
PPTX
What is-32-bit-and-64-bit
PPTX
Virtual machine
PPT
PPTX
Interpreter
PPTX
Competitor analaysis
Window server 2008
Types of server
Types of network
Ip address and subnetting
Group policy management window server 2008r2
Active directory domain services
17 roles of window server 2008 r2
Raid and its levels
Introduction Network security
Encryption
Cryptography
Authentication techniques
Window architecture
What is-32-bit-and-64-bit
Virtual machine
Interpreter
Competitor analaysis

Recently uploaded (20)

PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Cell Types and Its function , kingdom of life
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Pharma ospi slides which help in ospi learning
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
VCE English Exam - Section C Student Revision Booklet
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
O5-L3 Freight Transport Ops (International) V1.pdf
Anesthesia in Laparoscopic Surgery in India
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
STATICS OF THE RIGID BODIES Hibbelers.pdf
Final Presentation General Medicine 03-08-2024.pptx
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Microbial diseases, their pathogenesis and prophylaxis
Cell Types and Its function , kingdom of life
Module 4: Burden of Disease Tutorial Slides S2 2025
Pharma ospi slides which help in ospi learning
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
Microbial disease of the cardiovascular and lymphatic systems
Supply Chain Operations Speaking Notes -ICLT Program
102 student loan defaulters named and shamed – Is someone you know on the list?
VCE English Exam - Section C Student Revision Booklet

X86 Architecture

  • 1. By Roll No 2467, 2474, 2471 2812, 2493, 2815 2814, 2489, 2818 X86 Architecture
  • 2. Intro to X86 Architecture x86 is a family of backward compatible instruction set architectures based on the Intel 8086 CPU. The 8086 was introduced in 1978 as a fully 16- bit extension of Intel's 8-bit based 8080 microprocessor The x86 architecture has 8 General-Purpose Registers (GPR), 6 Segment Registers, 1 Flags Register and an Instruction Pointer. 64-bit x86 has additional registers.
  • 3. x86 Lineage The x86 architecture, which has been enhanced numerous times, comes from the Intel 8088, the CPU in the first IBM PC in 1981. The 8088 was a slower version of the 8086, which begat the 80186, 286, 386, 486, Pentium and subsequent CPU families.
  • 5. Segment Registers “Segmentation provides a mechanism for dividing the processor’s addressable memory space (called the linear address space) into smaller protected address spaces called segments
  • 6. The EFLAGS is a 32-bit register used as a collection of bits representing Boolean values to store the results of operations and the state of the processor.
  • 7. Instruction Pointer The EIP register contains the address of the next instruction to be executed if no branching is done. EIP can only be read through the stack after a call instruction.
  • 8. Addressing modes The addressing mode indicates the manner in which the operand is presented. Register Addressing (operand address R is in the address field) mov ax, bx ; moves contents of register bx into ax Immediate (actual value is in the field) mov ax, 1 ; moves value of 1 into register ax or mov ax, 010Ch ; moves value of 0x010C into register ax Direct memory addressing (operand address is in the address field) .data my_var dw 0abcdh ; my_var = 0xabcd .code mov ax, my_var ; copy my_var content in ax (ax=0xabcd) mov ax, [my_var] ; idem as above
  • 9. CPU Operation Modes Real Mode Real Mode is a holdover from the original Intel 8086. You generally won't need to know anything about it (unless you are programming for a DOS-based system or, more likely, writing a boot loader that is directly called by the BIOS). The Intel 8086 accessed memory using 20-bit addresses. But, as the processor itself was 16-bit, Intel invented an addressing scheme that provided a way of mapping a 20-bit addressing space into 16-bit words. Today's x86 processors start in the so- called Real Mode, which is an operating mode that mimics the behavior of the 8086, with some very tiny differences, for backwards compatibility.
  • 10. Protected Mode Flat Memory Model If programming in a modern operating system (such as Linux, Windows), you are basically programming in flat 32-bit mode. Any register can be used in addressing, and it is generally more efficient to use a full 32-bit register instead of a 16-bit register part. Additionally, segment registers are generally unused in flat mode, and it is generally a bad idea to touch them. Multi-Segmented Memory Model Using a 32-bit register to address memory the program can access (almost) all of the memory in a modern computer. For earlier processors (with only 16-bit registers) the segmented memory model was used. The 'CS', 'DS', and 'ES' registers are used to point to the different chunks of memory. For a small program (small model) the CS=DS=ES. For larger memory models, these 'segments' can point to different locations.