/* */
/* */
/* */
-/* (C) 1998-2000 Ullrich von Bassewitz */
+/* (C) 1998-2001 Ullrich von Bassewitz */
/* Wacholderweg 14 */
/* D-70597 Stuttgart */
/* EMail: uz@musoftware.de */
+/* Check for errors */
+#if !defined(__ACE__)
+# error This module may only be used when compiling for the ACE os!
+#endif
+
+
+
#ifndef _STDDEF_H
#include <stddef.h>
#endif
+/* Check for errors */
+#if !defined(__APPLE2__)
+# error This module may only be used when compiling for the Apple ][!
+#endif
+
+
+
/* Color Defines
* Since Apple2 does not support color text these defines are only
* used to get the library to compile correctly. They should not be used
/* */
/*****************************************************************************/
+
+
#ifndef _ATARI_H
#define _ATARI_H
+
+
+/* Check for errors */
+#if !defined(__ATARI__)
+# error This module may only be used when compiling for the Atari!
+#endif
+
+
+
/* Character codes */
#define CH_DEL 0xFE
#define CH_ESC 0x1B
#define HUE_GREEN 12
#define HUE_YELLOWGREEN 13
#define HUE_YELLOW 14
-#define HUE_YELLOWRED 15
+#define HUE_YELLOWRED 15
/* Color defines, similar to c64 colors (untested) */
#define COLOR_BLACK _gtia_mkcolor(HUE_GREY,0)
/* */
/* */
/* */
-/* (C) 1998-2000 Ullrich von Bassewitz */
+/* (C) 1998-2001 Ullrich von Bassewitz */
/* Wacholderweg 14 */
/* D-70597 Stuttgart */
/* EMail: uz@musoftware.de */
-/*
- * c128.h
- *
- * Ullrich von Bassewitz, 12.08.1998
- */
+#ifndef _C128_H
+#define _C128_H
-#ifndef _C128_H
-#define _C128_H
+/* Check for errors */
+#if !defined(__C128__)
+# error This module may only be used when compiling for the C128!
+#endif
/* */
/* */
/* */
-/* (C) 1998-2000 Ullrich von Bassewitz */
+/* (C) 1998-2001 Ullrich von Bassewitz */
/* Wacholderweg 14 */
/* D-70597 Stuttgart */
/* EMail: uz@musoftware.de */
+/* Check for errors */
+#if !defined(__C64__)
+# error This module may only be used when compiling for the C64!
+#endif
+
+
+
/* Additional key defines */
#define CH_F1 133
#define CH_F2 137
+/* Check for errors */
+#if !defined(__CBM__)
+# error This module may only be used when compiling for CBM machines!
+#endif
+
+
+
/* Load the system specific files here, if needed */
#if defined(__C64__) && !defined(_C64_H)
# include <c64.h>
+/* Check for errors */
+#if !defined(__CBM510__)
+# error This module may only be used when compiling for the CBM 510!
+#endif
+
+
+
/* Additional key defines */
#define CH_F1 224
#define CH_F2 225
/* Define hardware */
#include <_vic.h>
#define VIC (*(struct __vic*)0xD800)
-
+
#include <_sid.h>
#define SID (*(struct __sid*)0xDA00)
/* */
/* */
/* */
-/* (C) 1998-2000 Ullrich von Bassewitz */
+/* (C) 1998-2001 Ullrich von Bassewitz */
/* Wacholderweg 14 */
/* D-70597 Stuttgart */
/* EMail: uz@musoftware.de */
+/* Check for errors */
+#if !defined(__CBM610__)
+# error This module may only be used when compiling for the CBM 610!
+#endif
+
+
+
/* Additional key defines */
#define CH_F1 224
#define CH_F2 225
+/* Check for errors */
+#if !defined(__GEOS__)
+# error This module may only be used when compiling for GEOS!
+#endif
+
+
+
#ifndef _GCONST_H
#include <geos/gconst.h>
#endif
/* */
/* */
/* */
-/* (C) 1998-2000 Ullrich von Bassewitz */
+/* (C) 1998-2001 Ullrich von Bassewitz */
/* Wacholderweg 14 */
/* D-70597 Stuttgart */
/* EMail: uz@musoftware.de */
/* Define __JOYSTICK__ for systems that support a joystick */
-#if defined(__ATARI__) || defined(__C64__) || defined(__C128__) || defined(__PLUS4__)
+#if defined(__ATARI__) || defined(__C64__) || defined(__C128__) || defined(__PLUS4__) || defined(__CBM510__)
# define __JOYSTICK__
-#endif
+#else
+# error The target system does not support a joystick!
+# endif
/* Argument for the function */
#define JOY_1 0
/* */
/* */
/* */
-/* (C) 1999-2000 Ullrich von Bassewitz */
+/* (C) 1999-2001 Ullrich von Bassewitz */
/* Wacholderweg 14 */
/* D-70597 Stuttgart */
/* EMail: uz@musoftware.de */
/* Define __MOUSE__ for systems that support a mouse */
-#if defined(__ATARI__) || defined(__C64__) || defined(__C128__)
+#if defined(__ATARI__) || defined(__C64__) || defined(__C128__) || defined(__CBM510__)
# define __MOUSE__
-#endif
+#else
+# error The target system does not support a mouse!
+# endif
#define MOUSE_TRAKBALL 0
#define MOUSE_ST 1
#define MOUSE_AMIGA 2
-#define MOUSE_C64 3 /* 1351 mouse */
+#define MOUSE_CBM1351 3 /* 1351 mouse */
/* Mouse button masks */
#define MOUSE_BTN_LEFT 0x10
-/*
- * pet.h
- *
- * Ullrich von Bassewitz, 26.11.1998
- */
+/*****************************************************************************/
+/* */
+/* pet.h */
+/* */
+/* PET system specific definitions */
+/* */
+/* */
+/* */
+/* (C) 1998-2001 Ullrich von Bassewitz */
+/* Wacholderweg 14 */
+/* D-70597 Stuttgart */
+/* EMail: uz@musoftware.de */
+/* */
+/* */
+/* This software is provided 'as-is', without any expressed or implied */
+/* warranty. In no event will the authors be held liable for any damages */
+/* arising from the use of this software. */
+/* */
+/* Permission is granted to anyone to use this software for any purpose, */
+/* including commercial applications, and to alter it and redistribute it */
+/* freely, subject to the following restrictions: */
+/* */
+/* 1. The origin of this software must not be misrepresented; you must not */
+/* claim that you wrote the original software. If you use this software */
+/* in a product, an acknowledgment in the product documentation would be */
+/* appreciated but is not required. */
+/* 2. Altered source versions must be plainly marked as such, and must not */
+/* be misrepresented as being the original software. */
+/* 3. This notice may not be removed or altered from any source */
+/* distribution. */
+/* */
+/*****************************************************************************/
+/* Check for errors */
+#if !defined(__PET__)
+# error This module may only be used when compiling for the CBM PET!
+#endif
+
+
+
/* Color defines */
#define COLOR_BLACK 0x00
#define COLOR_WHITE 0x01
-/*
- * plus4.h
- *
- * Ullrich von Bassewitz, 12.08.1998
- */
+/*****************************************************************************/
+/* */
+/* plus4.h */
+/* */
+/* Plus/4 system specific definitions */
+/* */
+/* */
+/* */
+/* (C) 1998-2001 Ullrich von Bassewitz */
+/* Wacholderweg 14 */
+/* D-70597 Stuttgart */
+/* EMail: uz@musoftware.de */
+/* */
+/* */
+/* This software is provided 'as-is', without any expressed or implied */
+/* warranty. In no event will the authors be held liable for any damages */
+/* arising from the use of this software. */
+/* */
+/* Permission is granted to anyone to use this software for any purpose, */
+/* including commercial applications, and to alter it and redistribute it */
+/* freely, subject to the following restrictions: */
+/* */
+/* 1. The origin of this software must not be misrepresented; you must not */
+/* claim that you wrote the original software. If you use this software */
+/* in a product, an acknowledgment in the product documentation would be */
+/* appreciated but is not required. */
+/* 2. Altered source versions must be plainly marked as such, and must not */
+/* be misrepresented as being the original software. */
+/* 3. This notice may not be removed or altered from any source */
+/* distribution. */
+/* */
+/*****************************************************************************/
+/* Check for errors */
+#if !defined(__PLUS4__)
+# error This module may only be used when compiling for the Plus/4!
+#endif
+
+
+
/* Additional key defines */
#define CH_F1 133
#define CH_F2 137