当前位置:网站首页>数据传送指令
数据传送指令
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
功能
交换两个存储空间里的数据。
规则
- 操作数可以是字,也可以是字节。
- 两个存储器中的数据不能直接交换,可以借助寄存器来完成交换。
代码实现
边栏推荐
- Error: case label `15 'not within a switch statement
- 姚班智班齐上阵,竞赛高手聚一堂,这是什么神仙编程大赛?
- Spark's RDD (elastic distributed data set) returns a large result set
- string. How to choose h and string and CString
- Monomer application concept
- 字节跳动技术面试官现身说法:我最想pick什么样的候选人
- LeetCode 1984. Minimum difference in student scores
- Chapter 6 datanode
- ~70 row high
- Fdog series (V): use QT to imitate QQ to realize login interface to main interface, function chapter.
猜你喜欢
JS encapsulates the method of array inversion -- Feng Hao's blog
LeetCode 1560. The sector with the most passes on the circular track
Spark independent cluster dynamic online and offline worker node
Shell_ 04_ Shell script
我在字节跳动「修电影」
Solve the problem that intel12 generation core CPU single thread only runs on small cores
I'm "fixing movies" in ByteDance
我走過最迷的路,是字節跳動程序員的腦回路
was unable to send heartbeat
The "advertising maniacs" in this group of programmers turned Tiktok advertisements into ar games
随机推荐
J'ai traversé le chemin le plus fou, le circuit cérébral d'un programmeur de saut d'octets
Record the error reason
LeetCode1556. Thousand separated number
was unable to send heartbeat
Go language uses the thrift protocol to realize the client and service end reports not enough arguments in call to oprot Writemessagebegin error resolution
腾讯面试算法题
Simply try the new amp model of deepfacelab (deepfake)
Chapter 5 yarn resource scheduler
[unsolved]7-14 calculation diagram
The most lost road I have ever walked through is the brain circuit of ByteDance programmers
[graduation project] QT from introduction to practice: realize imitation of QQ communication, which is also the last blog post in school.
这群程序员中的「广告狂人」,把抖音广告做成了AR游戏
Shell_ 02_ Text three swordsman
How to configure hosts when setting up Eureka
ByteDance technical Interviewer: what kind of candidate do I want to pick most
Cmake error: could not create named generator visual studio 16 2019 solution
~83 form introduction
我走過最迷的路,是字節跳動程序員的腦回路
Shell_ 03_ environment variable
Detailed explanation of FLV format