当前位置:网站首页>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 letter
Clear 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 .asm
If 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 name
example : 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
边栏推荐
- The daemon thread starts redis and modifies the configuration file
- Description of project structure configuration of idea
- 冯诺依曼体系结构
- Some instructions on whether to call destructor when QT window closes and application stops
- The most lost road I have ever walked through is the brain circuit of ByteDance programmers
- 8086 分段技术
- [unsolved]7-14 calculation diagram
- Alibaba cloud server builds SVN version Library
- 8086 CPU 内部结构
- Ce n'est qu'en apprenant que c est à la hauteur des attentes Top5 s1e8 | s1e9: caractères et chaînes & opérateurs arithmétiques
猜你喜欢
Activiti directory (III) deployment process and initiation process
The QT program compiled on CentOS lacks a MySQL driven solution
逻辑运算指令
这群程序员中的「广告狂人」,把抖音广告做成了AR游戏
Shell_ 04_ Shell script
Eureka single machine construction
[graduation project] QT from introduction to practice: realize imitation of QQ communication, which is also the last blog post in school.
MySQL日期函数
The daemon thread starts redis and modifies the configuration file
Shell_ 06_ Judgment and circulation
随机推荐
DOS 功能调用
8086 内存
Description of project structure configuration of idea
Shell_ 00_ First meeting shell
Activit零零碎碎要人命的坑
The most lost road I have ever walked through is the brain circuit of ByteDance programmers
"One year after graduation, I won ACL best paper"
Saw local status change event StatusChangeEvent [timestamp=1644048792587, current=DOWN, previous=UP]
ByteDance open source Gan model compression framework, saving up to 97.8% of computing power - iccv 2021
LeetCode 1562. Find the latest group of size M
Activiti目录(四)查询代办/已办、审核
LeetCode 1558. Get the minimum number of function calls of the target array
~78 radial gradient
我走过最迷的路,是字节跳动程序员的脑回路
How to generate six digit verification code
这群程序员中的「广告狂人」,把抖音广告做成了AR游戏
Some instructions on whether to call destructor when QT window closes and application stops
~Introduction to form 80
Redis standalone startup
Yum install XXX reports an error