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,

Slides:



Advertisements
Similar presentations
Memory Management Unit
Advertisements

Block Diagram of Intel 8086 Engr.M.Zakir Shaikh
Prof. Muhammad Saeed I. 1/27/2015 Computer Architecture & Assembly Language 2.
Introduction to The x86 Microprocessor
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.
The Microprocessor and its Architecture
Unit 4 Chapter-1 Multitasking. The Task State Segment.
16.317: Microprocessor System Design I
Intel MP.
Microprocessors system architectures – IA32 real and virtual-8086 mode Jakub Yaghob.
Microprocessor system architectures– IA32 debugging and performance monitoring Jakub Yaghob.
IA-32 Processor Architecture
Memory Management (II)
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 2 The Microprocessor and its Architecture.
Introduction to Interrupts
© 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.
UNIT 2 Memory Management Unit and Segment Description and Paging
Intel
Interrupts. What Are Interrupts? Interrupts alter a program’s flow of control  Behavior is similar to a procedure call »Some significant differences.
80386DX.
Address Translation Mechanism of 80386
Electrical Engineering Department Engineering College Prince Sattam bin Abdul Aziz University Text Book: - Triebel and Singh, "The 8088 and 8086 Microprocessors",
Multitasking Mr. Mahendra B. Salunke Asst. Prof. Dept. of Computer Engg., STES SITS, Narhe, Pune-41 STES Sinhgad Institute of Tech. & Science Dept. of.
Lecture 4 ( Assembly Language).
System Address Registers/Memory Management Registers Four memory management registers are used to specify the locations of data structures which control.
80386DX.
UNIT-I 80386DX functional Block Diagram PIN Description Register set
1 i386 Memory Management Professor Ching-Chi Hsu 1998 年 4 月.
Virtual 8086 Mode  The supports execution of one or more 8086, 8088, 80186, or programs in an protected-mode environment.  An 8086.
EFLAG Register of The The only new flag bit is the AC alignment check, used to indicate that the microprocessor has accessed a word at an odd.
80386DX. Programming Model The basic programming model consists of the following aspects: – Registers – Instruction Set – Addressing Modes – Data Types.
3.4 Addressing modes Specify the operand to be used. To generate an address, a segment register is used also. Immediate addressing: the operand is a number.
1 Microprocessors CSE – 341 EEE – 365 \\server2\tsr\Spring\CSE\CSE341
Introduction to Microprocessors Chapter 3. Programming Model (8086)  Shows the various internal registers that are accessible to the programmer.
INTRODUCTION TO INTEL X-86 FAMILY
Information Security - 2. Descriptor Tables Descriptors are stored in three tables: – Global descriptor table (GDT) Maintains a list of most segments.
Information Security - 2. CISC Vs RISC X86 is CISC while ARM is RISC CISC is Compiler’s heaven while RISC is Architecture’s heaven Orthogonal ISA in RISC.
Intel 8086 MICROPROCESSOR ARCHITECTURE
The Microprocessor & Its Architecture A Course in Microprocessor Electrical Engineering Department Universitas 17 Agustus 1945 Jakarta.
Microprocessor Architecture
Introduction to assembly language programming and Computer Architecture By Anand George SourceLens.org Copyright. All rights reserved. Content Owner -
32- bit Microprocessor-Intel 80386
Protection in Virtual Mode
An Interrupt is either a Hardware generated CALL (externally derived from a hardware signal) OR A Software-generated CALL (internally derived from.
Introduction to The x86 Microprocessor
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.
MICROPROCESSOR BASED SYSTEM DESIGN
Microprocessor and Assembly Language
Introduction to 8086 Microprocessor
Address Translation Mechanism of 80386
8086 Microprocessor.
Chapter 2 The Microprocessor and its Architecture
EE3541 Introduction to Microprocessors
Basic Microprocessor Architecture
contains 8086 processor and several additional functional chips: clock generator 2 independent DMA channels PIC 3 programmable 16-bit timers.
Intel 8088 (8086) Microprocessor Structure
..
Chapter 2: The Microprocessor and its Architecture
Operating Modes UQ: State and explain the operating modes of X86 family of processors. Show the mode transition diagram highlighting important features.(10.
Intel 8088 (8086) Microprocessor Structure
CS 301 Fall 2002 Computer Organization
University of Gujrat Department of Computer Science
The Microprocessor & Its Architecture
Chapter 2: The Microprocessor and its Architecture
UNIT-VII Advanced Micro Processors Introduction to 80286
REGISTER ORGANIZATION OF 80386
First Generation 32–Bit microprocessor
Presentation transcript:

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, 20: VIP, 21:ID

Details of the flags CF – Carry Flag – Set by arithmetic instructions that generate a carry or borrow. Also can be set, inverted and cleared with the STC, CLC or CMC instructions respectively. PF – Parity Flag – Set by most instructions if the least significant eight bits of the destination operand contain an even number of 1 bits.

Details of the flags AF – Auxiliary Flag – If a carry or borrow from the most significant nibble of the least significant byte – Aids BCD arithmetic ZF – Zero Flag – Set by most instructions if the result of the arithmetic operation is zero

Details of the flags SF – Sign Flag – On signed operands, this tells whether the result is positive or negative TF – Trace Flag – On being set it allows single-step through programs. Executes exactly one instruction and generates an internal exception 1 (debug fault)

Details of the flags IF – Interrupt Flag – When set, the processor recognizes the external hardware interrupts on INTR pin. On clearing, anyway has not effect on NMI (external non maskable interrupt) pin or internally generated faults, exceptions, traps etc. This flag can be set and cleared using the STI and CLI instructions respectively DF – Direction Flag – Specifically for string instructions. DF = 1 increments ESI and EDI, while DF = 0 decrements the same. Set and cleared by STD and CLD instructions

Details of the flags OF – Overflow Flag – Most arithmetic instructions set this flag to indicate that the result was at least 1 bit too large to fit in the destination IOPL – Input Output Privilege Level flags – For protected mode operations – indicates the privilege level, 0 to 3, at which your code must be running in order to execute any I/O-related instructions

Details of the flags NT – Nested Task Flag – When set, it indicates that one system task has invoked another through a CALL instruction as opposed to a JMP. For multitasking this can be manipulated to our advantage RF – Resume Flag – It is related to Debug registers DR6 and DR7. By setting this, you can selectively mask some exceptions while you are debugging code

Details of the flags VM – Virtual 8086 mode flag – When it is set, the x86 processor is basically converted into a high- speed 8086 processor. AC (bit 18) Alignment check flag — Set this flag and the AM bit in the CR0 register to – enable alignment checking of memory references; clear the AC flag and/or the – AM bit to disable alignment checking. VIF (bit 19) Virtual interrupt flag — Virtual image of the IF flag. Used in conjunction – with the VIP flag. (To use this flag and the VIP flag the virtual mode extensions – are enabled by setting the VME flag in control register CR4.)

Details of the flags VIP (bit 20) Virtual interrupt pending flag — Set to indicate that an interrupt is pending; – clear when no interrupt is pending. (Software sets and clears this flag; the – processor only reads it.) Used in conjunction with the VIF flag. ID (bit 21) Identification flag — The ability of a program to set or clear this flag indicates – support for the CPUID instruction.

Protected Mode Registers LDTR – Local Descriptor Table Register – 16 bits GDTR – Global Descriptor Table Register – 48 bits IDTR – Interrupt Descriptor Table Register – 48 bits TR – Task register – 16 bits

Other System Registers Control – CR0, CR2, CR3 (each 32-bits) – CR0 is very important Bit 0 – PE bit – when set processor in protected mode else real mode Bit 3 – TS bit – The processor sets this bit automatically every time it performs a task switch. This can be cleared using a CLTS instruction Bit 31 – PG bit – when set paging MMU is enabled else it is disabled

Other System Registers Control – CR0, CR2, CR3 (each 32-bits) – CR2 – Read only register – deposits the last 32-bit linear address that caused a page-fault – CR3 – Stores the physical address of the PDB – Page Directory Base register. The paging tables are to be 4KB aligned and hence the 12 least significant bits are not stored and ignored

Other System Registers Debug Registers – DR0, DR1, DR2, DR3, DR6, DR7 – DR0-DR3 can hold four linear address breakpoints so that of the processor generates these addresses a debug exception (Interrupt 1) is caused – DR6 – Debug status register indicating the circumstances that may have caused the last debug fault – DR7 – Debug control register. By filling in the various fields of this register, you can control the operation of the four linear address breakpoints

Other System Registers Test Registers – TR6 and TR7 – Used to perform confidence checking on the paging MMU’s Translation Lookaside Buffer (TLB).

End of Session-9 Thank You