1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML 2.0//EN">
4 <TITLE>80386 Programmer's Reference Manual -- Appendix C
</TITLE>
7 <B>up:
</B> <A HREF=
"app.htm">
10 <A HREF=
"appb.htm">Appendix B -- Complete Flag Cross-Reference
</A><BR>
12 <A HREF=
"appd.htm">Appendix D -- Condition Codes
</A>
16 <H1>Appendix C -- Status Flag Summary
</H1>
18 <H3>Status Flags' Functions
</H3>
23 0 CF Carry Flag -- Set on high-order bit carry or borrow; cleared
25 2 PF Parity Flag -- Set if low-order eight bits of result contain
26 an even number of
1 bits; cleared otherwise.
27 4 AF Adjust flag -- Set on carry from or borrow to the low order
28 four bits of AL; cleared otherwise. Used for decimal
30 6 ZF Zero Flag -- Set if result is zero; cleared otherwise.
31 7 SF Sign Flag -- Set equal to high-order bit of result (
0 is
32 positive,
1 if negative).
33 11 OF Overflow Flag -- Set if result is too large a positive number
34 or too small a negative number (excluding sign-bit) to fit in
35 destination operand; cleared otherwise.
41 T = instruction tests flag
42 M = instruction modifies flag
43 (either sets or resets depending on operands)
44 0 = instruction resets flag
45 -- = instruction's effect on flag is undefined
46 blank = instruction does not affect flag
50 Instruction OF SF ZF AF PF CF
73 SAL/SAR/SHL/SHR
1 M M M -- M M
74 SAL/SAR/SHL/SHR count -- M M -- M M
75 SHLD/SHRD -- M M -- M M
76 BSF/BSR -- -- M -- -- --
77 BT/BTS/BTR/BTC -- -- -- -- -- M
86 <B>up:
</B> <A HREF=
"app.htm">
89 <A HREF=
"appb.htm">Appendix B -- Complete Flag Cross-Reference
</A><BR>
91 <A HREF=
"appd.htm">Appendix D -- Condition Codes
</A>