* add p cc
[mascara-docs.git] / hw / i386.reference / appb.htm
blob2d5b5338500905b1002ef4f75f0988afce2b0fbc
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
2 <HTML>
3 <HEAD>
4 <TITLE>80386 Programmer's Reference Manual -- Chapter 17</TITLE>
5 </HEAD>
6 <BODY>
7 <B>up:</B> <A HREF="app.htm">
8 Appendices</A><BR>
9 <B>prev:</B>
10 <A HREF="appa.htm">Appendix A -- Opcode Map</A><BR>
11 <B>next:</B>
12 <A HREF="appc.htm">Appendix C -- Status Flag Summary</A><BR>
13 <P>
14 <HR>
15 <P>
16 <H1>Appendix B -- Complete Flag Cross-Reference</H1>
18 <H3>Key to Codes</H3>
20 <PRE>
21 T = instruction tests flag
23 M = instruction modifies flag
24 (either sets or resets depending on operands)
26 0 = instruction resets flag
28 1 = instruction sets flag
30 -- = instruction's effect on flag is undefined
32 R = instruction restores prior value of flag
34 blank = instruction does not affect flag
35 </PRE>
37 <PRE>
38 Instruction OF SF ZF AF PF CF TF IF DF NT RF
40 AAA -- -- -- TM -- M
41 AAD -- M M -- M --
42 AAM -- M M -- M --
43 AAS -- -- -- TM -- M
44 ADC M M M M M TM
45 ADD M M M M M M
46 AND 0 M M -- M 0
47 ARPL M
48 BOUND
49 BSF/BSR -- -- M -- -- --
50 BT/BTS/BTR/BTC -- -- -- -- -- M
51 CALL
52 CBW
53 CLC 0
54 CLD 0
55 CLI 0
56 CLTS
57 CMC M
58 CMP M M M M M M
59 CMPS M M M M M M T
60 CWD
61 DAA -- M M TM M TM
62 DAS -- M M TM M TM
63 DEC M M M M M
64 DIV -- -- -- -- -- --
65 ENTER
66 ESC
67 HLT
68 IDIV -- -- -- -- -- --
69 IMUL M -- -- -- -- M
71 INC M M M M M
72 INS T
73 INT 0 0
74 INTO T 0 0
75 IRET R R R R R R R R R T
76 Jcond T T T T T
77 JCXZ
78 JMP
79 LAHF
80 LAR M
81 LDS/LES/LSS/LFS/LGS
82 LEA
83 LEAVE
84 LGDT/LIDT/LLDT/LMSW
85 LOCK
86 LODS T
87 LOOP
88 LOOPE/LOOPNE T
89 LSL M
90 LTR
91 MOV
92 MOV control, debug -- -- -- -- -- --
93 MOVS T
94 MOVSX/MOVZX
95 MUL M -- -- -- -- M
96 NEG M M M M M M
97 NOP
98 NOT
99 OR 0 M M -- M 0
101 OUTS T
102 POP/POPA
103 POPF R R R R R R R R R R
104 PUSH/PUSHA/PUSHF
105 RCL/RCR 1 M TM
106 RCL/RCR count -- TM
107 REP/REPE/REPNE
109 ROL/ROR 1 M M
110 ROL/ROR count -- M
111 SAHF R R R R R
112 SAL/SAR/SHL/SHR 1 M M M -- M M
113 SAL/SAR/SHL/SHR count -- M M -- M M
114 SBB M M M M M TM
115 SCAS M M M M M M T
116 SET cond T T T T T
117 SGDT/SIDT/SLDT/SMSW
118 SHLD/SHRD -- M M -- M M
119 STC 1
120 STD 1
121 STI 1
122 STOS T
124 SUB M M M M M M
125 TEST 0 M M -- M 0
126 VERR/VERRW M
127 WAIT
128 XCHG
129 XLAT
130 XOR 0 M M -- M 0
131 </PRE>
133 <HR>
135 <B>up:</B> <A HREF="app.htm">
136 Appendices</A><BR>
137 <B>prev:</B>
138 <A HREF="appa.htm">Appendix A -- Opcode Map</A><BR>
139 <B>next:</B>
140 <A HREF="appc.htm">Appendix C -- Status Flag Summary</A><BR>
141 </BODY>