uint16_t es, ds, fs, gs;
} __attribute__ ((packed));
+#define FLAGS_CARRY 0x0001
+#define FLAGS_PARITY 0x0004
+#define FLAGS_AUXC 0x0010
+#define FLAGS_ZERO 0x0040
+#define FLAGS_SIGN 0x0080
+#define FLAGS_TRAP 0x0100
+#define FLAGS_INTR 0x0200
+#define FLAGS_DIR 0x0400
+#define FLAGS_OVF 0x0800
+#define FLAGS_SIOPL(x) (((uint16_t)(x) & 3) << 12)
+#define FLAGS_GIOPL(x) (((x) >> 12) & 3)
+#define FLAGS_NTASK 0x4000
+
void int86(int inum, struct int86regs *regs);
#endif /* INT86_H_ */