1 /*****************************************************************************/
5 /* PET system specific definitions */
9 /* (C) 1998-2005 Ullrich von Bassewitz */
11 /* D-70794 Filderstadt */
12 /* EMail: uz@cc65.org */
15 /* This software is provided 'as-is', without any expressed or implied */
16 /* warranty. In no event will the authors be held liable for any damages */
17 /* arising from the use of this software. */
19 /* Permission is granted to anyone to use this software for any purpose, */
20 /* including commercial applications, and to alter it and redistribute it */
21 /* freely, subject to the following restrictions: */
23 /* 1. The origin of this software must not be misrepresented; you must not */
24 /* claim that you wrote the original software. If you use this software */
25 /* in a product, an acknowledgment in the product documentation would be */
26 /* appreciated but is not required. */
27 /* 2. Altered source versions must be plainly marked as such, and must not */
28 /* be misrepresented as being the original software. */
29 /* 3. This notice may not be removed or altered from any source */
32 /*****************************************************************************/
41 /* Check for errors */
43 # error This module may only be used when compiling for the CBM PET!
48 /*****************************************************************************/
50 /*****************************************************************************/
55 #define COLOR_BLACK 0x00
56 #define COLOR_WHITE 0x01
60 #define PIA1 (*(struct __pia*)0xE810)
61 #define PIA2 (*(struct __pia*)0xE820)
64 #define VIA (*(struct __6522*)0xE840)
66 /* All models from 40xx and above */
68 #define CRTC (*(struct __6545)0xE880)
72 #define ACIA (*(struct __6551*)0xEFF0)
76 /*****************************************************************************/
78 /*****************************************************************************/
82 /* The following #defines will cause the matching functions calls in conio.h
83 * to be overlaid by macros with the same names, saving the function call
86 #define _textcolor(color) COLOR_WHITE
87 #define _bgcolor(color) COLOR_BLACK
88 #define _bordercolor(color) COLOR_BLACK