汇编语言操作数说明符(Assembly Language Operand Specifiers)

编程入门 行业动态 更新时间:2024-10-21 22:57:06
汇编语言操作数说明符(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.

更多推荐

本文发布于:2023-08-04 23:52:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1424230.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:说明符   汇编语言   操作   Assembly   Operand

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!