当前位置:网站首页>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

边栏推荐
- ~84 form supplement
- DS18B20数字温度计系统设计
- High performance mysql (Third Edition) notes
- string. How to choose h and string and CString
- TCP的三次握手和四次挥手
- When it comes to Google i/o, this is how ByteDance is applied to flutter
- Activit fragmented deadly pit
- was unable to send heartbeat
- Idea resolving jar package conflicts
- ~73 other text styles
猜你喜欢

Shell_ 01_ data processing

Full record of ByteDance technology newcomer training: a guide to the new growth of school recruitment

搭建flutter环境入坑集合

~68 Icon Font introduction

Shell_ 06_ Judgment and circulation

Alibaba cloud server builds SVN version Library

Record the error reason: terminate called after throwing an instance

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

字节跳动开源GAN模型压缩框架,算力最高节省97.8%丨ICCV 2021

~69 other ways to use icon fonts
随机推荐
Solr standalone installation
Description of project structure configuration of idea
TCP的三次握手和四次挥手
Eureka single machine construction
唯有学C不负众望 TOP1环境配置
@RequestMapping、@GetMapping
Restful style interface design
唯有学C不负众望 TOP4 S1E6:数据类型
7-4 harmonic average
Usage of insert() in vector
Activiti directory (IV) inquiry agency / done, approved
DOS 功能调用
~68 Icon Font introduction
MySQL字符串函数
Shell_ 05_ operator
Shell_ 07_ Functions and regular expressions
我走过最迷的路,是字节跳动程序员的脑回路
Introduction to microservices
Resume of a microservice architecture teacher with 10 years of work experience
算数运算指令