The Microprocessor & Its Architecture A Course in Microprocessor Electrical Engineering Department Universitas 17 Agustus 1945 Jakarta.

Slides:



Advertisements
Similar presentations
Chapter 2 (cont.) An Introduction to the 80x86 Microprocessor Family Objectives: The different addressing modes and instruction types available The usefulness.
Advertisements

80486 Microprocessor The 32-bit is the next evolutionary step up from the One of the most obvious feature included in a is a built in.
Chapter 2: The Microprocessor and its Architecture.
Copyright ©2009 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. The Intel Microprocessors: 8086/8088, 80186/80188,
The Microprocessor and its Architecture
Princess Sumaya Univ. Computer Engineering Dept. د. بســام كحـالــه Dr. Bassam Kahhaleh.
Intel MP.
CSC 221 Computer Organization and Assembly Language
Princess Sumaya University
IA-32 Processor Architecture
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 2 The Microprocessor and its Architecture.
1 ICS 51 Introductory Computer Organization Fall 2006 updated: Oct. 2, 2006.
Assembly Language for Intel-Based Computers Chapter 2: IA-32 Processor Architecture Kip Irvine.
Microprocessors Introduction to ia32 Architecture Jan 31st, 2002.
ICS312 Set 3 Pentium Registers. Intel 8086 Family of Microprocessors All of the Intel chips from the 8086 to the latest pentium, have similar architectures.
Microprocessor Systems Design I Instructor: Dr. Michael Geiger Spring 2012 Lecture 2: 80386DX Internal Architecture & Data Organization.
80x86 Processor Architecture
Microprocessor Systems Design I Instructor: Dr. Michael Geiger Spring 2013 Lecture 4: 80386DX memory, addressing.
Microprocessor Systems Design I Instructor: Dr. Michael Geiger Spring 2014 Lecture 4: x86 memory.
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 2 The Microprocessor and its Architecture.
Gursharan Singh Tatla Block Diagram of Intel 8086 Gursharan Singh Tatla 19-Apr-17.
Unit-1 PREPARED BY: PROF. HARISH I RATHOD COMPUTER ENGINEERING DEPARTMENT GUJARAT POWER ENGINEERING & RESEARCH INSTITUTE Advance Processor.
The 8086 Microprocessor The 8086, announced in 1978, was the first 16-bit microprocessor introduced by Intel Corporation 8086 is 16-bit MPU. Externally.
Computer System A computers system has many distinct parts:  Microprocessor  Memory system  I/O system  Buses The way in which these parts are interconnected.
An Introduction to 8086 Microprocessor.
CSNB374: Microprocessor Systems Chapter 2: Intel x86 Microprocessor Architecture.
The Pentium Processor.
Faculty of Engineering, Electrical Department,
1 Fundamental of Computer Suthida Chaichomchuen : SCC
Fall 2012 Chapter 2: x86 Processor Architecture. Irvine, Kip R. Assembly Language for x86 Processors 6/e, Chapter Overview General Concepts IA-32.
The x86 Architecture Lecture 15 Fri, Mar 4, 2005.
1 ICS 51 Introductory Computer Organization Fall 2009.
(-133)*33+44* *33+44*14 Input device memory calculator Output device controller Control bus data bus memory.
Chapter 2 Parts of a Computer System. 2.1 PC Hardware: Memory.
ECE291 Computer Engineering II Lecture 3 Dr. Zbigniew Kalbarczyk University of Illinois at Urbana- Champaign.
1 Microprocessors CSE – 341 EEE – 365 \\server2\tsr\Spring\CSE\CSE341
INTRODUCTION TO INTEL X-86 FAMILY
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 2 The Microprocessor and its Architecture.
Chapter 2 The Microprocessor Architecture Microprocessors prepared by Dr. Mohamed A. Shohla.
AKT211 – CAO 04 – x86 Architecture: Intel 8088 Ghifar Parahyangan Catholic University Sept 19, 2011 Ghifar Parahyangan Catholic University Sept 19, 2011.
Information Security - 2. Other Registers EFLAGS – 32 Bit Register CFPFAFZFSFTFIFDFOFIO PL IO PL NTRFVM Bits 1,3,5,15,22-31 are RESERVED. 18: AC, 19:VIF,
MODULE 5 INTEL TODAY WE ARE GOING TO DISCUSS ABOUT, FEATURES OF 8086 LOGICAL PIN DIAGRAM INTERNAL ARCHITECTURE REGISTERS AND FLAGS OPERATING MODES.
Microprocessor and Assembly Language Addressing Models
Internal Programming Architecture or Model
Intel 8086 MICROPROCESSOR ARCHITECTURE
BITS Pilani Pilani Campus Pawan Sharma Lecture / ES C263 INSTR/CS/EEE F241 Microprocessor Programming and Interfacing.
Microprocessors CSE- 341 Dr. Jia Uddin Assistant Professor, CSE, BRAC University Dr. Jia Uddin, CSE, BRAC University.
Intel MP Organization. Registers - storage locations found inside the processor for temporary storage of data 1- Data Registers (16-bit) AX, BX, CX, DX.
Chapter 12 Processor Structure and Function. Central Processing Unit CPU architecture, Register organization, Instruction formats and addressing modes(Intel.
Chapter Overview General Concepts IA-32 Processor Architecture
Microprocessor Architecture
80486 Microprocessor The 32-bit is the next evolutionary step up from the One of the most obvious feature included in a is a built.
Difference between Microprocessor and Microcontroller
Introduction to 8086 Microprocessor
8086 Microprocessor.
Chapter 2 The Microprocessor and its Architecture
Intel 8086 MICROPROCESSOR Architecture.
Basic Microprocessor Architecture
Intel 8088 (8086) Microprocessor Structure
..
Basic of Computer Organization
Microprocessor-Unit I
Microcomputer & Interfacing Lecture 1
Chapter 2: The Microprocessor and its Architecture
Intel 8088 (8086) Microprocessor Structure
CS 301 Fall 2002 Computer Organization
The Microprocessor & Its Architecture
Computer Architecture CST 250
Chapter 2: The Microprocessor and its Architecture
Data Movement Instructions
Presentation transcript:

The Microprocessor & Its Architecture A Course in Microprocessor Electrical Engineering Department Universitas 17 Agustus 1945 Jakarta

Objectives Describe the function and purpose of each program-visible & program-invisible register Detail the flag register and the purpose of each flag bit Describe how memory is accessed using real mode memory-addressing techniques Describe how memory is accessed using protected mode memory-addressing techniques Details the operation of the memory paging mechanism

Internal µP Architecture The programming model of the 8086 through the Pentium Pro is considered program visible because its registers are used during programming and are specified by the instructions Other registers are considered program invi- sible because they are not addressable directly during applications programming, but may be used indirectly during system programming

Internal µP Architecture (cont’d) Fig. 2.1 depicts the programming model of the Pentium Pro microprocessor2.1 The earlier 8086/8/286 contain 16-bit while 80386/486/Pentium/Pro contain full 32-bit internal architecture The multipurpose register include EAX, EBX, ECX, EDX, EBP, EDI, and ESI –EAX (accumulator) is used for instructions (e.g., multiplication, division, and some of adjustment instructions) and may hold the offset address of a location in the memory

Internal µP Architecture (cont’d) –EBX (base index) registers sometimes hold the offset address of a location in the memory system –ECX (count) holds the account for various instructions –EDX (data) holds a part of the result from a multiplication or a part of the dividend before a division –EBP (base pointer) points to a memory location –EDI (destination index) addresses string destination data for the string instructions

Internal µP Architecture (cont’d) –ESI (source index) addresses source string data for the string instructions Special Purpose Registers include EIP, ESP, EFLAGS and the segment registers CS, DS, ES, SS, FS, and GS –EIP (instruction pointer) points to the next instruction in a program and is used to find the next sequential instruction in a program located within the code segment –ESP (stack pointer) addresses an area of memo- ry called the stack

Internal µP Architecture (cont’d) –EFLAGS indicate the condition of the micro- processor as well as control its operation (Fig.2.2)2.2 C (carry) holds the carry after addition or the borrow after subtraction P (parity) is a logic 0 for odd parity and a logic 1 for even parity. Parity is a count of ones in a number expressed as even or odd A (auxiliary carry) holds the carry (half-carry) after addition or the borrow after subtraction between bits position 3 and 4 of the result Z (zero) flag shows that the result of an arithmetic or logic operation. Z=1, if the result is zero. Z=0, if the result is not zero.

Internal µP Architecture (cont’d) S (sign) flag holds the arithmetic sign of the result after an arithmetic or logic instruction executes. T (trap) flag enables trapping through an on-chip debugging feature I (interrupt) flag controls the operation of the INTR (interrupt request) input pin D (direction) flag selects either the increment or decrement mode for the DI and/or SI register during string instructions O (overflow) flag indicates the result of addition or subtraction has exceeded the capacity of the machine IOPL (I/O privilege level) is used in protected mode operation to select the privilege level for I/O devices

Internal µP Architecture (cont’d) NT (nested task) flag indicates that the current task is nested within another task in protected mode operation RF (resume flag) is used with debugging to control the resumption of execution after the next instruction VM (virtual mode) flag bit selects virtual mode operation in a protected mode system AC (alignment check) flag bit activates if a word or a doubleword is addressed on a non-word or a non- doubleword boundary VIF (Virtual Interrupt Flag) is a copy of the interrupt flag bit available to the Pentium/Pro µP VIP (Virtual Interrupt Pending) provides information about a virtual mode interrupt for the Pentium/Pro µP

Internal µP Architecture (cont’d) ID (identification) flag indicates that the the Pentium/ Pro µP support the CPUID instruction Segment Registers are additional registers which generate memory addresses when combined with other registers in the µP –CS (code) is a section of memory that holds the code (programs and procedures) used by the µP The code segment register defines the starting address of the section of memory holding code –ES (extra) is an additional data segment used by some of the string instructions to hold destination data

Internal µP Architecture (cont’d) –DS (data) is a section of memory that contains most data used by a program. Data are accessed in the data segment by an offset address or the content of other registers that holds offset address –SS (stack) defines the area of memory used for the stack. The BP register also addresses data within the stack segment

REAL MODE MEMORY ADDRESSING The or above operate in either the real or protected mode Real mode operation allows the µP to address only the first 1MB of memory space (the real memory or conventional memory) A combination of a segment address and an offset address access a memory location in the real mode The segment address defines the beginning address of any 64K-byte memory segment

REAL MODE MEMORY ADDRESSING (cont’d) The offset address selects any location within the 64KB memory segment (Fig.2.3)2.3 In the real mode, each segment register is internally appended with a 0H on its rightmost end. This forms a 20-bit memory address, allowing it to access the start of a segment at any 16-byte boundary (a paragraph) within the first 1MB of memory (i.e. requires 20-bit memory address)

REAL MODE MEMORY ADDRESSING (cont’d) The µP has a set of rule that apply to segment whenever memory is addressed –The code segment register is always used with the instruction pointer to address the next instruction in a program (CS:IP or CS:EIP) The code segment register defines the start of the code segment and the instruction pointer locates the next instruction within the code segment This combination locates the next instruction executed by the microprocessor

REAL MODE MEMORY ADDRESSING (cont’d) –Another of the default combination is the stack Stack data are referenced through the stack segment at the memory location addressed by either the stack pointer (SP/ESP) or the base pointer (BP/EBP) The combinations are referred to as SS:SP or SS:BP –Other default are shown in Table 2-2 (16-bit registers) and Table 2-3 (32-bit registers) The allow four memory segments, and and above allow six memory segments (fig. 2.4)2.4 Fig. 2.5 shows how an application is stored2.5

REAL MODE MEMORY ADDRESSING (cont’d) The segment and offset addressing scheme allows both program and data to be relocated without changing anything in the programs or data –Because the memory is addressed within a segment by an offset address, the memory segment can be moved to any place in the memory system without changing any of the offset addresses, i.e., by moving the entire program as a block to a new area and then changing only the contents of the segment registers