1.CF-Carry Flag(进位标志位)
主要用来反映运算是否产生进位或错位,产生进位或错位则CF = 1,否则CF = 0。
Equals to 1 if a transfer occurs beyond the limits of N bits or happens a loan from outside.
2.PF-Parity Flag (奇偶标志位)
用于反映运算结果中“1”的个数的奇偶性,如果“1”的个数为偶数,则PF = 1,否则,PF = 0。
It is equal to 1 if the operation result's low byte contains an even number of ones.
3.AF-Auxiliary(Adjust) Carry Flag (辅助进位标志位)
运算时不论长度是多少,看最后四位,最后四位向前有进位或借位,则AF = 1,否则,AF = 0。
Equals to 1 if there is a loan or a transfer between the first and second nibble (half of byte).
4.ZF-Zero Flag (零标志位)
用来反映运算结果是否为0,如果运算结果为0,则ZF = 1,否则,ZF = 0。
Equals 1 if the result of the operation is zero.
5.SF-Sign Flag (符号标志位)
二进制中0表示正,1表示负,用来反映运算结果正负的符号位,运算结果为正时,SF = 0,否则,
SF = 1。
It is equal to 1 if the result of the operation is negative, otherwise - 0.
6.OF-Overflow Flag (溢出标志位)
用于反映有符号数运算所得结果是否溢出,如果运算结果超过当前运算位数表示的范围时,则为溢出,OF = 1; 不溢出时,OF = 0。
It is equal to 1 if the operation's result does not fit the N bit (when using a two's complement).