O PERATING I N R EAL M ODE Prof.P.C.Patil Department of Computer Engg Matoshri College of Engg.Nasik M ICROPROCESSOR A RCHITECTURE.

Slides:



Advertisements
Similar presentations
Intel 8086.
Advertisements

Assembly Language – 1.
8086 Ahad.
Computer Science Education
Microprocessor Architecture Pipelined Architecture
More Intel machine language and one more look at other architectures.
Memory Management Unit
O PERATING I N P ROTECTED M ODE Prof.P.C.Patil Department of Computer Engg Matoshri College of Engg.Nasik M ICROPROCESSOR A RCHITECTURE.
Block Diagram of Intel 8086 Engr.M.Zakir Shaikh
Gursharan Singh Tatla Math Co-Processor Nov-10 Gursharan Singh Tatla
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.
Judul Mata Kuliah Judul Pokok Bahasan 1/total Data Movement Instructions.
Registers of the 8086/ /2002 JNM.
Chapter 2 (cont.) An Introduction to the 80x86 Microprocessor Family Objectives: The different addressing modes and instruction types available The usefulness.
There are two types of addressing schemes:
MICROPROCESSORS TWO TYPES OF MODELS ARE USED :  PROGRAMMER’S MODEL :- THIS MODEL SHOWS FEATURES, SUCH AS INTERNAL REGISTERS, ADDRESS,DATA & CONTROL BUSES.
Intel MP.
Lect 3: Instruction Set and Addressing Modes. 386 Instruction Set (3.4) –Basic Instruction Set : 8086/8088 instruction set –Extended Instruction Set :
TK 2633 Microprocessor & Interfacing
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 2 The Microprocessor and its Architecture.
3-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL Intel 8088 (8086) Microprocessor.
Room: E-3-31 Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 1: Introduction to 8085 Assembly Language.
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.
Unit-1 PREPARED BY: PROF. HARISH I RATHOD COMPUTER ENGINEERING DEPARTMENT GUJARAT POWER ENGINEERING & RESEARCH INSTITUTE Advance Processor.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
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.
UNIT 2 Memory Management Unit and Segment Description and Paging
An Introduction to 8086 Microprocessor.
Intel MP (32-bit microprocessor) Designed to overcome the limits of its predecessor while maintaining the software compatibility with the.
Multitasking Mr. Mahendra B. Salunke Asst. Prof. Dept. of Computer Engg., STES SITS, Narhe, Pune-41 STES Sinhgad Institute of Tech. & Science Dept. of.
Types of Registers (8086 Microprocessor Based)
Fall 2012 Chapter 2: x86 Processor Architecture. Irvine, Kip R. Assembly Language for x86 Processors 6/e, Chapter Overview General Concepts IA-32.
INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
(-133)*33+44* *33+44*14 Input device memory calculator Output device controller Control bus data bus memory.
Block diagram of 8086.
Chapter 2 The Microprocessor Architecture Microprocessors prepared by Dr. Mohamed A. Shohla.
Fundamentals of Programming Languages-II
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
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.
The Microprocessor & Its Architecture A Course in Microprocessor Electrical Engineering Department Universitas 17 Agustus 1945 Jakarta.
Assembly Language Addressing Modes. Introduction CISC processors usually supports more addressing modes than RISC processors. –RISC processors use the.
I NTEL 8086 M icroprocessor بسم الله الرحمن الرحيم 1.
Microprocessors CSE- 341 Dr. Jia Uddin Assistant Professor, CSE, BRAC University Dr. Jia Uddin, CSE, BRAC University.
Chapter Overview General Concepts IA-32 Processor Architecture
Microprocessor Architecture
Stack Operations Dr. Hadi AL Saadi.
Assembly language.
Microprocessor Systems Design I
Introduction to 8086 Microprocessor
Computer Organization & Assembly Language Chapter 3
Basic Microprocessor Architecture
Intel 8088 (8086) Microprocessor Structure
Basic of Computer Organization
Intel 8088 (8086) Microprocessor Structure
CS 301 Fall 2002 Computer Organization
The Microprocessor & Its Architecture
Lecture 06 Programming language.
Computer Architecture CST 250
Presentation transcript:

O PERATING I N R EAL M ODE Prof.P.C.Patil Department of Computer Engg Matoshri College of Engg.Nasik M ICROPROCESSOR A RCHITECTURE UOP S.E.C OMP (S EM -I)

Introduction 2

The microprocessor can operate basically in either Real Mode, or Protected Mode. When is reset or powered up it is initialized in Real Mode. The maintains the compatibilify of the object code with 8086 and running in real mode. In this mode, the supports same architecture as the 8086, but it can access the 32-bit register set of 80386DX. In real mode, it is also possible to use addressing modes with the 32-bit override instruction prefixes. Introduction 3

Real Mode Programming Model 4

