(-133)*33+44*14.5. 133*33+44*14 Input device memory calculator Output device controller Control bus data bus memory.

Slides:



Advertisements
Similar presentations
Register In computer architecture, a processor register is a small amount of storage available on the CPU whose contents can be accessed more quickly than.
Advertisements

Chapter 2 (cont.) An Introduction to the 80x86 Microprocessor Family Objectives: The different addressing modes and instruction types available The usefulness.
The Intel Microprocessors. --from 8086 to Pentium
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#3) By Dr. Syed Noman.
Princess Sumaya Univ. Computer Engineering Dept. د. بســام كحـالــه Dr. Bassam Kahhaleh.
Intel MP.
Lect 3: Instruction Set and Addressing Modes. 386 Instruction Set (3.4) –Basic Instruction Set : 8086/8088 instruction set –Extended Instruction Set :
Azir ALIU 1 What is an assembly language?. Azir ALIU 2 Inside the CPU.
Princess Sumaya University
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 2 The Microprocessor and its Architecture.
Assembly Language Advantages 1. It reveals the secret of your computer’s hardware and software. 2. Speed. 3. Some special applications and occasions. Disadvantages.
Assembly Language for Intel-Based Computers Chapter 2: IA-32 Processor Architecture Kip Irvine.
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.
80x86 Processor Architecture
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.
The 8086 Microprocessor The 8086, announced in 1978, was the first 16-bit microprocessor introduced by Intel Corporation 8086 is 16-bit MPU. Externally.
Lect 4: Instruction Set and Addressing Modes. 386 Instruction Set (3.4)  Basic Instruction Set : 8086/8088 instruction set  Extended Instruction Set.
An Introduction to 8086 Microprocessor.
CSNB374: Microprocessor Systems Chapter 2: Intel x86 Microprocessor Architecture.
The Pentium Processor.
The Pentium Processor Chapter 3 S. Dandamudi To be used with S. Dandamudi, “Introduction to Assembly Language Programming,” Second Edition, Springer,
1 Fundamental of Computer Suthida Chaichomchuen : SCC
Types of Registers (8086 Microprocessor Based)
INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
CET 3510 Microcomputer Systems Tech. Lecture 2 Professor: Dr. José M. Reyes Álamo.
Chapter 2 Parts of a Computer System. 2.1 PC Hardware: Memory.
Computers organization & Assembly Language Chapter 1 THE 80x86 MICROPROCESSOR.
X86 Assembly Language We will be using the nasm assembler (other assemblers: MASM, as, gas)
1 Microprocessors CSE – 341 EEE – 365 \\server2\tsr\Spring\CSE\CSE341
6-4 CPU-Registers, effective address General registers vs Segment registers Computer Studies (AL)
INTRODUCTION TO INTEL X-86 FAMILY
Chapter 2 The Microprocessor Architecture Microprocessors prepared by Dr. Mohamed A. Shohla.
University of Sargodha, Lahore Campus Prepared by Ali Saeed.
MODULE 5 INTEL TODAY WE ARE GOING TO DISCUSS ABOUT, FEATURES OF 8086 LOGICAL PIN DIAGRAM INTERNAL ARCHITECTURE REGISTERS AND FLAGS OPERATING MODES.
Assembly Language Data Movement Instructions. MOV Instruction Move source operand to destination mov destination, source The source and destination are.
Internal Programming Architecture or Model
Computer Organization & Assembly Language University of Sargodha, Lahore Campus Prepared by Ali Saeed.
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.
The Microprocessor & Its Architecture A Course in Microprocessor Electrical Engineering Department Universitas 17 Agustus 1945 Jakarta.
Microprocessors CSE- 341 Dr. Jia Uddin Assistant Professor, CSE, BRAC University Dr. Jia Uddin, CSE, BRAC University.
ΜComputer Structure μProcessor Memory Bus System I/O Ports.
Introduction to 8086 Microprocessor
8086 Microprocessor.
ADDRESSING MODES.
Chapter 2 The Microprocessor and its Architecture
Chapter 4 Data Movement Instructions
Basic Microprocessor Architecture
Assembly IA-32.
ADDRESSING MODES.
Intel 8088 (8086) Microprocessor Structure
Basic of Computer Organization
Symbolic Instruction and Addressing
Chapter 2: The Microprocessor and its Architecture
Introduction to Assembly Language
Intel 8088 (8086) Microprocessor Structure
8086 Registers Module M14.2 Sections 9.2, 10.1.
CS-401 Computer Architecture & Assembly Language Programming
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Symbolic Instruction and Addressing
CS 301 Fall 2002 Computer Organization
The Microprocessor & Its Architecture
Symbolic Instruction and Addressing
Computer Architecture CST 250
Chapter 2: The Microprocessor and its Architecture
Unit-I 80386DX Architecture
Chapter 6 –Symbolic Instruction and Addressing
Intel 8086.
Presentation transcript:

(-133)*33+44*14.5

133*33+44*14 Input device memory calculator Output device controller Control bus data bus memory

Chapter 3

(-133)*33+44*14.5 Where do we store our data and code? How can we get them?

Store program and data in memory Find them by their addresses Addressing mode is based on the architecture of CPU.

