当前位置:网站首页>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
边栏推荐
- Erlang installation
- After the subscript is used to assign a value to the string type, the cout output variable is empty.
- ByteDance technical Interviewer: what kind of candidate do I want to pick most
- 8086 CPU 内部结构
- Many papers on ByteDance have been selected into CVPR 2021, and the selected dry goods are here
- ~72 horizontal and vertical alignment of text
- Activiti目录(四)查询代办/已办、审核
- Error: case label `15 'not within a switch statement
- LeetCode 1637. The widest vertical area between two points without any point
- Activit零零碎碎要人命的坑
猜你喜欢

我走過最迷的路,是字節跳動程序員的腦回路

7-5 blessing arrived

字节跳动多篇论文入选 CVPR 2021,精选干货都在这里了

The 116 students spent three days reproducing the ByteDance internal real technology project

Full record of ByteDance technology newcomer training: a guide to the new growth of school recruitment

Idea resolving jar package conflicts

谢邀,人在工区,刚交代码,在下字节跳动实习生

Fdog series (III): use Tencent cloud SMS interface to send SMS, write database, deploy to server, web finale.

~84 form supplement

原型链继承
随机推荐
~83 form introduction
Restful style interface design
字节跳动开源GAN模型压缩框架,算力最高节省97.8%丨ICCV 2021
原型链继承
~82 style of table
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
Solr new core
Activiti目录(四)查询代办/已办、审核
QT system learning series: 1.2 style sheet sub control lookup
Fdog series (V): use QT to imitate QQ to realize login interface to main interface, function chapter.
8086 分段技术
Shell_ 03_ environment variable
Shell_ 07_ Functions and regular expressions
Record the error reason: terminate called after throwing an instance
Solr word segmentation analysis
Shell_ 06_ Judgment and circulation
[unsolved] 7-15 shout mountain
Erlang installation
Introduction to microservices
Many papers on ByteDance have been selected into CVPR 2021, and the selected dry goods are here