当前位置:网站首页>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.
边栏推荐
猜你喜欢
随机推荐
How DHCP works
JWT简单介绍
CMS建站流程
Why is this problem reported when installing oracle11
2021年11月网络规划设计师上午题知识点(下)
3. pcie.v 文件
[Redis] Redis installation under Linux
Method Overriding and Object Class
执掌图表
B站7月榜单丨飞瓜数据B站UP主排行榜发布!
ORA-00257
pytorch的使用:卷积神经网络模块
DDOS攻击真的是无解吗?不!
金仓数据库 KingbaseES V8 GIS数据迁移方案(3. 基于ArcGIS平台的数据迁移到KES)
EL定时刷新页面中的皕杰报表实例
GCC: Shield dependencies between dynamic libraries
Binary tree [full solution] (C language)
Knowledge Points for Network Planning Designers' Morning Questions in November 2021 (Part 1)
oracle create tablespace
Knowledge Points for Network Planning Designers' Morning Questions in November 2021 (Part 2)








