汇编语言的基本知识
来源:互联网 发布:木油漆哪个品牌好 知乎 编辑:程序博客网 时间:2024/06/17 08:29
1)instruction和directive
中文翻译都叫“指令”,但是instruction才是最终被翻译成机器码的,directive是用来告诉汇编器怎么去处理汇编程序的(就像C语言的define、include等一样)。
2)
•Statement format:
–[label:] mnemonic [operands][;comments]
•Label:
–Cannot exceed 31 characters.
–Consists:
•Alphabetic characters both upper and lowercase.
•Digits 0 through 9.
•Special characters ( ? ), ( . ), ( @ ), ( _ ),and ( $ ).
–The first character cannot be a digit.
–The period can only be used as the firstcharacter, but its use is not recommended. Several reserved words begin with itin later versions of MASM.
3)注释
用;
4)
•Label:
–Must end with a colon when it refers to anopcode generating instruction.
–Do not need to end with a colon when it refers to adirective.
•Mnemonicand operands:
–Instructions are translated into machine code.
–Directives do not generate machine code. They are used by theassembler to organize the program and direct the assembly process.
阅读全文
0 0
- 汇编语言的基本知识
- 【汇编语言笔记】 基本知识、寄存器
- 学习《汇编语言》笔记之一——基本知识
- 高级汇编语言和低级汇编语言的差别
- Indie音乐的基本知识
- UNIX的一些基本知识
- 接口技术的基本知识
- python的基本知识
- 硬盘的基本知识
- Oracle数据库的基本知识
- ape的基本知识
- QQ号码的基本知识
- 计算机编码的基本知识
- 计算机编码的基本知识
- 串口通信的基本知识
- DEBUG的基本知识
- 硬盘的基本知识
- 期权的基本知识
- Python 直接赋值、浅拷贝和深度拷贝解析
- centOS7下的MySQL编码设置
- 【树形DP】宝藏
- Babel初体验
- Struts2值栈
- 汇编语言的基本知识
- 向360手机卫士学习如何优化android程序性能
- 第3周项目3 求集合并集
- cookie管理(2) session存储于内存
- Java中==、equals()和hashCode()的比较分析
- 怎样在Android开发中引用ButterKnife
- python_lintcode_111爬楼梯_110最小路径和
- Asp.net使用form上传文件
- Python socket知识点总结