]> git.sur5r.net Git - cc65/commitdiff
Added the Commdore 510 target system
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 13 Sep 2001 19:44:43 +0000 (19:44 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 13 Sep 2001 19:44:43 +0000 (19:44 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@909 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/main.c
src/common/target.c
src/common/target.h
src/common/tgttrans.c

index 6c8d08680a6b914cbf78b39f56b4619c525612bc..0c522d91ea9c5828188bd88b16909129762d8b5d 100644 (file)
@@ -158,6 +158,10 @@ static void SetSys (const char* Sys)
            cbmsys ("__PLUS4__");
            break;
 
+       case TGT_CBM510:
+           cbmsys ("__CBM510__");
+           break;
+
        case TGT_CBM610:
            cbmsys ("__CBM610__");
            break;
@@ -289,7 +293,7 @@ static void OptAnsi (const char* Opt, const char* Arg)
 
 static void OptBssName (const char* Opt, const char* Arg)
 /* Handle the --bss-name option */
-{
+{                         
     /* Check for a valid name */
     CheckSegName (Arg);
 
index 4955ad57ae5e080e3877bb7127143d31a959f932..ca3d90af09f4d42878b47a9939a2cc1e646512d7 100644 (file)
@@ -58,6 +58,7 @@ const char* TargetNames [TGT_COUNT] = {
     "c128",
     "ace",
     "plus4",
+    "cbm510",
     "cbm610",
     "pet",
     "bbc",
@@ -100,4 +101,4 @@ target_t FindTarget (const char* Name)
 }
 
 
-
+            
index 33ef51f14b7492bb195350f6916c52ee7ab67e68..311101ce164adc715d4a24c5e45f3e2e51696804 100644 (file)
@@ -53,6 +53,7 @@ typedef enum {
     TGT_C128,
     TGT_ACE,
     TGT_PLUS4,
+    TGT_CBM510,
     TGT_CBM610,
     TGT_PET,
     TGT_BBC,
index dce261f47a5af848897005e3aa0f01d1840225b6..8413e8cf869616942d0d8a8391d2668b784e31a9 100644 (file)
@@ -106,6 +106,7 @@ void TgtTranslateInit (void)
        case TGT_C128:          Tab = CTPET;    break;
        case TGT_ACE:           Tab = CTPET;    break;
        case TGT_PLUS4:         Tab = CTPET;    break;
+               case TGT_CBM510:        Tab = CTPET;    break;
        case TGT_CBM610:        Tab = CTPET;    break;
        case TGT_PET:           Tab = CTPET;    break;
        case TGT_BBC:                           break;