Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1996-2000 Microsoft Corporation
  3. Module Name:
  4. eflags.h
  5. Abstract:
  6. Bit positions for the various flag bits inside EFLAGS
  7. Author:
  8. Barry Bond (barrybo) creation-date 25-January-2000
  9. Revision History:
  10. --*/
  11. #ifndef _EFLAGS_INCLUDED
  12. #define _EFLAGS_INCLUDED
  13. #define FLAG_CF (1<<0) // carry
  14. // bit 1 is always 1
  15. #define FLAG_PF (1<<2) // parity
  16. // bit 3 is always 0
  17. #define FLAG_AUX (1<<4) // aux carry
  18. // bit 5 is always 0
  19. #define FLAG_ZF (1<<6) // zero
  20. #define FLAG_SF (1<<7) // sign
  21. #define FLAG_TF (1<<8) // trap
  22. #define FLAG_IF (1<<9) // interrupt enable
  23. #define FLAG_DF (1<<10) // direction
  24. #define FLAG_OF (1<<11) // overflow
  25. #define FLAG_IOPL (3<<12) // IOPL = 3
  26. #define FLAG_NT (1<<14) // nested task
  27. // bit 15 is 0
  28. #define FLAG_RF (1<<16) // resume flag
  29. #define FLAG_VM (1<<17) // virtual mode
  30. #define FLAG_AC (1<<18) // alignment check
  31. #define FLAG_ID (1<<21) // ID bit (CPUID present if this can be toggled)
  32. #endif //_EFLAGS_INCLUDED