当前位置:网站首页>数据传送指令
数据传送指令
2022-07-06 09:29:00 【My71】
传送指令 MOV
功能
将源操作数(一个字节或一个字)传送到目的操作数。
规则
- 立即数作为源操作数可以存放在存储器和通用寄存器中,但不能直接存入段寄存器中。
- 存储器和通用寄存器之间可以相互存储。
- 段寄存器和存储器可以相互存储。
- 段寄存器和通用寄存器可以相互存储。
- 不允许在两个存储器之间直接进行传送。
代码实现
偏移地址传送指令 lea
功能
去源操作数地址的偏移量,并把它传送到目的操作数中。
用法
- lea bx,a 这句话的意思是将 a 的地址传到 bx 中,类似于指针的概念。
- 接下来可以使用 [bx] 的方式获取地址 a 中的数据。
代码实现
堆栈指令
压栈:push
弹栈:pop
压栈和弹栈针对的都是 16 位的数据(AX、BX等),不允许对 8 位的数据(AH、AL等)进行堆栈操作。
不允许对一个立即数进行压栈。
…… push ax …… pop ax ……
交换指令 XCHG
功能
交换两个存储空间里的数据。
规则
- 操作数可以是字,也可以是字节。
- 两个存储器中的数据不能直接交换,可以借助寄存器来完成交换。
代码实现
边栏推荐
- 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]
- LeetCode 1447. Simplest fraction
- [unsolved]7-14 calculation diagram
- ~72 horizontal and vertical alignment of text
- Record the error reason: terminate called after throwing an instance
- 字节跳动开源GAN模型压缩框架,算力最高节省97.8%丨ICCV 2021
- 7-12 inventory code base
- Simply try the new amp model of deepfacelab (deepfake)
- LeetCode 1552. Magnetic force between two balls
- Soft music -js find the number of times that character appears in the string - Feng Hao's blog
猜你喜欢
~87 animation
Solr new core
The "advertising maniacs" in this group of programmers turned Tiktok advertisements into ar games
Solve the problem that intel12 generation core CPU single thread only runs on small cores
Fdog series (I): think about it. It's better to write a chat software. Then start with the imitation QQ registration page.
Story of [Kun Jintong]: talk about Chinese character coding and common character sets
The most lost road I have ever walked through is the brain circuit of ByteDance programmers
音视频开发面试题
Record the error reason: terminate called after throwing an instance
7-4 harmonic average
随机推荐
Continue and break jump out of multiple loops
LeetCode 1447. Simplest fraction
「博士毕业一年,我拿下 ACL Best Paper」
Audio and video development interview questions
redux使用说明
LeetCode 1560. The sector with the most passes on the circular track
~78 radial gradient
LeetCode 1551. Minimum operand to make all elements in the array equal
腾讯面试算法题
TypeScript基本操作
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]
Cmake Express
The most lost road I have ever walked through is the brain circuit of ByteDance programmers
Codeforces Global Round 19
Shell_ 07_ Functions and regular expressions
LeetCode 1545. Find the k-th bit in the nth binary string
Introduction to microservices
字节跳动春招攻略:学长学姐笔经面经,还有出题人「锦囊」
JS time function Daquan detailed explanation ----- AHAO blog
字节跳动多篇论文入选 CVPR 2021,精选干货都在这里了