Name Length(bits)
Use/comments
EAX 32
accumulator, general use;
low-order-word AX, divided into bytes AH and AL
EBX 32
general use;
ECX 32
general use;
low-order-word CX, divided into bytes CH and CL
EDX 32
general use;
low-order-word DX, divided into bytes DH and DL
ESI 32
source index; source address in string moves, array index
EDI 32
destination index; address of destination, array index
ESP 32
stack pointer; address of top of stack
EBP 32
base pointer; address of reference point in the stack
CS 16
holds selector for code segment
DS 16
holds selector for data segment
ES 16
holds selector for extra segment
SS 16
holds selector for stack segment
FS 16
holds selector for additional segment
GS 16
holds selector for additional segment
EIP 32
instruction pointer; address of next instruction to be fetched
EFLAGS 32
collection of flags, or status bits
|
Bit |
Mnemonic |
Usage |
|
0 |
CF |
Carry flag |
|
2 |
PF |
Parity flag |
|
6 |
ZF |
Zero flag |
|
7 |
SF |
Sign flag |
|
10 |
DF |
Direction flag |
|
11 |
OF |
Overflow flag |
本文深入解析了计算机架构中的寄存器及其使用方法,包括EAX、EBX、ECX、EDX、ESI、EDI、ESP、EBP等,以及EIP和EFLAGS的详细解释。

4342

被折叠的 条评论
为什么被折叠?



