当前位置:网站首页>Flag bits in assembly language: CF, PF, AF, ZF, SF, TF, if, DF, of
Flag bits in assembly language: CF, PF, AF, ZF, SF, TF, if, DF, of
2022-07-02 04:28:00 【Sun Bujian 1208】
One 、 Operation structure flag bit
1.CF( Carry flag bit ): Mainly used to reflect whether the operation produces carry or borrow , Generating carry or borrow is CF=1, otherwise CF=0.
2.PF( Parity flag bit ): Used to reflect the results of operations “1” The parity of the number of , If “1” The number of is even , be PF=1, otherwise ,PF=0.
3.AF( Auxiliary carry flag bit ): Look at the last four digits during the operation , Whatever the length , The last four digits carry or borrow forward , be AF=1, otherwise ,AF=0.
4.ZF( Zero flag bit ): It is used to reflect whether the operation result is 0, If the result is 0, be ZF=1, otherwise ZF=0.
5.SF( Symbol sign bit ): The sign bit used to reflect the positive and negative of the operation result , When the operation structure is positive ,SF=0, otherwise SF=1.
6.OF( overflow flag ): Used to reflect whether the result of signed number addition and subtraction operation overflows , If the operation result exceeds the range represented by the current operation digit , Then overflow ,OF=1, otherwise ,OF=0.
Two 、 Status control flag bit
The status control flag bit is used to control CPU Operation of the , They can only be changed by special instructions .
1.TF( Tracking flag bit ): When TF Be set to 1 when ,CPU Enter single step execution mode , That is, every instruction executed , Generate a single step interrupt request . This method is mainly used for program debugging .
Be careful : There is no special instruction in the instruction system to change the flag bit TF Value , But programmers can change its value in other ways .
2.IF( Interrupt allow flag bit ): Used to decide CPU Whether to respond to CPU External maskable interrupt requests , When IF=1 when ,CPU Respond to CPU External maskable interrupt requests , When IF=0 when ,CPU Do not respond to CPU External maskable interrupt requests .
Be careful : Regardless of the value of this flag ,CPU Must respond to CPU An interrupt request made by an external non maskable interrupt , as well as CPU Internally generated interrupt requests .
3.DF( Direction sign bit ): In a string processing instruction , After each operation , If DF=0, be si、di Increasing , If DF=1, be si、di Decline .
Be careful :DF The value of is set by the programmer .(cld The order is to DF Set as 0,std The order is to DF The value is 1).
边栏推荐
- Free drawing software recommended - draw io
- Uni app - realize the countdown of 60 seconds to obtain the mobile verification code (mobile number + verification code login function)
- 二叉樹解題(二)
- Pytorch---使用Pytorch实现U-Net进行语义分割
- Learn what definitelytyped is through the typescript development environment of SAP ui5
- MySQL error: expression 1 of select list is not in group by claim and contains nonaggre
- Déchirure à la main - tri
- Play with concurrency: what's the use of interruptedexception?
- 【提高课】ST表解决区间最值问题【2】
- [source code analysis] NVIDIA hugectr, GPU version parameter server - (1)
猜你喜欢

66.qt quick QML Custom Calendar component (supports vertical and horizontal screens)

【leetcode】74. Search 2D matrix

Hand tear - sort

Use of go package

Thinkphp内核工单系统源码商业开源版 多用户+多客服+短信+邮件通知

Pytoch --- use pytoch to predict birds

Www 2022 | rethinking the knowledge map completion of graph convolution network

C language practice - binary search (half search)

LeetCode-归并排序链表

Keil compilation code of CY7C68013A
随机推荐
第十六周作业
万卷共知,一书一页总关情,TVP读书会带你突围阅读迷障!
Pytorch---使用Pytorch进行鸟类的预测
Pytoch --- use pytoch to predict birds
PIP installation of third-party libraries
MySQL advanced SQL statement 2
Target free or target specific: a simple and effective zero sample position detection comparative learning method
Thinkphp6 limit interface access frequency
Spring recruitment of Internet enterprises: Kwai meituan has expanded the most, and the annual salary of technical posts is up to nearly 400000
How to model noise data? Hong Kong Baptist University's latest review paper on "label noise representation learning" comprehensively expounds the data, objective function and optimization strategy of
文档声明与字符编码
Document declaration and character encoding
How to solve the problem that objects cannot be deleted in Editor Mode
Binary tree problem solving (1)
The solution to the complexity brought by lambda expression
Pytorch---使用Pytorch进行图像定位
Markdown编辑语法
Wechat applet map annotation
Microsoft Research Institute's new book "Fundamentals of data science", 479 Pages pdf
【c语言】动态规划---入门到起立