当前位置:网站首页>数据传送指令
数据传送指令
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
功能
交换两个存储空间里的数据。
规则
- 操作数可以是字,也可以是字节。
- 两个存储器中的数据不能直接交换,可以借助寄存器来完成交换。
代码实现

边栏推荐
- Codeforces Global Round 19
- After the subscript is used to assign a value to the string type, the cout output variable is empty.
- LeetCode 1640. Can I connect to form an array
- LeetCode 1637. The widest vertical area between two points without any point
- Eureka single machine construction
- Sublime text code formatting operation
- 我走過最迷的路,是字節跳動程序員的腦回路
- Ffmpeg command line use
- When it comes to Google i/o, this is how ByteDance is applied to flutter
- ~76 sprite map
猜你喜欢

字节跳动春招攻略:学长学姐笔经面经,还有出题人「锦囊」

FLV格式详解

Shell_ 04_ Shell script
![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]](/img/a1/7dd41e75d6768159317b65e436030d.jpg)
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]

Fdog series (4): use the QT framework to imitate QQ to realize the login interface, interface chapter.

~84 form supplement

Fdog series (V): use QT to imitate QQ to realize login interface to main interface, function chapter.

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

Chapter 1 overview of MapReduce

Detailed explanation of FLV format
随机推荐
腾讯面试算法题
Tencent interview algorithm question
was unable to send heartbeat
ByteDance new programmer's growth secret: those glittering treasures mentors
我在字节跳动「修电影」
Fdog series (VI): use QT to communicate between the client and the client through the server (less information, recommended Collection)
~70 row high
Cmake error: could not create named generator visual studio 16 2019 solution
JS time function Daquan detailed explanation ----- AHAO blog
7-4 harmonic average
~84 form supplement
Solr standalone installation
The concept of spark independent cluster worker and executor
LeetCode1556. Thousand separated number
QT system learning series: 1.2 style sheet sub control lookup
Solr word segmentation analysis
这群程序员中的「广告狂人」,把抖音广告做成了AR游戏
~82 style of table
Conception du système de thermomètre numérique DS18B20
Yao BanZhi and his team came together, and the competition experts gathered together. What fairy programming competition is this?