为什么用x86寄存器命名它们? [英] Why are x86 registers named the way they are?

查看:77
本文介绍了为什么用x86寄存器命名它们?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,累加器的名称为EAX,而指令指针的名称为IP.我也知道有称为CLDH的字节.我知道所有名称都必须有一个约定,但这是什么?

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

维基百科解释得很好.

更多来自维基百科:

  1. AX/EAX/RAX:累加器
  2. BX/EBX/RBX:基本
  3. CX/ECX/RCX:计数器
  4. DX/EDX/RDX: 数据/常规
  1. AX/EAX/RAX: accumulator
  2. BX/EBX/RBX: base
  3. CX/ECX/RCX: counter
  4. DX/EDX/RDX: data/general

这篇关于为什么用x86寄存器命名它们?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