X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcommon%2Ftarget.c;h=d0dfefd6735f3ba5a08a8c61580e98c8c8427fca;hb=0b4f6426e25be1861a54647d0f015c4365db286f;hp=3a5fc217174c5b850cef06564b896a2b0103a8fc;hpb=b9970cb7da2f36cb330c9f6b94a71c8faa9bb324;p=cc65 diff --git a/src/common/target.c b/src/common/target.c index 3a5fc2171..d0dfefd67 100644 --- a/src/common/target.c +++ b/src/common/target.c @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (C) 2000 Ullrich von Bassewitz */ -/* Wacholderweg 14 */ -/* D-70597 Stuttgart */ -/* EMail: uz@musoftware.de */ +/* (C) 2000-2004 Ullrich von Bassewitz */ +/* Römerstrasse 52 */ +/* D-70794 Filderstadt */ +/* EMail: uz@cc65.org */ /* */ /* */ /* This software is provided 'as-is', without any expressed or implied */ @@ -35,8 +35,8 @@ #include #include -#include +#include "chartype.h" #include "target.h" @@ -53,16 +53,53 @@ target_t Target = TGT_NONE; /* Table with target names */ const char* TargetNames [TGT_COUNT] = { "none", + "module", "atari", + "vic20", + "c16", "c64", "c128", "ace", "plus4", + "cbm510", "cbm610", "pet", - "nes", + "bbc", "apple2", + "apple2enh", "geos", + "lunix", + "atmos", + "nes", + "supervision", + "lynx" +}; + + + +/* Table with default CPUs per target */ +const cpu_t DefaultCPU[TGT_COUNT] = { + CPU_6502, /* none */ + CPU_6502, /* module */ + CPU_6502, /* atari */ + CPU_6502, /* vic20 */ + CPU_6502, /* c16 */ + CPU_6502, /* c64 */ + CPU_6502, /* c128 */ + CPU_6502, /* ace */ + CPU_6502, /* plus4 */ + CPU_6502, /* cbm510 */ + CPU_6502, /* cbm610 */ + CPU_6502, /* pet */ + CPU_6502, /* bbc */ + CPU_6502, /* apple2 */ + CPU_65C02, /* apple2enh */ + CPU_6502, /* geos */ + CPU_6502, /* lunix */ + CPU_6502, /* atmos */ + CPU_6502, /* nes */ + CPU_65SC02, /* supervision */ + CPU_65C02, /* lynx */ }; @@ -81,7 +118,7 @@ target_t FindTarget (const char* Name) unsigned I; /* Check for a numeric target */ - if (isdigit (*Name)) { + if (IsDigit (*Name)) { int Target = atoi (Name); if (Target >= 0 && Target < TGT_COUNT) { return (target_t)Target; @@ -101,3 +138,6 @@ target_t FindTarget (const char* Name) + + +