From 3ab5a002dfeaa92a573180920a6f705d3dfcfe71 Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 13 Sep 2001 19:44:43 +0000 Subject: [PATCH] Added the Commdore 510 target system git-svn-id: svn://svn.cc65.org/cc65/trunk@909 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/main.c | 6 +++++- src/common/target.c | 3 ++- src/common/target.h | 1 + src/common/tgttrans.c | 1 + 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/cc65/main.c b/src/cc65/main.c index 6c8d08680..0c522d91e 100644 --- a/src/cc65/main.c +++ b/src/cc65/main.c @@ -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); diff --git a/src/common/target.c b/src/common/target.c index 4955ad57a..ca3d90af0 100644 --- a/src/common/target.c +++ b/src/common/target.c @@ -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) } - + diff --git a/src/common/target.h b/src/common/target.h index 33ef51f14..311101ce1 100644 --- a/src/common/target.h +++ b/src/common/target.h @@ -53,6 +53,7 @@ typedef enum { TGT_C128, TGT_ACE, TGT_PLUS4, + TGT_CBM510, TGT_CBM610, TGT_PET, TGT_BBC, diff --git a/src/common/tgttrans.c b/src/common/tgttrans.c index dce261f47..8413e8cf8 100644 --- a/src/common/tgttrans.c +++ b/src/common/tgttrans.c @@ -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;