汇编语言操作数说明符(Assembly Language Operand Specifiers)
我是学习汇编语言的新手,并且遇到了以下表达式:
9(%rax, %rdx) 0xFC(,%rcx,4) (%rax, %rdx, 4)如果有人能指出我可以理解这些命令或向我解释这些命令的资源,我将非常感激。
谢谢。
I am new to learning assembly language and came across the following expressions:
9(%rax, %rdx) 0xFC(,%rcx,4) (%rax, %rdx, 4)I would be really grateful if someone could point me to a resource where I can understand these commands or explain them to me.
Thank you.
最满意答案
这显然是指x86 AT&T组件中的算术寻址。
语法很简单:
N(%reg1, %reg2, F)这导致address = N + %reg1 + %reg2 * F 这可以在多个指令中用于访问结构内部的数据(C编译器)等。
如需完整参考,请查看本指南 。
This apparently refers to arithmetic addressing in x86 AT&T assembly.
The syntax is rather simple:
N(%reg1, %reg2, F)This results in address = N + %reg1 + %reg2 * F. This can be used in multiple instructions for purposes like accessing data inside a struct (C compilers), etc.
For full reference, check this guide.
更多推荐
发布评论