当前位置:网站首页>Basic knowledge of assembly language
Basic knowledge of assembly language
2022-07-06 17:02:00 【My71】
Edit program steps
- Edit the source program , extension .asm
- assembly : Turn the source program file into the target file , Target file extension .obj
- Connect : Turn the target file into an executable , Executable extension .exe
Instructions
mount
mount Target drive letter Local drive letterClear the screen :cls
Delete file :del file name
see file :type file name
Assembly instruction :masm file name
Connection instructions :link file name
Programming
Create source program
Instructions edit
grammar
edit file name .asmIf the file already exists, open the file to continue writing , If it does not exist, a new file will be created .
Segment definition
Instructions :segment( Start ) ends( end )
Paragraph name : No more than eight characters
grammar
Paragraph name segment Paragraph name ends
Segment Association
Instructions :assume
type :CS( Code segment )、DS( Data segment )、SS( stack segment )、ES( Additional segment )
grammar :
assume type : Paragraph nameexample : Define a code snippet , Segment name code
code segment assume cs:code code ends
Store value
Instructions :mov
General registers :AX、BX、CX、DX
grammar mo
mov General registers , value- General registers : Destination operands
- value : Source operands
End procedure
mov ah,4ch
int 21h
Instruction classification
- Double operand instruction : Separate the two parameters with commas , The one before the comma is called the destination operand , The one after the comma is called the original operand .
- Single operand instruction
- No operand instruction
- In all double operand instructions , The destination operand and source operand types must match .
- 8086 There must be registers in the instruction , In addition to immediate addressing .
debug Instructions
- sign out :q
- see CPU register :r
- Disassembly instruction :u
- Execute program instructions :g(g offset )
- View memory bill :d
边栏推荐
- Notes on how the network is connected
- Eureka high availability
- [graduation project] QT from introduction to practice: realize imitation of QQ communication, which is also the last blog post in school.
- "One year after graduation, I won ACL best paper"
- ~77 linear gradient
- TCP的三次握手和四次挥手
- ~87 animation
- Thank you for your invitation. I'm in the work area. I just handed in the code. I'm an intern in the next ByteDance
- J'ai traversé le chemin le plus fou, le circuit cérébral d'un programmeur de saut d'octets
- 字节跳动技术新人培训全记录:校招萌新成长指南
猜你喜欢

Fdog series (4): use the QT framework to imitate QQ to realize the login interface, interface chapter.

逻辑运算指令

Shell_ 07_ Functions and regular expressions

Shell_ 01_ data processing

~68 Icon Font introduction
![Which is more important for programming, practice or theory [there are some things recently, I don't have time to write an article, so I'll post an article on hydrology, and I'll fill in later]](/img/a1/7dd41e75d6768159317b65e436030d.jpg)
Which is more important for programming, practice or theory [there are some things recently, I don't have time to write an article, so I'll post an article on hydrology, and I'll fill in later]

Activiti目录(四)查询代办/已办、审核

Shell_ 04_ Shell script

Solr word segmentation analysis

字节跳动海外技术团队再夺冠:高清视频编码已获17项第一
随机推荐
Alibaba cloud server builds SVN version Library
High performance mysql (Third Edition) notes
唯有學C不負眾望 TOP5 S1E8|S1E9:字符和字符串&&算術運算符
Shell_ 07_ Functions and regular expressions
After the subscript is used to assign a value to the string type, the cout output variable is empty.
DOS 功能调用
字节跳动海外技术团队再夺冠:高清视频编码已获17项第一
Activiti directory (III) deployment process and initiation process
~83 form introduction
唯有学C不负众望 TOP1环境配置
字节跳动技术面试官现身说法:我最想pick什么样的候选人
LeetCode 1562. Find the latest group of size M
[graduation project] QT from introduction to practice: realize imitation of QQ communication, which is also the last blog post in school.
「博士毕业一年,我拿下 ACL Best Paper」
Mongodb learning notes
Eureka high availability
koa中间件
原型链继承
搭建flutter环境入坑集合
J'ai traversé le chemin le plus fou, le circuit cérébral d'un programmeur de saut d'octets