当前位置:网站首页>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
边栏推荐
- Sword finger offer II 025 Adding two numbers in a linked list
- Used in time filter (EL table)
- [flask tutorial] flask development foundation and introduction
- 中国虚拟人哪家强?沙利文、IDC:小冰百度商汤位列第一梯队
- 使用Visio画立方体
- [machine learning] parameter learning and gradient descent
- [machine learning] model and cost function
- [machine learning] what is machine learning?
- How to implement a high-performance load balancing architecture?
- Oral English - continuous reading
猜你喜欢

Serevlt初识

Sword finger offer day 3 string (simple)

KDD 2022 | GraphMAE:自监督掩码图自编码器

Fedora 35 部署DNS主从和分离解析 —— 筑梦之路

二叉树之_哈夫曼树_哈弗曼编码

Sword finger offer II 025 Adding two numbers in a linked list

Baidu search stability analysis story

Sword finger offer II 032 Effective anagrams

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

nacos无法修改配置文件Mysql8.0的解决方法
随机推荐
汇编标志位相关知识点(连)
Resolved: could not find artifact XXX
[machine learning] what is machine learning?
剑指 Offer 第 1 天栈与队列(简单)
解析數倉lazyagg查詢重寫優化
Summary of leetcode linked list problem solving skills
Wechat full-text search technology optimization
Conway's law can not be flexibly applied as an architect?
字符串入门十八讲合集四
几分钟上线一个网站 真是神器
字符串各操作函数与内存函数详解
And console Log say goodbye
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
KDD 2022 | graphmae: self supervised mask map self encoder
更新pip&下载jupyter lab
ByteDance dev better technology salon is coming! Participate in the activity to win a good gift, and sign up for free within a limited time!
Event triggered when El select Clear clears content
Baidu search stability analysis story
[machine learning] model and cost function
美创入选“2022 CCIA中国网络安全竞争力50强”榜单