当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
~74 JD top navigation bar exercise
Fdog series (III): use Tencent cloud SMS interface to send SMS, write database, deploy to server, web finale.
The QT program compiled on CentOS lacks a MySQL driven solution
~71 abbreviation attribute of font
~69 other ways to use icon fonts
Eureka single machine construction
was unable to send heartbeat
8086 内存
~68 Icon Font introduction
Redis standalone startup
I'm "fixing movies" in ByteDance
MySQL optimization notes
唯有学C不负众望 TOP1环境配置
我走过最迷的路,是字节跳动程序员的脑回路
LeetCode1556. Thousand separated number
亮相Google I/O,字节跳动是这样应用Flutter的
Monomer application concept
The difference between URI and URL
Solr word segmentation analysis
Shell_ 05_ operator









