当前位置:网站首页>Data transfer instruction
Data transfer instruction
2022-07-06 17:02:00 【My71】
Send instructions MOV
function
The source operand ( A byte or a word ) Passed to destination operand .
The rules
- As the source operand, the immediate can be stored in memory and general registers , But it cannot be directly stored in the segment register .
- Memory and general registers can store each other .
- Segment register and memory can store each other .
- Segment registers and general registers can be stored in each other .
- It is not allowed to transfer directly between two memories .
Code implementation
Offset address transfer instruction lea
function
Offset of the address of the de source operand , And transfer it to the destination operand .
usage
- lea bx,a The meaning of this sentence is to a Address to bx in , A concept similar to a pointer .
- Next you can use [bx] To get the address a Data in .
Code implementation
Stack instructions
Pressing stack :push
Bomb stack :pop
Pressing stack and bouncing stack are aimed at 16 A data (AX、BX etc. ), Don't allow to 8 A data (AH、AL etc. ) Perform stack operation .
It is not allowed to stack an immediate .
…… push ax …… pop ax ……
Exchange instructions XCHG
function
Exchange data in two storage spaces .
The rules
- Operands can be words , It can also be bytes .
- The data in the two memories cannot be exchanged directly , You can complete the exchange with the help of registers .
Code implementation
边栏推荐
- Eureka high availability
- ~Introduction to form 80
- DOS 功能调用
- After the subscript is used to assign a value to the string type, the cout output variable is empty.
- ~81 long table
- IDEA断点调试技巧,多张动图包教包会。
- 100张图训练1小时,照片风格随意变,文末有Demo试玩|SIGGRAPH 2021
- Shell_ 06_ Judgment and circulation
- ~77 linear gradient
- Only learning C can live up to expectations top5 S1E8 | S1E9: characters and strings & arithmetic operators
猜你喜欢
Yao BanZhi and his team came together, and the competition experts gathered together. What fairy programming competition is this?
Ruoyi-Cloud 踩坑的BUG
Thank you for your invitation. I'm in the work area. I just handed in the code. I'm an intern in the next ByteDance
[unsolved]7-14 calculation diagram
~76 sprite map
一个数10年工作经验的微服务架构老师的简历
LeetCode 1641. Count the number of Lexicographic vowel strings
字节跳动海外技术团队再夺冠:高清视频编码已获17项第一
Activiti目录(三)部署流程、发起流程
Activit零零碎碎要人命的坑
随机推荐
Shell_ 06_ Judgment and circulation
唯有学C不负众望 TOP3 Demo练习
MySQL日期函数
原型链继承
服务器端渲染(SSR)和客户端渲染(CSR)的区别
Shell_ 00_ First meeting shell
The most lost road I have ever walked through is the brain circuit of ByteDance programmers
Solr word segmentation analysis
GCC error: terminate called after throwing an instance of 'std:: regex_ error‘ what(): regex
DS18B20數字溫度計系統設計
Description of project structure configuration of idea
~68 Icon Font introduction
谢邀,人在工区,刚交代码,在下字节跳动实习生
Shell_ 07_ Functions and regular expressions
~78 radial gradient
Conception du système de thermomètre numérique DS18B20
was unable to send heartbeat
Eureka high availability
High performance mysql (Third Edition) notes
Activiti directory (III) deployment process and initiation process