当前位置:网站首页>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
边栏推荐
猜你喜欢
MySQL字符串函数
MySQL optimization notes
原型链继承
[graduation project] QT from introduction to practice: realize imitation of QQ communication, which is also the last blog post in school.
Activiti目录(三)部署流程、发起流程
Solr word segmentation analysis
How to configure hosts when setting up Eureka
~79 Movie card exercise
~73 other text styles
Which is more important for programming, practice or theory [there are some things recently, I don't have time to write an article, so I'll post an article on hydrology, and I'll fill in later]
随机推荐
字节跳动技术新人培训全记录:校招萌新成长指南
服务器端渲染(SSR)和客户端渲染(CSR)的区别
js垃圾回收机制和内存泄漏
Error: case label `15 'not within a switch statement
Log4j2 major vulnerabilities and Solutions
Which is more important for programming, practice or theory [there are some things recently, I don't have time to write an article, so I'll post an article on hydrology, and I'll fill in later]
Shell_ 05_ operator
唯有学C不负众望 TOP1环境配置
LeetCode 1638. Count the number of substrings with only one character difference
~Introduction to form 80
8086 分段技术
LeetCode 1020. Number of enclaves
字节跳动技术面试官现身说法:我最想pick什么样的候选人
string. How to choose h and string and CString
Shell_ 06_ Judgment and circulation
Yum install XXX reports an error
README. txt
Activiti directory (I) highlights
MySQL日期函数
谢邀,人在工区,刚交代码,在下字节跳动实习生