Source code of Windows XP (NT5)
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.

35 lines
888 B

  1. #ifndef TYPEDEFS
  2. #define TYPEDEFS
  3. /* The standard typdef's */
  4. typedef unsigned char BYTE;
  5. typedef unsigned char UCHAR;
  6. typedef unsigned short WORD;
  7. typedef unsigned long DWORD;
  8. typedef unsigned long ULONG;
  9. typedef unsigned int UINT;
  10. /* Bit retrieval mechanism */
  11. #define GetBit(val,bit) (unsigned int) ((val>>bit) & 0x1)
  12. /* Returns the bit */
  13. #define SetBit(val,bit) (unsigned int ) (val | (0x1 << bit))
  14. /* Sets bit to 1 */
  15. #define ResetBit(val,bit) (unsigned int ) (val & ~(0x1 << bit))
  16. /* Sets bit to 0 */
  17. void SelectBank(UINT, const cBank);
  18. void UpdateBanks();
  19. void UpdateBankZero();
  20. void UpdateBankOne();
  21. void UpdateBankTwo();
  22. void UpdateBankThree();
  23. void UpdateBankFour();
  24. void UpdateBankFive();
  25. void UpdateBankSix();
  26. void UpdateBankSeven();
  27. BYTE ReadBank(UINT, const , int );
  28. void WriteBank(UINT, const , int , UCHAR);
  29. #endif