* better
[mascara-docs.git] / hw / i386.reference / CMC.htm
blob757e8c979c376d99859dfa3d8bf0b235a104fe66
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
2 <HTML>
3 <HEAD>
4 <TITLE>80386 Programmer's Reference Manual -- Opcode CMC</TITLE>
5 </HEAD>
6 <BODY>
7 <B>up:</B> <A HREF="c17.htm">
8 Chapter 17 -- 80386 Instruction Set</A><BR>
9 <B>prev:</B><A HREF="CLTS.htm"> CLTS Clear Task-Switched Flag in CR0</A><BR>
10 <B>next:</B><A HREF="CMP.htm"> CMP Compare Two Operands</A>
11 <P>
12 <HR>
13 <P>
14 <H1>CMC -- Complement Carry Flag</H1>
16 <PRE>
17 Opcode Instruction Clocks Description
19 F5 CMC 2 Complement carry flag
20 </PRE>
23 <H2>Operation</H2>
25 <PRE>
26 CF := NOT CF;
27 </PRE>
29 <H2>Description</H2>
31 CMC reverses the setting of the carry flag. No other flags are affected.
33 <H2>Flags Affected</H2>
35 CF as described above
37 <H2>Protected Mode Exceptions</H2>
39 None
41 <H2>Real Address Mode Exceptions</H2>
43 None
45 <H2>Virtual 8086 Mode Exceptions</H2>
47 None
50 <P>
51 <HR>
52 <P>
53 <B>up:</B> <A HREF="c17.htm">
54 Chapter 17 -- 80386 Instruction Set</A><BR>
55 <B>prev:</B><A HREF="CLTS.htm"> CLTS Clear Task-Switched Flag in CR0</A><BR>
56 <B>next:</B><A HREF="CMP.htm"> CMP Compare Two Operands</A>
57 </BODY>