当前位置:网站首页>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).
边栏推荐
- Www2022 | know your way back: self training method of graph neural network under distribution and migration
- Websites that it people often visit
- [source code analysis] NVIDIA hugectr, GPU version parameter server - (1)
- What is 5g industrial wireless gateway? What functions can 5g industrial wireless gateway achieve?
- The original author is out! Faker. JS has been controlled by the community..
- PIP installation of third-party libraries
- 如何解决在editor模式下 无法删除物体的问题
- 千亿市场规模医疗美容行业的水究竟有多浑?
- Document declaration and character encoding
- Homework of the 16th week
猜你喜欢

Yyds dry inventory compiler and compiler tools

Microsoft Research Institute's new book "Fundamentals of data science", 479 Pages pdf

Common sense of cloud server security settings

Thinkphp內核工單系統源碼商業開源版 多用戶+多客服+短信+郵件通知

Alibaba cloud polkit pkexec local rights lifting vulnerability

Cache consistency solution - how to ensure the consistency between the cache and the data in the database when changing data

Pytorch---使用Pytorch实现U-Net进行语义分割

Pytoch --- use pytoch for image positioning

Deeply understand the concepts of synchronization and asynchrony, blocking and non blocking, parallel and serial

Realizing deep learning framework from zero -- Introduction to neural network
随机推荐
A summary of common interview questions in 2022, including 25 technology stacks, has helped me successfully get an offer from Tencent
Keil compilation code of CY7C68013A
C language guessing numbers game
What is 5g industrial wireless gateway? What functions can 5g industrial wireless gateway achieve?
Actual combat | use composite material 3 in application
uni-app - 实现获取手机验证码倒计时 60 秒(手机号+验证码登录功能)
Free drawing software recommended - draw io
Read "the way to clean code" - function names should express their behavior
Typescript practice for SAP ui5
The solution to the complexity brought by lambda expression
The original author is out! Faker. JS has been controlled by the community..
LxC limits the number of CPUs
What methods should service define?
Markdown编辑语法
66.qt quick QML Custom Calendar component (supports vertical and horizontal screens)
Homework of the 16th week
FAQ | FAQ for building applications for large screen devices
Yolov5 network modification tutorial (modify the backbone to efficientnet, mobilenet3, regnet, etc.)
CorelDRAW graphics suite2022 free graphic design software
[JS -- map string]