1 /*****************************************************************************/
5 /* Creativision system specific definitions */
10 /* (C) 2017 Christian Groessler <chris@groessler.org> */
13 /* This software is provided 'as-is', without any expressed or implied */
14 /* warranty. In no event will the authors be held liable for any damages */
15 /* arising from the use of this software. */
17 /* Permission is granted to anyone to use this software for any purpose, */
18 /* including commercial applications, and to alter it and redistribute it */
19 /* freely, subject to the following restrictions: */
21 /* 1. The origin of this software must not be misrepresented; you must not */
22 /* claim that you wrote the original software. If you use this software */
23 /* in a product, an acknowledgment in the product documentation would be */
24 /* appreciated but is not required. */
25 /* 2. Altered source versions must be plainly marked as such, and must not */
26 /* be misrepresented as being the original software. */
27 /* 3. This notice may not be removed or altered from any source */
30 /*****************************************************************************/
38 #define CH_ULCORNER 35
39 #define CH_URCORNER 36
40 #define CH_LLCORNER 37
41 #define CH_LRCORNER 38
43 /* Masks for joy_read */
44 #define JOY_UP_MASK 0x10
45 #define JOY_DOWN_MASK 0x04
46 #define JOY_LEFT_MASK 0x20
47 #define JOY_RIGHT_MASK 0x08
48 #define JOY_BTN_1_MASK 0x01
49 #define JOY_BTN_2_MASK 0x02
51 /* no support for dynamically loadable drivers */
54 /* Colours - from TMS9918 */
55 #define C_TRANSPARENT 0
58 #define C_LIGHT_GREEN 3
60 #define C_LIGHT_BLUE 5
65 #define C_DARK_YELLOW 10
66 #define C_LIGHT_YELLOW 11
67 #define C_DARK_GREEN 12
73 void __fastcall__ psg_outb(unsigned char b);
74 void __fastcall__ psg_delay(unsigned char b);
75 void psg_silence(void);
76 void __fastcall__ bios_playsound(void *a, unsigned char b);
78 #endif /* #ifndef _CVISION_H */