当前位置:网站首页>source program in assembly language
source program in assembly language
2022-08-05 01:28:00 【one question per day】
The process from writing to execution of the source program
Brief process: write --> compile --> link --> execute.
Assembly and pseudo-instructions
1.Assembly instruction
YesThe corresponding machine code instructions can be compiled into machine instructions and finally executed by the CPU.
2. Pseudo-instructions
There is no corresponding machine code instruction and will not be executed by the CPU.
Note: A pseudo-instruction is an instruction executed by the compiler, and the compiler performs related compilation work according to the pseudo-instruction.
Define a section
1. segment and ends are a pair of pseudo-instructions, which must be used when writing an assembler that can be compiled by a compilerA pair of pseudo-instructions.
2. The function of segment and ends is to define a segment, segment indicates a segment start, and ends indicate a segment end.
3. Use the format:
segment name segment
segment name ends
4. An assembler is composed of multiple segments, which are used to store code, datastrong>Or use it as stack space.Therefore, a meaningful assembly program must have at least one code segment.
Note: end is an assembler end tag, not to be confused with ends.
5. assume means assumption, he assumes that a segment register is related to a segment defined by segment…ends in the programlink.
边栏推荐
- 为什么他们选择和AI恋爱?
- PCIe Core Configuration
- ### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionExcep
- 主库预警日志报错ORA-00270
- 【Redis】Linux下Redis安装
- The method of freely controlling concurrency in the sync package in GO
- 内存取证系列1
- 软件测试技术之最有效的七大性能测试技术
- 4. PCIe 接口时序
- 10年测试经验,在35岁的生理年龄面前,一文不值
猜你喜欢
方法重写与Object类
【Word】Word公式导出PDF后出现井号括号#()错误
CNI(Container Network Plugin)
Day Fourteen & Postman
Bit rate vs. resolution, which one is more important?
tcp中的三次握手与四次挥手
The use of pytorch: temperature prediction using neural networks
【FreeRTOS】FreeRTOS与stm32内置堆栈的占用情况
习题:选择结构(一)
IJCAI2022 | DictBert:采用对比学习的字典描述知识增强的预训练语言模型
随机推荐
2022 Nioke Multi-School Training Session H Question H Take the Elevator
torch.autograd.grad求二阶导数
2022杭电多校第一场
1349. 参加考试的最大学生数 状态压缩
【翻译】CNCF对OpenTracing项目的存档
JWT简单介绍
VOC格式数据集转COCO格式数据集
Software Testing Interview Questions: What do test cases usually include?
【Word】Word公式导出PDF后出现井号括号#()错误
Binary tree [full solution] (C language)
执掌图表
Lattice PCIe 学习 1
ora-01105 ora-03175
JZ搜索引擎solr研究-从数据库创建索引
居民用水问题
EBS利用虚拟列及hint 提示优化sql案例一则
自定义线程池
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionExcep
张驰咨询:揭晓六西格玛管理(6 Sigma)长盛不衰的秘密
CMS建站流程