AT&T mnemonic conventions
来源:互联网 发布:山西省大数据产业协会 编辑:程序博客网 时间:2024/06/06 00:23
(1) AT&T mnemonics and register names are invariably(总是,一定地,不变地) lowercase, Intel(nasm) suggest uppercase but will accept lowercase, AT&T requires lowercase;
AT&T助记符和寄存器名字一定是小写字母,而Intel(nasm)建议是大写字母,但是也接受小写字母,但是AT&T要求必须是小写字母;
(2) Register names are always preceded by the percent symbol %;
Intel: AX or EBX
AT&T: %ax or %ebx
寄存器名字之前总是有百分号%;
(3) Every AT&T machine instruction mnemonic that has operands has a single-character suffix(后缀) indicating how large its operands are;
b ---> byte, 8bits
w--->word, 16bits
l--->long, 32bits
每一个AT&T机器指令助记符,如果有操作数的话,都有一个单字母的后缀,表明它操作数的位数;
Intel: MOV BX, AX
AT&T: movw %ax, %bx
(4) In the AT&T syntax, source and destination operands are placed in the opposite order from Intel syntax:
Intel: MOV BX, AX
AT&T: movw %ax, %bx
在AT&T语法中,源操作数和目的操作数的顺序与Intel语法中是刚好相反的;
(5) In the AT&T syntax, immediate operands are always preceded by the dollar sign($):
Intel: PUSH 32
AT&T: pushl $32
在AT&T语法中,立即数的前面总是有美元符号$;
(6) Not all AT&T instruction mnemonics are generated by gcc:
Equivalents to Intel's JCXZ, JECXZ, LOOP, LOOPZ, LOOPE, LOOPNZ, and LOOPNE have only recently been added to the AT&T mnemonic set, and gcc never generates code that uses them
不是所有的AT&T指令助记符都由gcc产生,有些指令gcc不产生;
(7) In the AT&T syntax, displacements in memory reference are signed quantities placed outstide parentheses contaning the base, index, and scale values;
相关日志:AT&T Memory Reference Syntax
- AT&T mnemonic conventions
- AT&T
- AT&T
- Conventions
- Conventions
- Mnemonic Fun
- AT&T 汇编 (AT&T ASM) 参考
- AT&T 汇编 (AT&T ASM) 参考
- AT&T 汇编 (AT&T ASM) 参考
- AT&T 汇编 (AT&T ASM) 参考
- AT&T 汇编 (AT&T ASM) 参考
- AT&T语法
- AT&T(1)
- AT & T汇编简介
- AT&T汇编语言语法
- AT&T ASM 参考
- AT&T asm
- AT&T 汇编参考
- Ubuntu13.04环境下载、编译Android源代码
- POJ2499:Remmarguts' Date(第K短路 SPFA+A*)
- 网站一打开就显示windows安全,输入用户名和密码
- 第三十讲 : 综合应用&存储过程
- java “动态数组”
- AT&T mnemonic conventions
- python3.3 django错误处理“sre_constants.error: nothing to repeat”
- ios动画系列 -- UIView的transform
- Attempt to refer to a unregistered pool by its alias 'xxx'
- 2014腾讯测试实习面试题
- JSP 简单表单显示例子
- 获取不带后缀名的文件名的两种方法
- 是哪些技术把你和小伙伴分开了?
- JLink + Vmware调试linux内核