当前位置:网站首页>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+PROTAC|dx/tx完成500万美元种子轮融资
- 如何发现一个有价值的 GameFi?
- The method of freely controlling concurrency in the sync package in GO
- tcp中的三次握手与四次挥手
- 张驰咨询:揭晓六西格玛管理(6 Sigma)长盛不衰的秘密
- Exercise: Selecting a Structure (1)
- GCC:头文件和库文件的路径
- Lattice PCIe Learning 1
- [FreeRTOS] FreeRTOS and stm32 built-in stack occupancy
- 【Redis】Linux下Redis安装
猜你喜欢
![[FreeRTOS] FreeRTOS and stm32 built-in stack occupancy](/img/33/3177b4c3de34d4920d741fed7526ee.png)
[FreeRTOS] FreeRTOS and stm32 built-in stack occupancy

Kubernetes 网络入门

CNI(Container Network Plugin)

JUC线程池(一): FutureTask使用

linux(centOs7)部署mysql(8.0.20)数据库

(17) 51 MCU - AD/DA conversion

Countdown to 1 day!From August 2nd to 4th, I will talk with you about open source and employment!

【Endnote】Word插入自定义形式的Endnote文献格式
![Binary tree [full solution] (C language)](/img/4d/2d81dc75433c23c5ba6b31453396f0.png)
Binary tree [full solution] (C language)

【七夕如何根据情侣倾听的音乐进行薅羊毛】背景音乐是否会影响情侣对酒的选择
随机推荐
JZ搜索引擎solr研究-从数据库创建索引
Creative code confession
C# const readonly static 关键字区别
软件基础的理论
Three handshake and four wave in tcp
【Unity入门计划】2D游戏中遮挡问题的处理方法&伪透视
torch.autograd.grad求二阶导数
Introduction to JVM class loading
活动推荐 | 快手StreamLake品牌发布会,8月10日一起见证!
ORA-01105 ORA-03175
手把手基于YOLOv5定制实现FacePose之《YOLO结构解读、YOLO数据格式转换、YOLO过程修改》
torch.autograd.grad finds the second derivative
【七夕如何根据情侣倾听的音乐进行薅羊毛】背景音乐是否会影响情侣对酒的选择
Method Overriding and Object Class
Countdown to 1 day!From August 2nd to 4th, I will talk with you about open source and employment!
ora-01105 ora-03175
习题:选择结构(一)
oracle create user
【TA-霜狼_may-《百人计划》】图形4.3 实时阴影介绍
ExcelPatternTool: Excel表格-数据库互导工具