The programming model makes it easier to understand the microprocessor in a programming environment. The real mode programming model gives the programming environment for 80386DX in real mode. It shows only those parts of the microprocessor which the programmer can use such as various registers within the microprocessor. Real Mode Programming Model 5

6

In the diagram, only the shaded portion is a part of real mode. It consists of eight 16-bit registers (IP, CS, DS, SS, ES, FS, GS and Flag register) and eight 32-bit registers (EAX, EBX, ECX, EDX, ESP, EBP, ESI, EDD). In real mode, 80386DX can access CR0 which is used to enter into the protected mode. The Protection Enable bit (PE) is used to switch the 80386DX from real to protected mode. Real Mode Programming Model 7

80386DX in real mode is a 8085 with extended registers and two additional data segment registers such as FS and GS. It implements separate memory and I/O address space. Memory space is 1,048,576 bytes (l Mbyte) and the I/O address space is 65,536 bytes (64 kbytes), which is similar to 8086 memory and I/O address space. Real Mode Programming Model 8

Memory Addressing in Real Mode 9

10 Memory Addressing in Real Mode

In Real Mode, memory size is limited to 1 Mbyte. Due to this, only A2-A19 address lines are active. The higher address lines A20-A31 are normally high. Even though 1 Mbyte memory address space is available in real mode, all this memory cannot be active at one time.. Actually, the 1 M bytes of memory is partitioned into 64 K (65536) byte segments. A segment represents an independently addressable unit of memory consisting of 64 K consecutive byte- wide storage locations. Memory Addressing in Real Mode 11

Each segment has its own starting address i.e the lowest-addressed byte storage location. The segment registers hold the starting addresses of the active segments in the entire memory. In 80386DX, only six out of 16 (1 Mbyte / 64 kbyte) 64 kbyte segments can be active at a time. (Code segment, Stack Segment, Data segment, D, E, F and G ) Memory Addressing in Real Mode 12

Real Mode Differences between the 8086 and

1. lnstruction Clock Counts : Due to pipelined architecture of 80386, it takes fewer clocks for most instructions than the 8086/8088. The critical delay routines (where the exact time calculations are required) may be affected due to the change in the instruction execution time. 2. Undefined 8086/8088 Opcodes : An exception 6 is generated for one of the new instructions defined for the is executed and its opcode is not defined for 8086/8088. Differences between the 8086 and

3. lnstruction Length Limit : The 8086/8083 has no instruction length limit, but the generates exception 13 when it encounters an instruction longer than its 15-byte instruction limit. This condition is generated by putting redundant prefixes before an instruction. 4. Divide Exceptions : An unsuccessful DIV instruction causes an exception 0. In 80386, divide exception save CS:IP value pointing to the instruction that failed. In 8086/8088, the CS:IP value points to the next instruction. 15 Differences between the 8086 and 80386

5. Values Written by PUSH SP : The pushes different values on the stack for PUSH SP than the 8086/ pushes the value of SP before SP is incremented as part of the push operation, whereas 8086/8083 pushes the value of SP after it is incremented. 6. Shift or Rotate by More than 31-Bits : In 8086, shift/rotate for more than 1-bit can be achieved by loading the count in CL register. The restricts this count to low-order five bits. This limits the count to a maximum of 31-bits, thereby limiting the time that interrupt response is delayed while the instruction is executing. 16 Differences between the 8086 and 80386

7. Operand Crossing Offset 0 or 65,535 : On the 8086, an attempt to access a memory operand that crosses offset 65,535(e.g. MOV a word to offset 65,535) or offset 0 (e.g. PUSH a word when SP = 1) causes the offset to wrap around modulo 65,536. This means that the next instruction byte is fetched from byte 0 or byte of the same segment, when operand crosses or offset 0 respectively. The raises an exception in these cases. The exception 13 is generated if it is a CS, DS, ES, FS, or GS segment and exception 12 is generated if it is a stack segment (SS). 17 Differences between the 8086 and 80386

8. LOCK is Restricted to Certain lnstructions : As we know, the LOCK prefix and its corresponding output signal is used to prevent other bus masters from interrupting a data movement operations. The restricts the use of LOCK prefix while updating memory to following instructions ADD, ADC, AND, BTC, BTS, BTR DEC, INC, NEG, NOT, OR, SBB, SUB, XCHC, AND XOR. The generates an undefined-opcode exception (interrupt 6) if LOCK prefix is used before any other instruction. 18 Differences between the 8086 and 80386

9. Flags in Stack : The setting of the flags stored by PUSHF, by interrupts, and by exceptions is different from that stored by the 8086 in bit positions 12 through 15. In the 8086, these bits are stored as ones, but in real-address mode bit 15 is always zero, and bits 12 through 14 reflect the last value loaded into them. 19 Differences between the 8086 and 80386