当前位置:网站首页>汇编标志位相关知识点(连)
汇编标志位相关知识点(连)
2022-06-25 12:21:00 【wangzhiyuyeshou】
2022-6-21
neg eax
sbb eax,eax
① neg:取补命令。具体操作:neg eax==>eax=0-eax,即0减去操作数。
neg eax影响CF、SF、PF、AF、ZF
当eax=0,eax=0x0000 0000。此时PF=1,ZF=1,CF=0,AF=0
当eax>0,eax=-eax,CF,PF,AF,SF都变为1.
当eax<0,eax=-eax,CF=AF=1。
② sbb:带借位的减法。具体操作:sbb eax,eax==>eax=eax-eax-CF。
所以最终这句代码取决于CF位到底是0,还是1,若CF==1,则eax=0xFFFFFFFF,若CF=0,则eax=0x0
③ 总结
上述两行代码验证eax是否为0,若eax为0,则eax最终结果为0;若eax不为0,则eax最终结果为-1
边栏推荐
- 重装cuda/cudnn/pytorch
- Jenkins pipeline uses
- Module 5 (microblog comments)
- MySQL writes user-defined functions and stored procedure syntax (a detailed case is attached, and the problem has been solved: errors are reported when running user-defined functions, and errors are r
- leetcode - 384. 打乱数组
- [AI helps scientific research] fool drawing of loss curve
- Talk about 11 key techniques of high availability
- 百度搜索稳定性问题分析的故事
- [Visio]平行四边形在Word中模糊问题解决
- 又是被Visdom搞崩溃的一夜
猜你喜欢
![[AI helps scientific research] fool drawing of loss curve](/img/38/5cb2a3d33a609dab3874215d5f7b5b.png)
[AI helps scientific research] fool drawing of loss curve

Using CMD (command prompt) to install MySQL & configure the environment

高性能负载均衡架构如何实现?

Parse JSON format data and save it to entity class

Connect with the flight book and obtain the user information according to the userid

Koa 框架

Command line garbled

Update PIP & Download jupyter Lab

更新pip&下载jupyter lab

How to implement a high-performance load balancing architecture?
随机推荐
量化交易之回测篇 - 期货CTA策略策略(TQZFutureRenkoWaveStrategy)
聊聊高可用的 11 个关键技巧
使用Visio画立方体
yolov5训练使用的负样本图片
Another night when visdom crashed
1024水文
Qt5 multi thread operation implemented by object base class and use of movetothread method
地理空间搜索 ->R树索引
C program linking SQLSERVER database: instance failed
冷启动的最优解决方案
JS uses the for loop in the function to insert and delete the array at the specified position
Geospatial search - > R tree index
地理空间搜索:kd树的实现原理
Resolved: could not find artifact XXX
Write regular isosceles triangle and inverse isosceles triangle with for loop in JS
量化交易之回测篇 - 期货CTA策略实例(TQZFutureRenkoScalpingStrategy)
The push(), pop(), unshift(), shift() method in the JS array
Idea2017 how to set not to automatically open a project at startup
20220620 面试复盘
Lexical trap