From: cuz Date: Thu, 25 Apr 2002 05:08:51 +0000 (+0000) Subject: Add new target 'module' X-Git-Tag: V2.12.0~2359 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=563a3b3579416416ee1a8bb36348c39351e66f87;p=cc65 Add new target 'module' git-svn-id: svn://svn.cc65.org/cc65/trunk@1262 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/common/target.c b/src/common/target.c index ea130b2d7..6b059f30a 100644 --- a/src/common/target.c +++ b/src/common/target.c @@ -6,7 +6,7 @@ /* */ /* */ /* */ -/* (C) 2000-2001 Ullrich von Bassewitz */ +/* (C) 2000-2002 Ullrich von Bassewitz */ /* Wacholderweg 14 */ /* D-70597 Stuttgart */ /* EMail: uz@musoftware.de */ @@ -52,7 +52,8 @@ target_t Target = TGT_NONE; /* Table with target names */ const char* TargetNames [TGT_COUNT] = { - "none", + "none", + "module", "atari", "c64", "c128", @@ -60,7 +61,7 @@ const char* TargetNames [TGT_COUNT] = { "plus4", "cbm510", "cbm610", - "pet", + "pet", "bbc", "apple2", "geos", @@ -103,3 +104,4 @@ target_t FindTarget (const char* Name) + diff --git a/src/common/target.h b/src/common/target.h index 5fd689e53..6153bc3b2 100644 --- a/src/common/target.h +++ b/src/common/target.h @@ -6,7 +6,7 @@ /* */ /* */ /* */ -/* (C) 2000-2001 Ullrich von Bassewitz */ +/* (C) 2000-2002 Ullrich von Bassewitz */ /* Wacholderweg 14 */ /* D-70597 Stuttgart */ /* EMail: uz@musoftware.de */ @@ -48,6 +48,7 @@ typedef enum { TGT_UNKNOWN = -1, /* Not specified or invalid target */ TGT_NONE, + TGT_MODULE, TGT_ATARI, TGT_C64, TGT_C128, @@ -90,3 +91,4 @@ target_t FindTarget (const char* Name); + diff --git a/src/common/tgttrans.c b/src/common/tgttrans.c index 50a4e6d17..beb113e17 100644 --- a/src/common/tgttrans.c +++ b/src/common/tgttrans.c @@ -141,6 +141,7 @@ void TgtTranslateInit (void) { switch (Target) { case TGT_NONE: memcpy (Tab, CTNone, sizeof (Tab)); break; + case TGT_MODULE: memcpy (Tab, CTNone, sizeof (Tab)); break; case TGT_ATARI: memcpy (Tab, CTAtari, sizeof (Tab)); break; case TGT_C64: memcpy (Tab, CTPET, sizeof (Tab)); break; case TGT_C128: memcpy (Tab, CTPET, sizeof (Tab)); break; @@ -213,3 +214,4 @@ void TgtTranslateSet (unsigned Index, unsigned char C) +