当前位置:网站首页>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
边栏推荐
- Many papers on ByteDance have been selected into CVPR 2021, and the selected dry goods are here
- 「博士毕业一年,我拿下 ACL Best Paper」
- Erlang installation
- MySQL日期函数
- 7-12 inventory code base
- The difference between URI and URL
- Solr new core
- Fdog series (V): use QT to imitate QQ to realize login interface to main interface, function chapter.
- 唯有學C不負眾望 TOP5 S1E8|S1E9:字符和字符串&&算術運算符
- When it comes to Google i/o, this is how ByteDance is applied to flutter
猜你喜欢

was unable to send heartbeat

Shell_ 05_ operator

Activiti directory (III) deployment process and initiation process
![[graduation project] QT from introduction to practice: realize imitation of QQ communication, which is also the last blog post in school.](/img/ef/2072aac5f85c7daf39174784dec7ee.jpg)
[graduation project] QT from introduction to practice: realize imitation of QQ communication, which is also the last blog post in school.

~84 form supplement
![Saw local status change event StatusChangeEvent [timestamp=1644048792587, current=DOWN, previous=UP]](/img/e6/c53ad67ead1793a2acb93c26e8d377.jpg)
Saw local status change event StatusChangeEvent [timestamp=1644048792587, current=DOWN, previous=UP]

IDEA断点调试技巧,多张动图包教包会。

Eight part essay that everyone likes

Alibaba cloud server docker installation mysql5.5

~74 JD top navigation bar exercise
随机推荐
Design of DS18B20 digital thermometer system
LeetCode 1558. Get the minimum number of function calls of the target array
8086 内存
Monomer application concept
Some instructions on whether to call destructor when QT window closes and application stops
~78 radial gradient
Solr new core
Notes on how the network is connected
唯有学C不负众望 TOP5 S1E8|S1E9:字符和字符串&&算术运算符
Fdog series (I): think about it. It's better to write a chat software. Then start with the imitation QQ registration page.
Eureka single machine construction
Shell_ 01_ data processing
~70 row high
Fdog series (V): use QT to imitate QQ to realize login interface to main interface, function chapter.
在 vi 编辑器中的命令模式下,删除当前光标处的字符使用 __ 命 令。
~83 form introduction
redux使用说明
Restful style interface design
7-8 likes (need to continue to improve)
字节跳动技术面试官现身说法:我最想pick什么样的候选人