]> git.sur5r.net Git - cc65/blob - include/telestrat.h
Fixed _textcolor definition.
[cc65] / include / telestrat.h
1 /*****************************************************************************/
2 /*                                                                           */
3 /*                             telestrat.h                                   */
4 /*                                                                           */
5 /*                   Oric Telestrat system-specific definitions              */
6 /*                                                                           */
7 /*                                                                           */
8 /*                                                                           */
9 /* (C) 2017       Debrune Jérome, <jede@oric.org>                            */
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
33
34 /* Color defines */
35 #define COLOR_BLACK     0x00
36 #define COLOR_RED       0x01
37 #define COLOR_GREEN     0x02
38 #define COLOR_YELLOW    0x03
39 #define COLOR_BLUE      0x04
40 #define COLOR_MAGENTA   0x05
41 #define COLOR_CYAN      0x06
42 #define COLOR_WHITE     0x07
43
44 /* TGI color defines */
45 /* White and red are swapped, so that the pallete
46 ** driver is compatible with black-and-white drivers.
47 */
48 #define TGI_COLOR_BLACK         COLOR_BLACK
49 #define TGI_COLOR_WHITE         1
50 #define TGI_COLOR_GREEN         COLOR_GREEN
51 #define TGI_COLOR_YELLOW        COLOR_YELLOW
52 #define TGI_COLOR_BLUE          COLOR_BLUE
53 #define TGI_COLOR_MAGENTA       COLOR_MAGENTA
54 #define TGI_COLOR_CYAN          COLOR_CYAN
55 #define TGI_COLOR_RED           7
56
57
58 extern void telestrat_228_200_3_tgi[];
59 extern void telestrat_240_200_2_tgi[];      /* Referred to by tgi_static_stddrv[] */
60
61 /* Define hardware */
62 #include <_6522.h>
63 #define VIA     (*(struct __6522*)0x300)
64
65
66
67 /* These are defined to be FUNCT + NumberKey */
68 #define CH_F1           0xB1
69 #define CH_F2           0xB2
70 #define CH_F3           0xB3
71 #define CH_F4           0xB4
72 #define CH_F5           0xB5
73 #define CH_F6           0xB6
74 #define CH_F7           0xB7
75 #define CH_F8           0xB8
76 #define CH_F9           0xB9
77 #define CH_F10          0xB0
78
79
80
81 /* Character codes */
82 #define CH_ULCORNER     '+'
83 #define CH_URCORNER     '+'
84 #define CH_LLCORNER     '+'
85 #define CH_LRCORNER     '+'
86 #define CH_TTEE         '+'
87 #define CH_BTEE         '+'
88 #define CH_LTEE         '+'
89 #define CH_RTEE         '+'
90 #define CH_CROSS        '+'
91 #define CH_CURS_UP       11
92 #define CH_CURS_DOWN     10
93 #define CH_CURS_LEFT      8
94 #define CH_CURS_RIGHT     9
95 #define CH_DEL          127
96 #define CH_ENTER         13
97 #define CH_STOP           3
98 #define CH_LIRA          95
99 #define CH_ESC           27
100
101
102
103 void oups();
104 void ping();
105 void zap();
106 void shoot();
107 void explode();
108
109 void kbdclick1();
110
111
112
113