1 /*****************************************************************************/
5 /* Atari 5200 system specific definitions */
9 /* (C) 2014 Christian Groessler <chris@groessler.org> */
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. */
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: */
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 */
29 /*****************************************************************************/
38 /* Check for errors */
39 #if !defined(__ATARI5200__)
40 # error This module may only be used when compiling for the Atari 5200!
43 /* no support for dynamically loadable drivers */
46 /* the addresses of the static drivers */
47 extern void atr5200std_joy[]; /* referred to by joy_static_stddrv[] */
49 /* Masks for joy_read */
50 #define JOY_UP_MASK 0x01
51 #define JOY_DOWN_MASK 0x02
52 #define JOY_LEFT_MASK 0x04
53 #define JOY_RIGHT_MASK 0x08
54 #define JOY_BTN_1_MASK 0x10
57 #define CH_ULCORNER 0x0B /* '+' sign */
58 #define CH_URCORNER 0x0B
59 #define CH_LLCORNER 0x0B
60 #define CH_LRCORNER 0x0B
61 #define CH_HLINE 0x0D /* dash */
62 #define CH_VLINE 0x01 /* exclamation mark */
64 /* get_tv return values */
70 #define GTIA_READ (*(struct __gtia_read*)0xC000)
71 #define GTIA_WRITE (*(struct __gtia_write*)0xC000)
74 #define POKEY_READ (*(struct __pokey_read*)0xE800)
75 #define POKEY_WRITE (*(struct __pokey_write*)0xE800)
78 #define ANTIC (*(struct __antic*)0xD400)
80 /* conio color defines */
81 #define COLOR_WHITE 0x00
82 #define COLOR_RED 0x01
83 #define COLOR_GREEN 0x02
84 #define COLOR_BLACK 0x03
86 /* The following #define will cause the matching function calls in conio.h
87 ** to be overlaid by macros with the same names, saving the function call
90 #define _bordercolor(color) 0
92 /* End of atari5200.h */