1 /*****************************************************************************/
5 /* Oric Telestrat system-specific definitions */
9 /* (C) 2017 Debrune Jérome, <jede@oric.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 /*****************************************************************************/
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
44 /* TGI color defines */
45 /* White and red are swapped, so that the pallete
46 ** driver is compatible with black-and-white drivers.
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
58 extern void telestrat_228_200_3_tgi[];
59 extern void telestrat_240_200_2_tgi[]; /* Referred to by tgi_static_stddrv[] */
63 #define VIA (*(struct __6522*)0x300)
67 /* These are defined to be FUNCT + NumberKey */
82 #define CH_ULCORNER '+'
83 #define CH_URCORNER '+'
84 #define CH_LLCORNER '+'
85 #define CH_LRCORNER '+'
92 #define CH_CURS_DOWN 10
93 #define CH_CURS_LEFT 8
94 #define CH_CURS_RIGHT 9