当前位置:网站首页>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).
边栏推荐
- Play with concurrency: what's the use of interruptedexception?
- Today's plan: February 15, 2022
- PIP installation of third-party libraries
- Go branch and loop
- 66.qt quick QML Custom Calendar component (supports vertical and horizontal screens)
- The core idea of performance optimization, dry goods sharing
- Pytoch --- use pytoch for image positioning
- cookie、session、tooken
- Thinkphp内核工单系统源码商业开源版 多用户+多客服+短信+邮件通知
- Pytorch---使用Pytorch进行鸟类的预测
猜你喜欢

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

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

What methods should service define?

Use of go package

First acquaintance with P4 language

Opencv learning example code 3.2.4 LUT

Déchirure à la main - tri

Fluent icon demo

Landing guide for "prohibit using select * as query field list"

unable to execute xxx. SH: operation not permitted
随机推荐
C language practice - binary search (half search)
The original author is out! Faker. JS has been controlled by the community..
WiFi 5GHz frequency
Deep understanding of lambda expressions
深圳打造全球“鸿蒙欧拉之城”将加快培育生态,优秀项目最高资助 1000 万元
Installation et utilisation du lac bleu
Pytorch---使用Pytorch实现U-Net进行语义分割
Keil compilation code of CY7C68013A
10 minutes to understand CMS garbage collector in JVM
IDEA xml中sql没提示,且方言设置没用。
Let正版短信测压开源源码
Three years of experience in Android development interview (I regret that I didn't get n+1, Android bottom development tutorial
Landing guide for "prohibit using select * as query field list"
[untitled]
okcc为什么云呼叫中心比传统呼叫中心更好?
unable to execute xxx. SH: operation not permitted
Wechat applet calculates the distance between the two places
【c语言】基础篇学习笔记
MySQL advanced SQL statement 2
Go variables and constants