2000-08-22 07:03:44 +00:00
|
|
|
/*****************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* target.h */
|
|
|
|
/* */
|
|
|
|
/* Target specification */
|
|
|
|
/* */
|
|
|
|
/* */
|
|
|
|
/* */
|
2009-09-13 11:46:04 +00:00
|
|
|
/* (C) 2000-2009, Ullrich von Bassewitz */
|
|
|
|
/* Roemerstrasse 52 */
|
|
|
|
/* D-70794 Filderstadt */
|
|
|
|
/* EMail: uz@cc65.org */
|
2000-08-22 07:03:44 +00:00
|
|
|
/* */
|
|
|
|
/* */
|
|
|
|
/* 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 TARGET_H
|
|
|
|
#define TARGET_H
|
|
|
|
|
|
|
|
|
|
|
|
|
2003-05-01 23:24:20 +00:00
|
|
|
/* common */
|
|
|
|
#include "cpu.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
2000-08-22 07:03:44 +00:00
|
|
|
/*****************************************************************************/
|
|
|
|
/* Data */
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Supported target systems */
|
|
|
|
typedef enum {
|
|
|
|
TGT_UNKNOWN = -1, /* Not specified or invalid target */
|
|
|
|
TGT_NONE,
|
2002-04-25 05:08:51 +00:00
|
|
|
TGT_MODULE,
|
2000-08-22 07:03:44 +00:00
|
|
|
TGT_ATARI,
|
2002-08-07 05:18:13 +00:00
|
|
|
TGT_VIC20,
|
2002-11-21 21:22:26 +00:00
|
|
|
TGT_C16,
|
2000-08-22 07:03:44 +00:00
|
|
|
TGT_C64,
|
|
|
|
TGT_C128,
|
|
|
|
TGT_PLUS4,
|
2001-09-13 19:44:43 +00:00
|
|
|
TGT_CBM510,
|
2000-08-22 07:03:44 +00:00
|
|
|
TGT_CBM610,
|
|
|
|
TGT_PET,
|
2000-11-30 08:55:16 +00:00
|
|
|
TGT_BBC,
|
2000-08-22 07:03:44 +00:00
|
|
|
TGT_APPLE2,
|
2004-03-11 20:52:23 +00:00
|
|
|
TGT_APPLE2ENH,
|
2000-08-22 07:03:44 +00:00
|
|
|
TGT_GEOS,
|
2001-12-01 13:34:51 +00:00
|
|
|
TGT_LUNIX,
|
2002-06-03 20:14:11 +00:00
|
|
|
TGT_ATMOS,
|
2003-05-02 13:47:21 +00:00
|
|
|
TGT_NES,
|
2003-10-10 16:30:55 +00:00
|
|
|
TGT_SUPERVISION,
|
2004-10-08 09:23:02 +00:00
|
|
|
TGT_LYNX,
|
2000-08-22 07:03:44 +00:00
|
|
|
TGT_COUNT /* Number of target systems */
|
|
|
|
} target_t;
|
|
|
|
|
|
|
|
/* Target system */
|
|
|
|
extern target_t Target;
|
|
|
|
|
|
|
|
/* Table with target names */
|
2003-05-01 23:24:20 +00:00
|
|
|
extern const char* TargetNames[TGT_COUNT];
|
|
|
|
|
|
|
|
/* Table with default CPUs per target */
|
|
|
|
extern const cpu_t DefaultCPU[TGT_COUNT];
|
2000-08-22 07:03:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
/* Code */
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
target_t FindTarget (const char* Name);
|
|
|
|
/* Find a target by name and return the target id. TGT_UNKNOWN is returned if
|
|
|
|
* the given name is no valid target.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* End of target.h */
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
2002-06-03 20:14:11 +00:00
|
|
|
|