New target c16
git-svn-id: svn://svn.cc65.org/cc65/trunk@1563 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
61
include/c16.h
Normal file
61
include/c16.h
Normal file
@@ -0,0 +1,61 @@
|
||||
/*****************************************************************************/
|
||||
/* */
|
||||
/* c16.h */
|
||||
/* */
|
||||
/* C16 system specific definitions */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* (C) 2002 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. */
|
||||
/* */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
#ifndef _C16_H
|
||||
#define _C16_H
|
||||
|
||||
|
||||
|
||||
/* Check for errors */
|
||||
#if !defined(__C16__)
|
||||
# error This module may only be used when compiling for the C16!
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/* The C16 is actually the Plus/4 with less memory, so use the Plus/4
|
||||
* include file.
|
||||
*/
|
||||
#ifndef _PLUS4_H
|
||||
#include <plus4.h>
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/* End of c16.h */
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -54,6 +54,8 @@
|
||||
# include <c128.h>
|
||||
#elif defined(__PLUS4__) && !defined(_PLUS4_H)
|
||||
# include <plus4.h>
|
||||
#elif defined(__C16__) && !defined(_C16_H)
|
||||
# include <c16.h>
|
||||
#elif defined(__CBM510__) && !defined(_CBM510_H)
|
||||
# include <cbm510.h>
|
||||
#elif defined(__CBM610__) && !defined(_CBM610_H)
|
||||
@@ -158,7 +160,7 @@ int __fastcall__ cbm_write (unsigned char lfn, void* buffer, unsigned int size);
|
||||
* Returns the number of actually written bytes or -1 in case of an error.
|
||||
* _oserror contains an errorcode then (see table below).
|
||||
*/
|
||||
|
||||
|
||||
/* Errorcodes of cbm_* I/O functions:
|
||||
*
|
||||
* errorcode BASIC error
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* (C) 1998-2001 Ullrich von Bassewitz */
|
||||
/* (C) 1998-2002 Ullrich von Bassewitz */
|
||||
/* Wacholderweg 14 */
|
||||
/* D-70597 Stuttgart */
|
||||
/* EMail: uz@musoftware.de */
|
||||
@@ -39,8 +39,8 @@
|
||||
|
||||
|
||||
/* Check for errors */
|
||||
#if !defined(__PLUS4__)
|
||||
# error This module may only be used when compiling for the Plus/4!
|
||||
#if !defined(__PLUS4__) && !defined(__C16__)
|
||||
# error This module may only be used when compiling for the Plus/4 or C16!
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user