当前位置:网站首页>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).
边栏推荐
- 文档声明与字符编码
- Wechat applet - realize the countdown of 60 seconds to obtain the mobile verification code (mobile number + verification code login function)
- Websites that it people often visit
- Yolov5网络修改教程(将backbone修改为EfficientNet、MobileNet3、RegNet等)
- Mysql中常见的锁
- 【leetcode】81. Search rotation sort array II
- 10 minutes to understand CMS garbage collector in JVM
- Thinkphp Kernel wo system source Commercial Open source multi - user + multi - Customer Service + SMS + email notification
- Pytoch --- use pytoch to predict birds
- How to solve the problem that objects cannot be deleted in Editor Mode
猜你喜欢
Let正版短信测压开源源码
MySQL advanced SQL statement 2
Spring recruitment of Internet enterprises: Kwai meituan has expanded the most, and the annual salary of technical posts is up to nearly 400000
Exposure X8 Standard Version picture post filter PS, LR and other software plug-ins
C language practice - number guessing game
【leetcode】34. Find the first and last positions of elements in a sorted array
pip 安装第三方库
Thinkphp Kernel wo system source Commercial Open source multi - user + multi - Customer Service + SMS + email notification
Hand tear - sort
Learn what definitelytyped is through the typescript development environment of SAP ui5
随机推荐
66.qt quick-qml自定义日历组件(支持竖屏和横屏)
The confusion I encountered when learning stm32
Uni app - realize the countdown of 60 seconds to obtain the mobile verification code (mobile number + verification code login function)
Pytorch-Yolov5从0运行Bug解决:
Playing with concurrency: what are the ways of communication between threads?
CorelDRAW graphics suite2022 free graphic design software
Wechat applet calculates the distance between the two places
Deep understanding of lambda expressions
微信小程序 - 实现获取手机验证码倒计时 60 秒(手机号+验证码登录功能)
Document declaration and character encoding
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!
Free drawing software recommended - draw io
千亿市场规模医疗美容行业的水究竟有多浑?
Spring moves are coming. Watch the gods fight
How much can a job hopping increase? Today, I saw the ceiling of job hopping.
Exposure X8 Standard Version picture post filter PS, LR and other software plug-ins
Major domestic quantitative trading platforms
Force buckle 540 A single element in an ordered array
Federal learning: dividing non IID samples according to Dirichlet distribution
The solution to the complexity brought by lambda expression