]> git.sur5r.net Git - cc65/blobdiff - src/common/target.c
Some more floating point support.
[cc65] / src / common / target.c
index a5f31654d9b5ad2026c0b59aff77909697b9736d..d0dfefd6735f3ba5a08a8c61580e98c8c8427fca 100644 (file)
@@ -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 <stdlib.h>
 #include <string.h>
-#include <ctype.h>
 
+#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",
     "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)
 
 
 
+
+
+