2010年7月9日 星期五

x86暫存器

EAX (Accumulator Register) (32 bit)
EBX (Base Register) (32 bit)
ECX (Count Register) (32 bit)
EDX (Data Register) (32 bit)
ESP (Stack Pointer) (32 bit)
EBP (Base Pointer) (32 bit)
ESI (Source Index) (32bit)
EDI (Destination Index) (32bit)
FS
GS
SS (Stack Segment) (16 bit)
DS (Data Segment) (16 bit)
ES (Extra Segment) (16 bit)
CS (Code Segment) (16 bit)
EIP (Instruction Pointer) (32 bit)

RAX (EAX 64 Bit Version) (64 bit)
RBX (EBX 64 Bit Version) (64 bit)
RCX (ECX 64 Bit Version) (64 bit)
RDX (EDX 64 Bit Version) (64 bit)
RSP (ESP 64 Bit Version) (64 bit)
RBP (EBP 64 Bit Version) (64 bit)
RSI (ESI 64 Bit Version) (64 bit)
RDI (EDI 64 Bit Version) (64 bit)
RIP (EIP 64 Bit Version) (64 bit)


Flag
Over flow Flag (OF) OV(1) NV(0)
Direction Flag (DF) DN(1) UP(0)
Interrupt Flag (IF) EI(1) DI(0)
Sign Flag (SF) NG(1) PL(0)
Zero Flag (ZF) ZR(1) NZ(0)
Auxiliary Flag (AF) AC(1) NA(0)
Parity Flag (PF) PE(1) PO(0)
Carry Flag (CF) CY(1) NC(0)


整理如下圖:


參考資料:
BIOS研發技術剖析
微算機原理與接口技術
64位元微處理器應用編程

2 則留言:

匿名 提到...

It is actually a nice and helpful piece of info. I'm happy that
you simply shared this helpful info with us.
Please stay us up to date like this. Thanks for sharing.


My blog post; order bride

匿名 提到...

Family, Friends and Relatives - Actually these are your
first potential customers. Stop wondering how to make quick money online and start making it happen today.
When I get asked what is the quickest way to make money online I start to sigh.


My web blog ... money making ideas