]> git.sur5r.net Git - cc65/blob - include/creativision.h
Added a missing -O configuration.
[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 /* no support for dynamically loadable drivers */
44 #define DYN_DRV 0
45
46 /* Colours - from TMS9918 */
47 #define C_TRANSPARENT   0
48 #define C_BLACK         1
49 #define C_MED_GREEN     2
50 #define C_LIGHT_GREEN   3
51 #define C_DARK_BLUE     4
52 #define C_LIGHT_BLUE    5
53 #define C_DARK_RED      6
54 #define C_CYAN          7
55 #define C_MED_RED       8
56 #define C_LIGHT_RED     9
57 #define C_DARK_YELLOW   10
58 #define C_LIGHT_YELLOW  11
59 #define C_DARK_GREEN    12
60 #define C_MAGENTA       13
61 #define C_GREY          14
62 #define C_WHITE         15
63
64 /* Protos */
65 void __fastcall__ psg_outb(unsigned char b);
66 void __fastcall__ psg_delay(unsigned char b);
67 void psg_silence(void);
68 void __fastcall__ bios_playsound(void *a, unsigned char b);
69
70 #endif  /* #ifndef _CVISION_H */