|
|
发表于 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 |
|