什么是特殊用途寄存器? [英] what is special purpose register?

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

问题描述

什么是专用寄存器?

专用寄存器的名称是什么,每个寄存器都有一些说明?

What are the names of the special purpose registers, with a little description of each?

推荐答案

特殊用途寄存器是仅为一项任务而设计的寄存器.例如,csdsgs和其他段寄存器属于特殊用途寄存器,因为它们的存在是为了保存段号. eaxecx等是一般用途的寄存器,因为您可以无限制地(几乎)无限制地使用它们.例如,您不能mov es, ds,但是可以mov eax, ebx.
因此,x86上的通用寄存器为:

Special purposes register are, as the name implies, registers which are designed for just a task. For example, cs, ds, gs and the other segment registers fall into the special purpose registers, because they exist to hold segments' number. eax, ecx etc are sgeneral purpose register because you can use them for everything without (almost) no limits. For example, you can't mov es, ds, but you can mov eax, ebx.
So, general purpose registers on the x86 are:

  • eax
  • ecx
  • edx
  • ebx
  • esi
  • edi
  • ebp
  • esp

特殊用途寄存器为:

  • cs
  • ds
  • ss
  • es
  • fs
  • gs
  • eip
  • 标志

我认为他们都在这里,但是如果我忘了一个,请发表评论;)
顺便说一句可能是一个很好的资源(第一个非维基百科Google的特殊用途寄存器x86"结果) ).

I think they're all here, but if I forget one leave a comment ;)
BTW this might be a good resource (first non-wikipedia google's result for "special purpose register x86").

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

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