当前位置:网站首页>Assembly language (7) operation instruction
Assembly language (7) operation instruction
2022-06-26 12:00:00 【Day-3】
1 mul ride
assume cs:code
code segment
main proc
mov ax,5
mov bx,2
mul bx
MOV AX,4C00H
INT 21H
main endp
start:call main
code ends
end start
mul Write a register after , Another automatic call ax, The results are stored in ax in , If it is greater than 16 Bits exist DX:AX in .
2 div except
assume cs:code
code segment
main proc
mov ax,5
mov bx,2
div bx
MOV AX,4C00H
INT 21H
main endp
start:call main
code ends
end start
ax Storage providers ,dx Store the remainder .
3 An operation
xor Exclusive or Two operands , Put it in the first operand
and And Two operands , Put it in the first operand
or or Two operands , Put it in the first operand
not Take the opposite An operand
4 Shift instructions
There are many shift commands in assembly , Shift left and shift right have different types .
Move left
Left shift yes SHL( Logic shift left )、SAL( Arithmetic shift left ) , Both are shifted to the left , All use 0 To fill the empty bits generated by the shift . There is no difference between the two .
Move left and ROL( Cyclic shift to the left )、RCL( Shift left with carry cycle ), Cyclic shift to the left , As the name suggests, it circulates to the left ; Loop with carry shifts left , That is, the result of the shift “ overflow ” Bit shift in CF in , primary CF The value in moves into the number .
Move right
Shift right yes SHR( Logical shift right )、SAR( Arithmetic shift right ), The positions resulting from arithmetic shift right are filled with sign bits ; Logical shift right use 0 fill .
Move right and ROR( Cycle moves to the right )、RCR( Shift right with carry cycle ), Similar to left shift loop and carry loop .
边栏推荐
- Group by is used in laravel to group and query the quantity
- How to do well in member marketing three steps to teach you to understand member management
- Change calico network mode to host GW
- 4. N queen problem
- Loggie encoding and newline character test
- Build document editor based on slate
- Introduction to Dolby panoramic sound
- Refined operation, extending the full life cycle value LTV
- Build document editor based on slate
- Jmeter响应时间和tps监听器使用教程
猜你喜欢

word中涂黑的方块

Redux related usage

2021 q3-q4 investigation report on the use status of kotlin multiplatform

介绍一下实现建模中可能用到的时间序列预测之线性二次移动平均,Excel的简单操作

Pre knowledge of hash table -- binary search tree

Machine learning SVM - Experimental Report

FasterRCNN

【Redis 系列】redis 学习十六,redis 字典(map) 及其核心编码结构

19:第三章:开发通行证服务:2:在程序中,打通阿里云短信服务;(仅仅是打通阿里云短信服务器,不涉及具体的业务开发)

Deep thinking from senior member managers
随机推荐
有手就行的移动平均法、指数平滑法的Excel操作,用来时间序列预测
express在nodejs中的基本使用
The most complete kubernetes core command of the latest version so far
Loggie encoding and newline character test
CG骨骼动画
18:第三章:开发通行证服务:1:短信登录&注册流程,简介;(这儿使用短信验证码)
Pratique de l'attaque et de la défense du réseau HUST | 6 Expérience de sécurité du microprogramme de l'équipement IOT | expérience 2 technologie d'atténuation des attaques de l'équipement IOT basée s
One click deployment of your own community forum
证券账户可以开通 开户安全吗
I want to know how the top ten securities firms open accounts? Is online account opening safe?
This paper introduces the simple operation of realizing linear quadratic moving average of time series prediction that may be used in modeling and excel
Rookie practical UML - activity diagram
HUST network attack and defense practice | 6_ IOT device firmware security experiment | Experiment 2 MPU based IOT device attack mitigation technology
Is it safe to open an account in the top ten securities app rankings in China
HUST网络攻防实践|6_物联网设备固件安全实验|实验三 FreeRTOS-MPU 保护绕过
Is it safe to open a securities account
Prospering customs through science and technology, Ronglian and Tianjin Customs jointly build a genomic database and analysis platform
FastRCNN
On the use of protostaff [easy to understand]
动态规划解决股票问题(下)