当前位置:网站首页>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).
边栏推荐
- Www 2022 | rethinking the knowledge map completion of graph convolution network
- Arbre binaire pour résoudre le problème (2)
- 蓝湖的安装及使用
- How to solve the problem that objects cannot be deleted in Editor Mode
- June book news | 9 new books are listed, with a strong lineup and eyes closed!
- 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!
- Federal learning: dividing non IID samples according to Dirichlet distribution
- Shutdown procedure after 60
- office_ Delete the last page of word (the seemingly blank page)
- Use of go package
猜你喜欢

【c语言】动态规划---入门到起立

Www2022 | know your way back: self training method of graph neural network under distribution and migration

The confusion I encountered when learning stm32

Websites that it people often visit

Play with concurrency: draw a thread state transition diagram
![[source code analysis] NVIDIA hugectr, GPU version parameter server - (1)](/img/e3/fc2e78dc1e3e3cacbd1a389c82d33e.jpg)
[source code analysis] NVIDIA hugectr, GPU version parameter server - (1)

win11安装pytorch-gpu遇到的坑

文档声明与字符编码

Alibaba cloud polkit pkexec local rights lifting vulnerability

缓存一致性解决方案——改数据时如何保证缓存和数据库中数据的一致性
随机推荐
LCM of Spreadtrum platform rotates 180 °
[untitled]
Play with concurrency: draw a thread state transition diagram
【毕业季·进击的技术er】年少有梦,何惧彷徨
二叉樹解題(二)
Wechat applet calculates the distance between the two places
Pytoch --- use pytoch to realize u-net semantic segmentation
Mysql表insert中文变?号的问题解决办法
【c语言】动态规划---入门到起立
Hand tear - sort
Force buckle 540 A single element in an ordered array
Free drawing software recommended - draw io
The original author is out! Faker. JS has been controlled by the community..
Use of go package
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
记录一次Unity 2020.3.31f1的bug
【提高课】ST表解决区间最值问题【2】
C language guessing numbers game
[untitled]
Lei Jun wrote a blog when he was a programmer. It's awesome