assembly - MOV(%r11,%r12,1),%edx是什么意思?

标签 assembly x86 att mov addressing-mode

这条指令是做什么的?

mov (%r11,%r12,1), %edx

最佳答案

here .它说

In the AT&T Syntax, memory is referenced in the following way,

segment-override:signed-offset(base,index,scale)

页面下方有一些示例。我发现这是最好的:

GAS memory operand   NASM memory operand
------------------   -------------------
(%ecx,%ebx,2)    [ecx+ebx*2]
AT&T 语法中的

mov source, destination 将值从源复制到目标。还要考虑 edx 的大小。您认为 mov 将复制多少字节 (4)?

关于assembly - MOV(%r11,%r12,1),%edx是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57685355/

相关文章:

assembly - x86-64中movq和movabsq之间的区别

assembly - 我的 .exe 程序不是我所期望的

winapi - Windows 函数调用中的堆栈是如何设置的?

c - 即使我有错误,GCC 也不会在我的内联 asm 函数调用周围推送寄存器

assembly - x86中的jmpl指令是什么?

assembly - 关于 [base + index*scale + disp] 和 AT&T disp(base,index,scale) 的几个问题

macos - 为 Mac OS X 运行汇编代码

c++ - x64 asm如何设置指向_cdecl C函数的函数指针并调用它?

gcc - GCC为x86生成的 “push %ebp; movl %esp, %ebp”有什么用途?

assembly - 如何在程序集引导加载程序中打印按下的键盘按键?