gpt4 book ai didi

assembly - 新的 X86_64 处理器寄存器的名称是什么?

转载 作者:行者123 更新时间:2023-12-03 05:52:35 29 4
gpt4 key购买 nike

在哪里可以找到用于在此架构上进行组装的新寄存器的名称?

我指的是 X86 中的寄存器,如 EAX、ESP、EBX 等。但我希望它们是 64 位的。

我认为它们与我反汇编 C 代码时不同,我得到的是 r 而不是 e。

最佳答案

MSDN documentation包括有关 x64 寄存器的信息。

x64 extends x64's 8 general-purpose registers to be 64-bit, and adds 8 new 64-bit registers. The 64-bit registers have names beginning with "r", so for example the 64-bit extension of eax is called rax. The new registers are named r8 through r15.

The lower 32 bits, 16 bits, and 8 bits of each register are directly addressable in operands. This includes registers, like esi, whose lower 8 bits were not previously addressable. The following table specifies the assembly-language names for the lower portions of 64-bit registers.

64-bit register | Lower 32 bits | Lower 16 bits | Lower 8 bits
==============================================================
rax | eax | ax | al
rbx | ebx | bx | bl
rcx | ecx | cx | cl
rdx | edx | dx | dl
rsi | esi | si | sil
rdi | edi | di | dil
rbp | ebp | bp | bpl
rsp | esp | sp | spl
r8 | r8d | r8w | r8b
r9 | r9d | r9w | r9b
r10 | r10d | r10w | r10b
r11 | r11d | r11w | r11b
r12 | r12d | r12w | r12b
r13 | r13d | r13w | r13b
r14 | r14d | r14w | r14b
r15 | r15d | r15w | r15b

关于assembly - 新的 X86_64 处理器寄存器的名称是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1753602/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com