Browse Source

Add flag definitions.

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
a27defa483
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      src/arch/i386/include/registers.h

+ 8
- 0
src/arch/i386/include/registers.h View File

@@ -176,4 +176,12 @@ struct i386_all_regs {
176 176
 	uint32_t flags;
177 177
 } PACKED;
178 178
 
179
+/* Flags */
180
+#define CF ( 1 <<  0 )
181
+#define PF ( 1 <<  2 )
182
+#define AF ( 1 <<  4 )
183
+#define ZF ( 1 <<  6 )
184
+#define SF ( 1 <<  7 )
185
+#define OF ( 1 << 11 )
186
+
179 187
 #endif /* REGISTERS_H */

Loading…
Cancel
Save