当前位置:网站首页>汇编标志位相关知识点(连)
汇编标志位相关知识点(连)
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
边栏推荐
- 冷启动的最优解决方案
- Flutter automatically disappears after receiving push
- Elemntui's select+tree implements the search function
- Go from 0 to 1. Obtain the installation package, get, post request, params, body and other parameters
- Singleton mode in PHP to reduce memory consumption
- 1251- Client does not support authentication protocol MySql错误解决方案
- 515. Find Largest Value in Each Tree Row
- PPT绘图之AI助力论文图
- 剑指offer 第 3 天字符串(简单)
- 英语口语 - 连读
猜你喜欢

地理空间搜索 ->R树索引

3+1保障:高可用系统稳定性是如何炼成的?

剑指offer 第 3 天字符串(简单)

剑指 Offer II 029. 排序的循环链表

剑指 Offer 第 1 天栈与队列(简单)

Render values to corresponding text

Why are databases cloud native?

GPS receiver design (1)

The editor is used every day. What is the working principle of language service protocol?

Elemtnui select control combined with tree control to realize user-defined search method
随机推荐
torch.tensor拼接与list(tensors)
Jenkins Pipeline使用
画图常用配色
剑指 Offer 第 1 天栈与队列(简单)
515. Find Largest Value in Each Tree Row
5 kinds of viewer for browser
线上服务应急攻关方法论
PPT绘图之AI助力论文图
QT TCP UDP network communication < theory >
Shell learning notes (latest update: 2022-02-18)
High performance + million level Excel data import and export
yolov5训练使用的负样本图片
Jupyter Notebook主题字体设置及自动代码补全
美创入选“2022 CCIA中国网络安全竞争力50强”榜单
重装cuda/cudnn/pytorch
初识CANOpen
el-select clear 清空内容时触发事件
英语口语 - 连读
The amount is verified, and two zeros are spliced by integers during echo
JS SMS countdown implementation (simple code)