[英]What does a comma in a parenthesis mean in the AT&T syntax for x86 assembly?
What does (register1, register2, 4)
mean in AT&T assembly? (register1, register2, 4)
在 AT&T 汇编中是什么意思?
For example:例如:
cmp %eax, (%esi, %ebx, 4)
The complete AT&T base/index register syntax is:完整的 AT&T 基址/索引寄存器语法是:
offset(base, index, multiplier)
Your offset
field is 0
, so you just have the (base, index, multiplier)
part.您的offset
字段为0
,因此您只有(base, index, multiplier)
部分。 In your case, you're comparing the contents of the eax
register to the 32-bit value located at esi + (ebx * 4)
.在您的情况下,您将eax
寄存器的内容与位于esi + (ebx * 4)
的32位值进行比较。
In the Intel syntax you might be more familiar with, this would be written as:在您可能更熟悉的 Intel 语法中,这将写为:
cmp [ebx*4 + esi], eax
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.