为什么 x86 寄存器的命名方式如此? [英] Why are x86 registers named the way they are?
本文介绍了为什么 x86 寄存器的命名方式如此?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
例如,累加器被命名为EAX
,而指令指针被称为IP
.我也知道有称为 CL
和 DH
的字节.我知道所有名称都必须有一个约定,但它是什么?
For example, the accumulator is named EAX
and, while the instruction pointer is called IP
. I also know that there are bytes called CL
and DH
. I know there must be a convention to all of the names, but what is it?
推荐答案
C 和 D 是数字/类型,H 代表高寄存器的高部分,L 代表低部分.http://en.wikipedia.org/wiki/X86
The C and the D are numbers/types and H for high and L for low parts of the higher register. http://en.wikipedia.org/wiki/X86
维基百科解释得很好.
更多来自维基百科:
- AX/EAX/RAX:累加器
- BX/EBX/RBX:基础
- CX/ECX/RCX:计数器
- DX/EDX/RDX:数据/一般
这篇关于为什么 x86 寄存器的命名方式如此?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文