当前位置:网站首页>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
边栏推荐
- App Store年交易额100万美元只缴15%佣金,中小开发者心里很矛盾
- Fast application fuzzy search
- The source of anxiety of graduating college students looking for technology development jobs
- 双击.jar包无法运行解决方法
- CPT 104_ TTL 09
- MySQL series - install MySQL 5.6.27 on Linux and solve common problems
- After NPM was upgraded, there was a lot of panic
- Excel 2016 打开文件第一次打不开,有时空白,有时很慢要打开第二次才行
- 修仙真实世界与游戏世界
- 开源规则引擎——ice:致力于解决灵活繁复的硬编码问题
猜你喜欢
4 most common automated test challenges and Countermeasures
Three 之 three.js (webgl)简单实现根据点绘制线/弧线(基于LineGeometry / Line2 / LineMaterial,绘制两点基于圆心的弧线段)
JS array common methods
Various situations of data / component binding
what is wifi6?
Solution of how to log in with mobile phone verification code in wireless network
Double click The jar package cannot run the solution
Project manager's thinking mode worth trying: project success equation
varnish入门
Uncle wolf is looking for a translator -- Plato -- ongoing translation
随机推荐
Implementation of resnet-34 CNN with kears
Self incrementing sequence creation of MySQL
我这位老程序员对时代危险和机遇的一点感悟?
史上最强egg框架的error处理机制
Ehcache Memcache redis three caches
Study notes: unity customsrp-10-point and spot shadows
If I am PM's performance, movie VR ticket purchase display
Log introduction and building web application
TSlint注释忽略错误和RESTful理解
双击.jar包无法运行解决方法
Three of three JS (webgl) is simple to draw lines / arcs according to points (based on linegeometry / line2 / linematerial, draw two arc segments based on the center of the circle)
Blender程序化地形制作
npm升级后问题,慌得一批
Getting started with varnish
Redis in node -- ioredis
The annual transaction volume of the app store is US $1 million, and only 15% commission is paid. Small and medium-sized developers are very contradictory
selenium預先加載cookie的必要性
如果我是pm之 演出电影vr购票展示
d.ts---更详细的知识还是需要看官网的介绍(声明文件章节)
Camera imaging + homography transformation + camera calibration + stereo correction