Chapter 3: Microprocessor and its Architecture 3.1 Internal Microprocessor Architecture 3.2 Real Mode Memory Addressing 3.3 Protected Mode Memory Addressing

3.1 Internal Microprocessor Architecture

8+6 MOV AL,8 MOV BL,6 ADD AL,BL

3.1 Internal Microprocessor Architecture

The programming model of the Intel 8086 through the Petium II is in Figures following. The shaded areas registers exits only on the through the Petium II.

3.1 Internal Microprocessor Architecture AH AL BH BL CH CL DH DL SP BP DI SI AX BX CX DX SP BP DI SI Accumulator Base index Count Data Stack pointer Base pointer Destination index Source index Multipurpose Registers DR PR IR 16 bits

3.1 Internal Microprocessor Architecture IP FLAGS IP FLAGS Instruction pointer Flags CS DS ES SS Code 16bit Data Extra Stack Special purpose registers Segment registers

3.1 Internal Microprocessor Architecture AH AL BH BL CH CL DH DL SP BP DI SI EAX EBX ECX EDX ESP EBP EDI ESI Accumulator Base index Count Data Stack pointer Base pointer Destination index Source index Multipurpose Registers DR PR IR 32 bit

3.1 Internal Microprocessor Architecture IP FLAGS EIP EFLAGS Instruction pointer Flags CS DS ES SS FS GS Code Data Extra Stack Special purpose registers Segment registers

3.1 Internal Microprocessor Architecture Registers Operations EAXADD,SUB,I/O EBXTRANSFER ECXCYCLE EDXMUL,DIV,I/O EIPInstructor pointer EBPBase pointer ESPStack pointer

3.1 Internal Microprocessor Architecture EFLAGSC,P,A,Z,I,O…… CScode segment DS data segment ESAdditional data Segment SSstack segment

3.1 Internal Microprocessor Architecture OFOF DFDF IFIF TFTF SFSF ZFZF UAFAF UPFPF UCFCF FLAG of 8086 Undefined CarryParity Auxiliary carry zero sign trap interrupt direc tion overflow

3.2 Real Mode Memory Addressing

We can get those data by their addresses. But how? Real mode memory addressing can do that. It can be used in 8086 and above.

3.2 Real Mode Memory Addressing Real mode memory addressing Physical address = (segment address)*10H + offset address Offset address Ranges from 0000H to FFFFH 8 bit 00000H 0FFFFFH 10001H 10002H

CS =0000H Offset 0000H, 0FFFFH CS + offset = 00000H,-----0FFFFH CS = 0001H Offset 0000H, 0FFFFH CS + offset = 00010H, FH More examples on table 2.1

3.2 Real Mode Memory Addressing 8 bit 00000H 0FFFFFH 10001H 10002H 8 bit DATA SEGMENT CODE SEGMENT DS = 1000H CS

3.2 Real Mode Memory Addressing 1FFFF 1F Segment register k a memory segment offset F Physical address 1F000 FFFFF Max Physical Address is 1M

3.2 Real Mode Memory Addressing In real mode the length of memory segment is 64k(FFFFH). segment end address = segment start address + FFFFH

3.2 Real Mode Memory Addressing The rules of memory addressing define a default combination of segment register and offset register.( 存储段地址 和偏移量地址的寄存器有规定的组合方 式 ).

3.2 Real Mode Memory Addressing Combination is: –CS+IP/EIP locating the next instruction in code segment –SS+SP/ESP or SS+BP/EBP locating data in stack segment –DS+ memory offset locating data in data segment The max offset is 64k

3.2 Real Mode Memory Addressing Combination is: –When EIP/ESP/EBP is used in an instruction, only the left 16 bits are available as the offset address whose value is from 0 to 0FFFFH. –See paragraph 2. The max offset is 64k

3.2 Real Mode Memory Addressing Segment and offset addressing scheme allows relocation. Move the program to a new area of memory without changing the offset, but only change the contents of the segment registers. Segment start address is allocated by DOS.

3.2 Real Mode Memory Addressing Now we have learned about multipurpose registers, special-purpose registers and real mode memory addressing.

00000H 0FFFFFH 1FFFFH 2FFFFH 49000H 58FFFH MEMMORY 1M ES 20000H DS 0FFFFH Figure 2.4 REAL MODE MEMORY ADDRESS CS SS 34000H 34FFFH 64K

Figure 2.5 STACKSTACK DATADATA CODECODE 00000H 0FFFFFH 0A0EFH 0A27FH 0A0F0H CS 090F0H DS 0A280H 0A47FH SS 64K

3.2 Real Mode Memory Addressing The max physical address is FFFFFH in real mode memory addressing. So we can only find 1M memory. Question : If we have a memory of 128M, how can we get their address in the mode? Are the left 127M disabled?

3.3 Protected Mode Memory Addressing

Protected mode memory addressing is used in and above. For and above the max physical address is 4G in this mode.

3.3 Protected Mode Memory Addressing

PROTECT MODE MEMORY ADDRESSING –Physical address = base address + offset selector Segment register descriptor Local/Global descriptor table1(8192*2) Right Base address (24/32 bits) Limit Segment base address Segment length From operand

3.3 Protected Mode Memory Addressing

See p59 2.6