当前位置:网站首页>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.
边栏推荐
- C语言基础知识 -- 指针
- 张驰咨询:揭晓六西格玛管理(6 Sigma)长盛不衰的秘密
- ORA-01105 ORA-03175
- 3. pcie.v 文件
- 2022 Nioke Multi-School Training Session H Question H Take the Elevator
- If capturable=False, state_steps should not be CUDA tensors
- A new technical director, who calls DDD a senior, is convinced
- 如何创建rpm包
- 迅睿cms网站搬迁换了服务器后网站不能正常显示
- PCIe Core Configuration
猜你喜欢
方法重写与Object类
Are testing jobs so hard to find?I am 32 this year and I have been unemployed for 2 months. What should an older test engineer do next to support his family?
金九银十面试跳槽季;你准备好了吗?
【Endnote】Word插入自定义形式的Endnote文献格式
day14--postman interface test
如何发现一个有价值的 GameFi?
新唐NUC980使用记录:在用户应用中使用GPIO
仅3w报价B站up主竟带来1200w播放!品牌高性价比B站投放标杆!
软件基础的理论
MySQL学习
随机推荐
Countdown to 1 day!From August 2nd to 4th, I will talk with you about open source and employment!
Difference between MBps and Mbps
手把手基于YOLOv5定制实现FacePose之《YOLO结构解读、YOLO数据格式转换、YOLO过程修改》
MongoDB construction and basic operations
sqlite--nested exception is org.apache.ibatis.exceptions.PersistenceException:
pytorch的使用:卷积神经网络模块
(十七)51单片机——AD/DA转换
Exercise: Selecting a Structure (1)
多线程涉及的其它知识(死锁(等待唤醒机制),内存可见性问题以及定时器)
【Unity入门计划】2D游戏中遮挡问题的处理方法&伪透视
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionExcep
ExcelPatternTool: Excel表格-数据库互导工具
第09章 性能分析工具的使用【2.索引及调优篇】【MySQL高级】
如何发现一个有价值的 GameFi?
如何创建rpm包
ORA-00257
记录谷歌gn编译时碰到的一个错误“I could not find a “.gn“ file ...”
Pytorch使用和技巧
oracle create tablespace
Bit rate vs. resolution, which one is more important?