当前位置:网站首页>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
边栏推荐
- 領域驅動模型DDD(三)——使用Saga管理事務
- When is it appropriate for automated testing? (bottom)
- Redis的基本知识
- Excel 2016 打开文件第一次打不开,有时空白,有时很慢要打开第二次才行
- Three 之 three.js (webgl)简单实现根据点绘制线/弧线(基于LineGeometry / Line2 / LineMaterial,绘制两点基于圆心的弧线段)
- egg的static的前缀是可以修改惹,靴靴
- Publish your own wheel - pypi packaging upload practice
- Processus d'exécution du programme exécutable
- Camera imaging + homography transformation + camera calibration + stereo correction
- The 2021 IT industry project management survey report was released!
猜你喜欢
随机推荐
What are the most popular recruitment technical skills in 2022? You can't think of it
Devops life cycle, all you want to know is here!
If the route reports an error after deployment according to the framework project
egg中的多进程模型--egg文档搬运工
Call the interface to get the time
Project manager's thinking mode worth trying: project success equation
[the background color changes after clicking a line]
Tslint annotations ignore errors and restful understanding
MySQL series - install MySQL 5.6.27 on Linux and solve common problems
CPT 104_ TTL 09
Branch and loop statements
Edit, cancel, pull up menu
Using PHP post temporary file mechanism to upload arbitrary files
Anti crawler (0): are you still climbing naked with selenium? You're being watched! Crack webdriver anti crawler
Domain driven model DDD (III) -- using saga to manage transactions
Use of uniapp native plug-ins
Good test data management, in the end how to do?
Uncle wolf is looking for a translator -- Plato -- ongoing translation
Three 之 three.js (webgl)模型的删除/场景的清空/内存的释放 的简单整理
Multiple mainstream SQL queries only take the latest one of the data









