home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Emulation / Atari800 / gtia.h < prev    next >
C/C++ Source or Header  |  1998-02-19  |  3KB  |  123 lines

  1. #ifndef __GTIA__
  2. #define __GTIA__
  3.  
  4. #include "atari.h"
  5.  
  6. #define _HPOSP0 0x00
  7. #define _M0PF 0x00
  8. #define _HPOSP1 0x01
  9. #define _M1PF 0x01
  10. #define _HPOSP2 0x02
  11. #define _M2PF 0x02
  12. #define _HPOSP3 0x03
  13. #define _M3PF 0x03
  14. #define _HPOSM0 0x04
  15. #define _P0PF 0x04
  16. #define _HPOSM1 0x05
  17. #define _P1PF 0x05
  18. #define _HPOSM2 0x06
  19. #define _P2PF 0x06
  20. #define _HPOSM3 0x07
  21. #define _P3PF 0x07
  22. #define _SIZEP0 0x08
  23. #define _M0PL 0x08
  24. #define _SIZEP1 0x09
  25. #define _M1PL 0x09
  26. #define _SIZEP2 0x0a
  27. #define _M2PL 0x0a
  28. #define _SIZEP3 0x0b
  29. #define _M3PL 0x0b
  30. #define _SIZEM 0x0c
  31. #define _P0PL 0x0c
  32. #define _GRAFP0 0x0d
  33. #define _P1PL 0x0d
  34. #define _GRAFP1 0x0e
  35. #define _P2PL 0x0e
  36. #define _GRAFP2 0x0f
  37. #define _P3PL 0x0f
  38. #define _GRAFP3 0x10
  39. #define _TRIG0 0x10
  40. #define _GRAFM 0x11
  41. #define _TRIG1 0x11
  42. #define _COLPM0 0x12
  43. #define _TRIG2 0x12
  44. #define _COLPM1 0x13
  45. #define _TRIG3 0x13
  46. #define _COLPM2 0x14
  47. #define _PAL 0x14
  48. #define _COLPM3 0x15
  49. #define _COLPF0 0x16
  50. #define _COLPF1 0x17
  51. #define _COLPF2 0x18
  52. #define _COLPF3 0x19
  53. #define _COLBK 0x1a
  54. #define _PRIOR 0x1b
  55. #define _VDELAY 0x1c
  56. #define _GRACTL 0x1d
  57. #define _HITCLR 0x1e
  58. #define _CONSOL 0x1f
  59.  
  60. #define PL_COLPL0 0x00
  61. #define PL_COLPL1 0x01
  62. #define PL_COLPL2 0x02
  63. #define PL_COLPL3 0x03
  64. #define PF_COLPF0 0x04
  65. #define PF_COLPF1 0x05
  66. #define PF_COLPF2 0x06
  67. #define PF_COLPF3 0x07
  68. #define PF_COLBK 0x08
  69. #define PF_COLPF1_FID 0x09
  70. /* the last one is a special color register for "fiddled" color 1, i.e.
  71.    the hue is taken from whatever is in front of COLPF2 */
  72.  
  73. extern UBYTE GRAFM;
  74. extern UBYTE GRAFP0;
  75. extern UBYTE GRAFP1;
  76. extern UBYTE GRAFP2;
  77. extern UBYTE GRAFP3;
  78. extern UBYTE HPOSP0;
  79. extern UBYTE HPOSP1;
  80. extern UBYTE HPOSP2;
  81. extern UBYTE HPOSP3;
  82. extern UBYTE HPOSM0;
  83. extern UBYTE HPOSM1;
  84. extern UBYTE HPOSM2;
  85. extern UBYTE HPOSM3;
  86. extern UBYTE SIZEP0;
  87. extern UBYTE SIZEP1;
  88. extern UBYTE SIZEP2;
  89. extern UBYTE SIZEP3;
  90. extern UBYTE SIZEM;
  91. extern UBYTE COLPM0;
  92. extern UBYTE COLPM1;
  93. extern UBYTE COLPM2;
  94. extern UBYTE COLPM3;
  95. extern UBYTE COLPF0;
  96. extern UBYTE COLPF1;
  97. extern UBYTE COLPF2;
  98. extern UBYTE COLPF3;
  99. extern UBYTE COLBK;
  100. extern UBYTE GRACTL;
  101. extern UBYTE PRIOR;
  102. extern UBYTE VDELAY;
  103. extern int delayp0,delayp1,delayp2,delayp3;
  104. extern int delaym0,delaym1,delaym2,delaym3;
  105.  
  106. /* collision registers are no longer public, for good reason */
  107.  
  108. extern UWORD m0123adr;
  109. extern UWORD pl0adr;
  110. extern UWORD pl1adr;
  111. extern UWORD pl2adr;
  112. extern UWORD pl3adr;
  113.  
  114. extern UBYTE colour_lookup[9];
  115. extern int colour_translation_table[256];
  116. extern int next_console_value;
  117.  
  118. void Atari_ScanLine (int hscrol);
  119. void Init_GTIA(int *argc,char **argv,int base);
  120.  
  121.  
  122. #endif
  123.