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

边栏推荐
- Fdog series (V): use QT to imitate QQ to realize login interface to main interface, function chapter.
- The most lost road I have ever walked through is the brain circuit of ByteDance programmers
- ~82 style of table
- Use JQ to realize the reverse selection of all and no selection at all - Feng Hao's blog
- Restful style interface design
- Business system compatible database oracle/postgresql (opengauss) /mysql Trivia
- LeetCode 1550. There are three consecutive arrays of odd numbers
- [graduation project] QT from introduction to practice: realize imitation of QQ communication, which is also the last blog post in school.
- 搭建flutter环境入坑集合
- ~Introduction to form 80
猜你喜欢

LeetCode 1637. The widest vertical area between two points without any point

7-10 punch in strategy

Redis standalone startup

字节跳动技术新人培训全记录:校招萌新成长指南

LeetCode 1558. Get the minimum number of function calls of the target array

Detailed explanation of FLV format
![Solve the problem of intel12 generation core CPU [small core full, large core onlookers] (win11)](/img/92/9465a6c9f1ab88c4851a47fabe750c.jpg)
Solve the problem of intel12 generation core CPU [small core full, large core onlookers] (win11)

Yao BanZhi and his team came together, and the competition experts gathered together. What fairy programming competition is this?

Spark independent cluster dynamic online and offline worker node

TCP的三次握手和四次挥手
随机推荐
LeetCode 1020. Number of enclaves
Fdog series (I): think about it. It's better to write a chat software. Then start with the imitation QQ registration page.
Shell_ 00_ First meeting shell
QT system learning series: 1.2 style sheet sub control lookup
「博士毕业一年,我拿下 ACL Best Paper」
JS time function Daquan detailed explanation ----- AHAO blog
Chapter 1 overview of MapReduce
Fdog series (III): use Tencent cloud SMS interface to send SMS, write database, deploy to server, web finale.
~76 sprite map
LeetCode 1561. The maximum number of coins you can get
7-12 inventory code base
Error occurred during initialization of VM Could not reserve enough space for object heap
~69 other ways to use icon fonts
Introduction to microservices
LeetCode 1562. Find the latest group of size M
Fdog series (4): use the QT framework to imitate QQ to realize the login interface, interface chapter.
7-4 harmonic average
Typescript basic operations
After the subscript is used to assign a value to the string type, the cout output variable is empty.
Erlang installation