EFLAGS寄存器内容详解
来源:互联网 发布:移动大数据平台叫什么 编辑:程序博客网 时间:2024/04/27 14:34
EFLAGS寄存器介绍,摘自Intel指令集参考,方便大家快速查阅。
The 32-bit EFLAGS register contains a group of status flags, a control flag, and a group of system flags. Figure 3-8 defines the flags within this register. Following initialization of the processor (either by asserting the RESET pin or the INIT pin), the state of the EFLAGS register is 00000002H. Bits 1, 3, 5, 15, and 22 through 31 of this register are reserved. Software should not use or depend on the states of any of these bits.
Some of the flags in the EFLAGS register can be modified directly, using specialpurpose instructions (described in the following sections). There are no instructions that allow the whole register to be examined or modified directly.
The following instructions can be used to move groups of flags to and from the procedure stack or the EAX register: LAHF, SAHF, PUSHF, PUSHFD, POPF, and POPFD. After the contents of the EFLAGS register have been transferred to the procedure stack or EAX register, the flags can be examined and modified using the processor’s bit manipulation instructions (BT, BTS, BTR, and BTC).
When suspending a task (using the processor’s multitasking facilities), the processor automatically saves the state of the EFLAGS register in the task state segment (TSS) for the task being suspended. When binding itself to a new task, the processor loads the EFLAGS register with data from the new task’s TSS.
When a call is made to an interrupt or exception handler procedure, the processor automatically saves the state of the EFLAGS registers on the procedure stack. When an interrupt or exception is handled with a task switch, the state of the EFLAGS register is saved in the TSS for the task being suspended.
As the IA-32 Architecture has evolved, flags have been added to the EFLAGS register, but the function and placement of existing flags have remained the same from one family of the IA-32 processors to the next. As a result, code that accesses or modifies these flags for one family of IA-32 processors works as expected when run on later families of processors.
- EFLAGS寄存器内容详解
- x86—EFLAGS寄存器详解
- x86—EFLAGS寄存器详解
- x86—EFLAGS寄存器详解
- x86—EFLAGS寄存器详解
- x86—EFLAGS寄存器详解
- x86—EFLAGS寄存器详解
- eflags寄存器
- EFLAGS寄存器
- EFLAGS寄存器
- EFLAGS Register-EFLAGS寄存器
- gcc 修改 Eflags 寄存器
- 关于EFLAGS寄存器介绍
- EFLAGS寄存器部分说明
- EFLAGS寄存器介绍
- 状态标志寄存器--EFLAGS
- 7.标志寄存器-EFLAGS寄存器与其用途
- 汇编基础教程(一)——寄存器介绍(EFlags)
- 阅读的时候走神怎么办?
- Helix移植(三)编译目标程序
- js验证
- js动态的级联二级菜单
- 幽默笑话[转]
- EFLAGS寄存器内容详解
- .NET平台下WEB应用程序的部署(安装数据库和自动配置)
- 3g 图书的需求
- 循环中产生伪随机数
- 再也不要吃方便面了
- Windows Web Server 2003,2008或者64位操作系统安装sqlserver2000企业版的解决方案
- VC++“气球式”工具提示
- Linux根文件系统结构再认识
- Hash Join 一定是选择小表作为驱动表吗