当前位置:网站首页>Assemble relevant knowledge points of flag bit (connected)
Assemble relevant knowledge points of flag bit (connected)
2022-06-25 13:09:00 【wangzhiyuyeshou】
2022-6-21
neg eax
sbb eax,eax
① neg: Complement command . Specific operation :neg eax==>eax=0-eax, namely 0 Subtract the operands .
neg eax influence CF、SF、PF、AF、ZF
When eax=0,eax=0x0000 0000. here PF=1,ZF=1,CF=0,AF=0
When eax>0,eax=-eax,CF,PF,AF,SF All become 1.
When eax<0,eax=-eax,CF=AF=1.
② sbb: subtraction with carry . Specific operation :sbb eax,eax==>eax=eax-eax-CF.
So ultimately this code depends on CF What is the position 0, still 1, if CF==1, be eax=0xFFFFFFFF, if CF=0, be eax=0x0
③ summary
The above two lines of code verify eax Is it 0, if eax by 0, be eax The final result is 0; if eax Not for 0, be eax The final result is -1
边栏推荐
- [data visualization] 360 ° teaching you how to comprehensively learn visualization - Part 1
- 剑指offer 第 3 天字符串(简单)
- Update PIP & Download jupyter Lab
- 剑指 Offer 04. 二维数组中的查找
- 重磅直播|BizDevOps:数字化转型浪潮下的技术破局之路
- Qt显示FFmpeg解码的图片
- mysql导入导出数据到excel表日期出现问题
- Geospatial search - > R tree index
- 架构师必备的七种能力
- list. replace, str.append
猜你喜欢

一篇文章讲清楚MySQL的聚簇/联合/覆盖索引、回表、索引下推

PPT绘图之AI助力论文图

Conway's law can not be flexibly applied as an architect?

3+1 guarantee: how is the stability of the highly available system refined?

Resolution of PPT paper drawing
![[Visio]平行四边形在Word中模糊问题解决](/img/04/8a1de2983d648e67f823b5d973c003.png)
[Visio]平行四边形在Word中模糊问题解决

leetcode - 384. Scramble array

爱可可AI前沿推介(6.25)

剑指 Offer II 025. 链表中的两数相加

画图常用配色
随机推荐
Sword finger offer day 1 stack and queue (simple)
[Visio]平行四边形在Word中模糊问题解决
剑指 Offer II 025. 链表中的两数相加
Update PIP & Download jupyter Lab
Sword finger offer II 025 Adding two numbers in a linked list
剑指 Offer 04. 二维数组中的查找
Django框架——缓存、信号、跨站请求伪造、 跨域问题、cookie-session-token
量化交易之回测篇 - 期货CTA策略实例(TQZFutureRenkoScalpingStrategy)
C# 切换中英文输入法
量化交易之回测篇 - 期货CTA策略策略(TQZFutureRenkoWaveStrategy)
Oral English - continuous reading
15 basic SEO skills to improve ranking
Differences between JS and JQ operation objects
深圳民太安智能二面_秋招第一份offer
线上服务应急攻关方法论
leetcode - 384. Scramble array
Sword finger offer day 3 string (simple)
RESTful和RPC
Heavyweight live | bizdevops: the way to break the technology situation under the tide of digital transformation
1251- Client does not support authentication protocol MySql错误解决方案