X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=bootcensus;a=blobdiff_plain;f=src%2Fint86.h;h=2545925861d9c2cbfa52ccf90e1b716849815cb7;hp=d6fcb7ddd00b2338aae098f21505b9176bddf7d5;hb=c5698ff9776ac76cd2243525177c35b0d12855e0;hpb=9c8fab227bf5da62f78bbd3da62aa9ff941c6239 diff --git a/src/int86.h b/src/int86.h index d6fcb7d..2545925 100644 --- a/src/int86.h +++ b/src/int86.h @@ -27,6 +27,19 @@ struct int86regs { 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_ */