]> git.sur5r.net Git - cc65/blob - include/_gtia.h
Removed pet.inc, since the real file is still in the pet directory and this
[cc65] / include / _gtia.h
1 /*****************************************************************************/
2 /*                                                                           */
3 /*                                 _gtia.h                                   */
4 /*                                                                           */
5 /*                  Internal include file, do not use directly               */
6 /*                                                                           */
7 /*                                                                           */
8 /*                                                                           */
9 /* (C) 2000 Freddy Offenga <taf_offenga@yahoo.com>                           */
10 /*                                                                           */
11 /*                                                                           */
12 /* This software is provided 'as-is', without any expressed or implied       */
13 /* warranty.  In no event will the authors be held liable for any damages    */
14 /* arising from the use of this software.                                    */
15 /*                                                                           */
16 /* Permission is granted to anyone to use this software for any purpose,     */
17 /* including commercial applications, and to alter it and redistribute it    */
18 /* freely, subject to the following restrictions:                            */
19 /*                                                                           */
20 /* 1. The origin of this software must not be misrepresented; you must not   */
21 /*    claim that you wrote the original software. If you use this software   */
22 /*    in a product, an acknowledgment in the product documentation would be  */
23 /*    appreciated but is not required.                                       */
24 /* 2. Altered source versions must be plainly marked as such, and must not   */
25 /*    be misrepresented as being the original software.                      */
26 /* 3. This notice may not be removed or altered from any source              */
27 /*    distribution.                                                          */
28 /*                                                                           */
29 /*****************************************************************************/
30
31
32 #ifndef __GTIA_H
33 #define __GTIA_H
34
35 /* Define a structure with the gtia register offsets */
36 struct __gtia_write {
37     unsigned char   hposp0; /* horizontal position player 0 */
38     unsigned char   hposp1; /* horizontal position player 1 */
39     unsigned char   hposp2; /* horizontal position player 2 */
40     unsigned char   hposp3; /* horizontal position player 3 */
41     unsigned char   hposm0; /* horizontal position missile 0 */
42     unsigned char   hposm1; /* horizontal position missile 1 */
43     unsigned char   hposm2; /* horizontal position missile 2 */
44     unsigned char   hposm3; /* horizontal position missile 3 */
45     unsigned char   sizep0; /* size of player 0 */
46     unsigned char   sizep1; /* size of player 1 */
47     unsigned char   sizep2; /* size of player 2 */
48     unsigned char   sizep3; /* size of player 3 */
49     unsigned char   sizem;  /* size of missiles */
50     unsigned char   grafp0; /* graphics shape player 0 */
51     unsigned char   grafp1; /* graphics shape player 1 */
52     unsigned char   grafp2; /* graphics shape player 2 */
53     unsigned char   grafp3; /* graphics shape player 3 */
54     unsigned char   grafm;  /* graphics shape missiles */
55     unsigned char   colpm0; /* color player and missile 0 */
56     unsigned char   colpm1; /* color player and missile 1 */
57     unsigned char   colpm2; /* color player and missile 2 */
58     unsigned char   colpm3; /* color player and missile 3 */
59     unsigned char   colpf0; /* color playfield 0 */
60     unsigned char   colpf1; /* color playfield 1 */
61     unsigned char   colpf2; /* color playfield 2 */
62     unsigned char   colpf3; /* color playfield 3 */
63     unsigned char   colbk;  /* color background */
64     unsigned char   prior;  /* priority selection */
65     unsigned char   vdelay; /* vertical delay */
66     unsigned char   gractl; /* stick/paddle latch, p/m control */
67     unsigned char   hitclr; /* clear p/m collision */
68     unsigned char   consol; /* console buttons */
69 };
70
71 /* Define a structure with the gtia register offsets */
72 struct __gtia_read {
73     unsigned char   m0pf;   /* missile 0 to playfield collision */
74     unsigned char   m1pf;   /* missile 1 to playfield collision */
75     unsigned char   m2pf;   /* missile 2 to playfield collision */
76     unsigned char   m3pf;   /* missile 3 to playfield collision */
77     unsigned char   p0pf;   /* player 0 to playfield collision */
78     unsigned char   p1pf;   /* player 1 to playfield collision */
79     unsigned char   p2pf;   /* player 2 to playfield collision */
80     unsigned char   p3pf;   /* player 3 to playfield collision */
81     unsigned char   m0pl;   /* missile 0 to player collision */
82     unsigned char   m1pl;   /* missile 1 to player collision */
83     unsigned char   m2pl;   /* missile 2 to player collision */
84     unsigned char   m3pl;   /* missile 3 to player collision */
85     unsigned char   p0pl;   /* player 0 to player collision */
86     unsigned char   p1pl;   /* player 1 to player collision */
87     unsigned char   p2pl;   /* player 2 to player collision */
88     unsigned char   p3pl;   /* player 3 to player collision */
89     unsigned char   trig0;  /* joystick trigger 0 */
90     unsigned char   trig1;  /* joystick trigger 1 */
91     unsigned char   trig2;  /* joystick trigger 2 */
92     unsigned char   trig3;  /* joystick trigger 3 */
93     unsigned char   pal;    /* pal/ntsc flag */
94 };
95
96 /* End of _gtia.h */
97 #endif /* #ifndef __GTIA_H */
98