aboutsummaryrefslogtreecommitdiffstats
path: root/com32/include
diff options
context:
space:
mode:
authorhpa <hpa>2004-01-24 21:11:47 +0000
committerhpa <hpa>2004-01-24 21:11:47 +0000
commit834e9d5623967dfa7c04b573a72901e24e484ffd (patch)
treeeac1d6171820e9b3a4bbdad1b4a3a3f4471f6457 /com32/include
parent38d4d8899db8a01100688dbc748f7abbc392c5b5 (diff)
downloadsyslinux-834e9d5623967dfa7c04b573a72901e24e484ffd.tar.gz
syslinux-834e9d5623967dfa7c04b573a72901e24e484ffd.tar.xz
syslinux-834e9d5623967dfa7c04b573a72901e24e484ffd.zip
Add explicit defines for the various flags
Diffstat (limited to 'com32/include')
-rw-r--r--com32/include/com32.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/com32/include/com32.h b/com32/include/com32.h
index cc4bc825..2462607c 100644
--- a/com32/include/com32.h
+++ b/com32/include/com32.h
@@ -46,6 +46,25 @@ typedef struct {
reg32_t eflags; /* Offset 40 */
} com32sys_t;
+/* EFLAGS definitions */
+#define EFLAGS_CF 0x00000001
+#define EFLAGS_PF 0x00000004
+#define EFLAGS_AF 0x00000010
+#define EFLAGS_ZF 0x00000040
+#define EFLAGS_SF 0x00000080
+#define EFLAGS_TF 0x00000100
+#define EFLAGS_IF 0x00000200
+#define EFLAGS_DF 0x00000400
+#define EFLAGS_OF 0x00000800
+#define EFLAGS_IOPL 0x00003000
+#define EFLAGS_NT 0x00004000
+#define EFLAGS_RF 0x00010000
+#define EFLAGS_VM 0x00020000
+#define EFLAGS_AC 0x00040000
+#define EFLAGS_VIF 0x00080000
+#define EFLAGS_VIP 0x00100000
+#define EFLAGS_ID 0x00200000
+
extern struct com32_sys_args {
uint32_t cs_sysargs;
char *cs_cmdline;