当前位置:网站首页>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
边栏推荐
- ByteDance technical Interviewer: what kind of candidate do I want to pick most
- 谢邀,人在工区,刚交代码,在下字节跳动实习生
- Fdog series (4): use the QT framework to imitate QQ to realize the login interface, interface chapter.
- 7-5 blessing arrived
- 汇编课后作业
- When it comes to Google i/o, this is how ByteDance is applied to flutter
- MySQL optimization notes
- LeetCode1556. Thousand separated number
- MySQL字符串函数
- ~69 other ways to use icon fonts
猜你喜欢
Shell_ 04_ Shell script
~Introduction to form 80
The 116 students spent three days reproducing the ByteDance internal real technology project
~68 Icon Font introduction
Shell_ 00_ First meeting shell
一个数10年工作经验的微服务架构老师的简历
服务器端渲染(SSR)和客户端渲染(CSR)的区别
Alibaba cloud server builds SVN version Library
I'm "fixing movies" in ByteDance
Activiti directory (IV) inquiry agency / done, approved
随机推荐
Many papers on ByteDance have been selected into CVPR 2021, and the selected dry goods are here
~84 form supplement
逻辑运算指令
亮相Google I/O,字节跳动是这样应用Flutter的
js垃圾回收机制和内存泄漏
LeetCode 1584. Minimum cost of connecting all points
Fdog series (VI): use QT to communicate between the client and the client through the server (less information, recommended Collection)
Shell_ 02_ Text three swordsman
100张图训练1小时,照片风格随意变,文末有Demo试玩|SIGGRAPH 2021
8086 内存
[unsolved]7-14 calculation diagram
Activiti directory (I) highlights
LeetCode 1636. Sort the array in ascending order by frequency
The 116 students spent three days reproducing the ByteDance internal real technology project
Go language uses the thrift protocol to realize the client and service end reports not enough arguments in call to oprot Writemessagebegin error resolution
MySQL日期函数
[graduation project] QT from introduction to practice: realize imitation of QQ communication, which is also the last blog post in school.
Idea resolving jar package conflicts
字节跳动技术新人培训全记录:校招萌新成长指南
Shell_ 04_ Shell script