mirror of
https://github.com/cc65/cc65.git
synced 2025-01-21 15:32:41 +00:00
Check for wrong header file inclusions, add CBM510 stuff
git-svn-id: svn://svn.cc65.org/cc65/trunk@948 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
1dfa4f486d
commit
3dc0fb59bc
@ -6,7 +6,7 @@
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* (C) 1998-2000 Ullrich von Bassewitz */
|
||||
/* (C) 1998-2001 Ullrich von Bassewitz */
|
||||
/* Wacholderweg 14 */
|
||||
/* D-70597 Stuttgart */
|
||||
/* EMail: uz@musoftware.de */
|
||||
@ -38,6 +38,13 @@
|
||||
|
||||
|
||||
|
||||
/* 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
|
||||
|
@ -11,6 +11,13 @@
|
||||
|
||||
|
||||
|
||||
/* 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
|
||||
|
@ -30,9 +30,20 @@
|
||||
/* */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
#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
|
||||
@ -96,7 +107,7 @@
|
||||
#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)
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* (C) 1998-2000 Ullrich von Bassewitz */
|
||||
/* (C) 1998-2001 Ullrich von Bassewitz */
|
||||
/* Wacholderweg 14 */
|
||||
/* D-70597 Stuttgart */
|
||||
/* EMail: uz@musoftware.de */
|
||||
@ -33,19 +33,18 @@
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* c128.h
|
||||
*
|
||||
* Ullrich von Bassewitz, 12.08.1998
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#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
|
||||
|
||||
|
||||
|
||||
/* Additional key defines */
|
||||
#define CH_F1 133
|
||||
#define CH_F2 137
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* (C) 1998-2000 Ullrich von Bassewitz */
|
||||
/* (C) 1998-2001 Ullrich von Bassewitz */
|
||||
/* Wacholderweg 14 */
|
||||
/* D-70597 Stuttgart */
|
||||
/* EMail: uz@musoftware.de */
|
||||
@ -38,6 +38,13 @@
|
||||
|
||||
|
||||
|
||||
/* 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
|
||||
|
@ -38,6 +38,13 @@
|
||||
|
||||
|
||||
|
||||
/* 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>
|
||||
|
@ -38,6 +38,13 @@
|
||||
|
||||
|
||||
|
||||
/* 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
|
||||
@ -93,7 +100,7 @@ void __fastcall__ pokewsys (unsigned addr, unsigned val);
|
||||
/* Define hardware */
|
||||
#include <_vic.h>
|
||||
#define VIC (*(struct __vic*)0xD800)
|
||||
|
||||
|
||||
#include <_sid.h>
|
||||
#define SID (*(struct __sid*)0xDA00)
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* (C) 1998-2000 Ullrich von Bassewitz */
|
||||
/* (C) 1998-2001 Ullrich von Bassewitz */
|
||||
/* Wacholderweg 14 */
|
||||
/* D-70597 Stuttgart */
|
||||
/* EMail: uz@musoftware.de */
|
||||
@ -38,6 +38,13 @@
|
||||
|
||||
|
||||
|
||||
/* 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
|
||||
|
@ -12,6 +12,13 @@
|
||||
|
||||
|
||||
|
||||
/* 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
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* (C) 1998-2000 Ullrich von Bassewitz */
|
||||
/* (C) 1998-2001 Ullrich von Bassewitz */
|
||||
/* Wacholderweg 14 */
|
||||
/* D-70597 Stuttgart */
|
||||
/* EMail: uz@musoftware.de */
|
||||
@ -39,9 +39,11 @@
|
||||
|
||||
|
||||
/* 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
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* (C) 1999-2000 Ullrich von Bassewitz */
|
||||
/* (C) 1999-2001 Ullrich von Bassewitz */
|
||||
/* Wacholderweg 14 */
|
||||
/* D-70597 Stuttgart */
|
||||
/* EMail: uz@musoftware.de */
|
||||
@ -39,9 +39,11 @@
|
||||
|
||||
|
||||
/* 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
|
||||
|
||||
|
||||
|
||||
@ -55,7 +57,7 @@
|
||||
#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
|
||||
|
@ -1,8 +1,35 @@
|
||||
/*
|
||||
* 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. */
|
||||
/* */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
@ -11,6 +38,13 @@
|
||||
|
||||
|
||||
|
||||
/* 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
|
||||
|
@ -1,8 +1,35 @@
|
||||
/*
|
||||
* 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. */
|
||||
/* */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
@ -11,6 +38,13 @@
|
||||
|
||||
|
||||
|
||||
/* 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user