]> git.sur5r.net Git - cc65/blob - include/_gtia.h
This commit was generated by cvs2svn to compensate for changes in r2,
[cc65] / include / _gtia.h
1 /*
2  * _gtia.h
3  *
4  * Freddy Offenga, 4/9/2000
5  *
6  * Internal include file, do not use directly.
7  *
8  */
9
10
11 #ifndef __GTIA_H
12 #define __GTIA_H
13
14
15 /* Define a structure with the gtia register offsets */
16 struct __gtia_write {
17     unsigned char   hposp0; /* horizontal position player 0 */
18     unsigned char   hposp1; /* horizontal position player 1 */
19     unsigned char   hposp2; /* horizontal position player 2 */
20     unsigned char   hposp3; /* horizontal position player 3 */
21     unsigned char   hposm0; /* horizontal position missile 0 */
22     unsigned char   hposm1; /* horizontal position missile 1 */
23     unsigned char   hposm2; /* horizontal position missile 2 */
24     unsigned char   hposm3; /* horizontal position missile 3 */
25     unsigned char   sizep0; /* size of player 0 */
26     unsigned char   sizep1; /* size of player 1 */
27     unsigned char   sizep2; /* size of player 2 */
28     unsigned char   sizep3; /* size of player 3 */
29     unsigned char   sizem;  /* size of missiles */
30     unsigned char   grafp0; /* graphics shape player 0 */
31     unsigned char   grafp1; /* graphics shape player 1 */
32     unsigned char   grafp2; /* graphics shape player 2 */
33     unsigned char   grafp3; /* graphics shape player 3 */
34     unsigned char   grafm;  /* graphics shape missiles */
35     unsigned char   colpm0; /* color player and missile 0 */
36     unsigned char   colpm1; /* color player and missile 1 */
37     unsigned char   colpm2; /* color player and missile 2 */
38     unsigned char   colpm3; /* color player and missile 3 */
39     unsigned char   colpf0; /* color playfield 0 */
40     unsigned char   colpf1; /* color playfield 1 */
41     unsigned char   colpf2; /* color playfield 2 */
42     unsigned char   colpf3; /* color playfield 3 */
43     unsigned char   colbk;  /* color background */
44     unsigned char   prior;  /* priority selection */
45     unsigned char   vdelay; /* vertical delay */
46     unsigned char   gractl; /* stick/paddle latch, p/m control */
47     unsigned char   hitclr; /* clear p/m collision */
48     unsigned char   consol; /* console buttons */
49 };
50
51 /* Define a structure with the gtia register offsets */
52 struct __gtia_read {
53     unsigned char   m0pf;   /* missile 0 to playfield collision */
54     unsigned char   m1pf;   /* missile 1 to playfield collision */
55     unsigned char   m2pf;   /* missile 2 to playfield collision */
56     unsigned char   m3pf;   /* missile 3 to playfield collision */
57     unsigned char   p0pf;   /* player 0 to playfield collision */
58     unsigned char   p1pf;   /* player 1 to playfield collision */
59     unsigned char   p2pf;   /* player 2 to playfield collision */
60     unsigned char   p3pf;   /* player 3 to playfield collision */
61     unsigned char   m0pl;   /* missile 0 to player collision */
62     unsigned char   m1pl;   /* missile 1 to player collision */
63     unsigned char   m2pl;   /* missile 2 to player collision */
64     unsigned char   m3pl;   /* missile 3 to player collision */
65     unsigned char   p0pl;   /* player 0 to player collision */
66     unsigned char   p1pl;   /* player 1 to player collision */
67     unsigned char   p2pl;   /* player 2 to player collision */
68     unsigned char   p3pl;   /* player 3 to player collision */
69     unsigned char   trig0;  /* joystick trigger 0 */
70     unsigned char   trig1;  /* joystick trigger 1 */
71     unsigned char   trig2;  /* joystick trigger 2 */
72     unsigned char   trig3;  /* joystick trigger 3 */
73     unsigned char   pal;    /* pal/ntsc flag */
74 };
75
76 /* End of _gtia.h */
77 #endif
78