]> git.sur5r.net Git - cc65/blob - include/creativision.h
Fixed _textcolor definition.
[cc65] / include / creativision.h
1 /*****************************************************************************/
2 /*                                                                           */
3 /*                             creativision.h                                */
4 /*                                                                           */
5 /*                  Creativision system specific definitions                 */
6 /*                                                                           */
7 /*                                                                           */
8 /*                                                                           */
9 /* (C) 2013      cvemu                                                       */
10 /* (C) 2017      Christian Groessler <chris@groessler.org>                   */
11 /*                                                                           */
12 /*                                                                           */
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.                                    */
16 /*                                                                           */
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:                            */
20 /*                                                                           */
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              */
28 /*    distribution.                                                          */
29 /*                                                                           */
30 /*****************************************************************************/
31
32 #ifndef _CVISION_H
33 #define _CVISION_H
34
35 /* Character codes */
36 #define CH_VLINE 33
37 #define CH_HLINE 34
38 #define CH_ULCORNER 35
39 #define CH_URCORNER 36
40 #define CH_LLCORNER 37
41 #define CH_LRCORNER 38
42
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
50
51 /* no support for dynamically loadable drivers */
52 #define DYN_DRV 0
53
54 /* Colours - from TMS9918 */
55 #define C_TRANSPARENT   0
56 #define C_BLACK         1
57 #define C_MED_GREEN     2
58 #define C_LIGHT_GREEN   3
59 #define C_DARK_BLUE     4
60 #define C_LIGHT_BLUE    5
61 #define C_DARK_RED      6
62 #define C_CYAN          7
63 #define C_MED_RED       8
64 #define C_LIGHT_RED     9
65 #define C_DARK_YELLOW   10
66 #define C_LIGHT_YELLOW  11
67 #define C_DARK_GREEN    12
68 #define C_MAGENTA       13
69 #define C_GREY          14
70 #define C_WHITE         15
71
72 /* Protos */
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);
77
78 #endif  /* #ifndef _CVISION_H */