LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1008|回复: 15

正在读ProgrammingGroundUp,有一句话不知什么意思

[复制链接]
发表于 2008-12-31 15:46:25 | 显示全部楼层 |阅读模式
Note that on x86 processors, even the general-purpose registers have some special pur-
poses, or used to before it went 32-bit.
这事第25页注脚中的一句话
谢谢
发表于 2008-12-31 16:00:59 | 显示全部楼层
Although the main registers are "general-purpose" and can be used for anything, it was envisaged that they be used for the following purposes:
   * AX/EAX/RAX: accumulator
    * BX/EBX/RBX: base
    * CX/ECX/RCX: counter
    * DX/EDX/RDX: data/general
    * SI/ESI/RSI: "source index" for string operations.
    * DI/EDI/RDI: "destination index" for string operations.
    * SP/ESP/RSP: stack pointer for top address of the stack.
    * BP/EBP/RBP: stack base pointer for holding the address of the current stack frame.
    * IP/EIP/RIP: instruction pointer. Holds the current instruction address.

from: http://en.wikipedia.org/wiki/X86#Purpose
回复 支持 反对

使用道具 举报

发表于 2008-12-31 16:41:06 | 显示全部楼层
used to
曾经
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-12-31 17:32:35 | 显示全部楼层
Post by zhllg;1932272
used to
曾经


在进入32位以前也是这样

谢谢
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-12-31 17:51:05 | 显示全部楼层
Other instructions may have an operand hardcoded in.
又碰到一句不懂的,请问这是什么意思?谢谢
回复 支持 反对

使用道具 举报

发表于 2008-12-31 18:10:13 | 显示全部楼层
translate.google.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-12-31 18:20:23 | 显示全部楼层
Post by kpld;1932305
translate.google.com


这个不靠普吧
回复 支持 反对

使用道具 举报

发表于 2008-12-31 18:29:26 | 显示全部楼层
you know what is operand?
what is hardcode?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-12-31 19:12:48 | 显示全部楼层
谢谢,你很善于启发新手哦
回复 支持 反对

使用道具 举报

发表于 2008-12-31 19:30:29 | 显示全部楼层
Note that on x86 processors, even the general-purpose registers have some special purposes, or used to before it went 32-bit.

需要注意的是在x86处理器中,所谓的通用寄存器也会有特殊的用途,至少在x86系列的CPU变成32位以前是这样。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表