为什么用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: 数据/常规
- AX/EAX/RAX: accumulator
- BX/EBX/RBX: base
- CX/ECX/RCX: counter
- DX/EDX/RDX: data/general
这篇关于为什么用x86寄存器命名它们?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文