当前位置:网站首页>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
边栏推荐
- Fdog series (V): use QT to imitate QQ to realize login interface to main interface, function chapter.
- 这群程序员中的「广告狂人」,把抖音广告做成了AR游戏
- GCC error: terminate called after throwing an instance of 'std:: regex_ error‘ what(): regex
- 在 vi 编辑器中的命令模式下,删除当前光标处的字符使用 __ 命 令。
- 字节跳动春招攻略:学长学姐笔经面经,还有出题人「锦囊」
- 7-5 blessing arrived
- MySQL string function
- yum install xxx报错
- Description of project structure configuration of idea
- @RequestMapping、@GetMapping
猜你喜欢
随机推荐
QT system learning series: 1.2 style sheet sub control lookup
Shell_ 07_ Functions and regular expressions
MySQL string function
Continue and break jump out of multiple loops
@RestController、@Controller
Activiti directory (III) deployment process and initiation process
Eight part essay that everyone likes
服务器端渲染(SSR)和客户端渲染(CSR)的区别
唯有學C不負眾望 TOP5 S1E8|S1E9:字符和字符串&&算術運算符
High performance mysql (Third Edition) notes
Activiti目录(三)部署流程、发起流程
Ce n'est qu'en apprenant que c est à la hauteur des attentes Top5 s1e8 | s1e9: caractères et chaînes & opérateurs arithmétiques
(multiple methods, need to continue to see) 7-11 go deep into the tiger's Den
~81 long table
Shell_ 01_ data processing
Activiti directory (IV) inquiry agency / done, approved
唯有学C不负众望 TOP1环境配置
Usage of insert() in vector
唯有学C不负众望 TOP2 p1变量
Yum install XXX reports an error