当前位置:网站首页>X86 assembly syntax: at & T and Intel
X86 assembly syntax: at & T and Intel
2022-04-23 05:27:00 【What’smean】
Assembly language source code mainly adopts two kinds of Syntax :AT&T Grammar and Intel grammar .
They all belong to the second generation language , But the syntax of both is in variables 、 Constant 、 Register access 、 Segment and instruction size overrides 、 There are great differences in indirect address recording and offset .
AT&T Assembly syntax % As the front buffer of all register names , With $ As a literal constant ( Also called immediate operands ) Slow forward .
It sorts the operands like this : The source operand is on the left , The destination operand is on the right .
Use AT&T grammar ,EAX Register plus 4 Today is :add $0×4 , %eax.
GNU Assembler (Gas) And many others GNU Tools ( Such as gcc and gdb) All use AT&T grammar .
Intel Syntax and AT&T The grammar is different , It does not require registers and text preambles .
Its operands are sorted in the same way as AT&T The syntax operands are just the opposite : The source operand is on the right , The destination operand is on the left .
Use Intel grammar , The instruction of the above addition is :add eax 0×4 .
Use Intel Syntax assemblers include Microsoft assembler (MASM)、Borland Of Turbo Assembler (TASM) and Netwide Assembler (NASM)
版权声明
本文为[What’smean]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220544124579.html
边栏推荐
猜你喜欢
Create a tabbar component under the components folder, which is public
Cross domain CORS relationship~
[untitled]
Three of three JS (webgl) simple sorting of rotation attribute function, and a simple case of rotating around the axis based on this
2021-10-25
Laravel routing settings
Camera imaging + homography transformation + camera calibration + stereo correction
Requirements for SQL server to retrieve SQL and user information
[no title] Click the classification jump page to display the details
selenium预先加载cookie的必要性
随机推荐
我这位老程序员对时代危险和机遇的一点感悟?
Branch and loop statements
Laravel [view]
What are the most popular recruitment technical skills in 2022? You can't think of it
To understand Devops, you must read these ten books!
MFC implementation resources are implemented separately by DLL
Executable program execution process
Three 之 three.js (webgl)旋转属性函数的简单整理,以及基于此实现绕轴旋转的简单案例
Create process memory management copy_ Mm - processes and threads (IX)
2021-09-28
Fast application fuzzy search
C test calls the paddlesharp module to recognize pictures and words
Nécessité de précharger les cookies dans le sélénium
开源规则引擎——ice:致力于解决灵活繁复的硬编码问题
Simple and basic use of switch and if
Necessity of selenium preloading cookies
Semi synchronous replication of MariaDB
Getting started with varnish
Cross domain CORS relationship~
Solution of how to log in with mobile phone verification code in wireless network