vregset.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. Copyright (C) 1996-1997 Id Software, Inc.
  3. This program is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU General Public License
  5. as published by the Free Software Foundation; either version 2
  6. of the License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. See the GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  14. */
  15. //
  16. // vregset.h: header file for video register-setting interpreter
  17. //
  18. //
  19. // registers & subregisters
  20. //
  21. #define MISC_OUTPUT 0x3C2
  22. #define SC_INDEX 0x3C4
  23. #define SC_DATA 0x3C5
  24. #define SYNC_RESET 0
  25. #define MAP_MASK 2
  26. #define MEMORY_MODE 4
  27. #define GC_INDEX 0x3CE
  28. #define GC_DATA 0x3CF
  29. #define READ_MAP 4
  30. #define GRAPHICS_MODE 5
  31. #define MISCELLANOUS 6
  32. #define CRTC_INDEX 0x3D4
  33. #define CRTC_DATA 0x3D5
  34. #define MAX_SCAN_LINE 9
  35. #define UNDERLINE 0x14
  36. #define MODE_CONTROL 0x17
  37. //
  38. // register-set commands
  39. //
  40. #define VRS_END 0
  41. #define VRS_BYTE_OUT 1
  42. #define VRS_BYTE_RMW 2
  43. #define VRS_WORD_OUT 3
  44. void VideoRegisterSet (int *pregset);