1 /*****************************************************************************/
5 /* PC-Engine system specific definitions */
9 /* (C) 2015 Groepaz/Hitmen */
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 /*****************************************************************************/
34 /* Check for errors */
36 # error This module may only be used when compiling for the PCE!
39 /* FIXME: the respective characters are not present in the VGA charset (yet) */
45 #define CH_ULCORNER 0x10
46 #define CH_URCORNER 0x10
47 #define CH_LLCORNER 0x10
48 #define CH_LRCORNER 0x10
50 /* Color defines (CBM compatible, for conio) */
51 #define COLOR_BLACK 0x00
52 #define COLOR_WHITE 0x01
53 #define COLOR_RED 0x02
54 #define COLOR_CYAN 0x03
55 #define COLOR_VIOLET 0x04
56 #define COLOR_GREEN 0x05
57 #define COLOR_BLUE 0x06
58 #define COLOR_YELLOW 0x07
59 #define COLOR_ORANGE 0x08
60 #define COLOR_BROWN 0x09
61 #define COLOR_LIGHTRED 0x0A
62 #define COLOR_GRAY1 0x0B
63 #define COLOR_GRAY2 0x0C
64 #define COLOR_LIGHTGREEN 0x0D
65 #define COLOR_LIGHTBLUE 0x0E
66 #define COLOR_GRAY3 0x0F
72 /* No support for dynamically loadable drivers */
75 /* The addresses of the static drivers */
76 extern void pce_stdjoy_joy[]; /* Referred to by joy_static_stddrv[] */
82 /* FIXME: not implemented */
83 void waitvblank (void);
84 /* Wait for the vertical blanking */
86 /* all PCE are NTSC */
87 #define get_tv() TV_NTSC
88 /* Return the video mode the machine is using. */