当前位置:网站首页>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.
边栏推荐
猜你喜欢
随机推荐
Methods commonly used interface automation test framework postman tests
5.PCIe官方示例
PCIe 核配置
B站7月榜单丨飞瓜数据B站UP主排行榜发布!
深度学习原理学习小结 - Self-Attention/Transformer
Interview summary: Why do interviewers in large factories always ask about the underlying principles of Framework?
Why is this problem reported when installing oracle11
硬实力和软实力,哪个对测试人来说更重要?
方法重写与Object类
ORA-00604 ORA-02429
[GYCTF2020]EasyThinking
Binary tree [full solution] (C language)
仅3w报价B站up主竟带来1200w播放!品牌高性价比B站投放标杆!
自定义线程池
AI+PROTAC|dx/tx完成500万美元种子轮融资
2021年11月网络规划设计师上午题知识点(下)
GCC:编译时库路径和运行时库路径
二叉树[全解](C语言)
创意代码表白
BC(转)[js]js计算两个时间相差天数