当前位置:网站首页>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).
边栏推荐
- Ten thousand volumes are known to all, and one page of a book is always relevant. TVP reading club will take you through the reading puzzle!
- Pytorch-Yolov5從0運行Bug解决:
- My first experience of shadowless cloud computer
- [untitled]
- Use a mask to restrict the input of the qlineedit control
- Cache consistency solution - how to ensure the consistency between the cache and the data in the database when changing data
- FAQ | FAQ for building applications for large screen devices
- Let正版短信测压开源源码
- Sword finger offer II 006 Sort the sum of two numbers in the array
- June book news | 9 new books are listed, with a strong lineup and eyes closed!
猜你喜欢

CY7C68013A之keil编译代码

Research on the security of ognl and El expressions and memory horse

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

Li Kou interview question 02.08 Loop detection

文档声明与字符编码

Play with concurrency: what's the use of interruptedexception?

云服务器的安全设置常识

Déchirure à la main - tri

66.qt quick-qml自定义日历组件(支持竖屏和横屏)

cs架构下抓包的几种方法
随机推荐
First acquaintance with P4 language
Thinkphp Kernel wo system source Commercial Open source multi - user + multi - Customer Service + SMS + email notification
LeetCode-归并排序链表
藍湖的安裝及使用
The difference between vectorresize and reverse.
okcc为什么云呼叫中心比传统呼叫中心更好?
60后关机程序
Pytorch yolov5 exécute la résolution de bogues à partir de 0:
Yolov5 network modification tutorial (modify the backbone to efficientnet, mobilenet3, regnet, etc.)
Thinkphp6 limit interface access frequency
Li Kou interview question 02.08 Loop detection
Social media search engine optimization and its importance
66.qt quick QML Custom Calendar component (supports vertical and horizontal screens)
Opencv learning example code 3.2.4 LUT
二叉樹解題(二)
Www2022 | know your way back: self training method of graph neural network under distribution and migration
Okcc why is cloud call center better than traditional call center?
Pytorch---使用Pytorch进行鸟类的预测
Microsoft Research Institute's new book "Fundamentals of data science", 479 Pages pdf
Let正版短信测压开源源码