1
0
mirror of https://github.com/cc65/cc65.git synced 2025-04-04 06:29:41 +00:00

Add new target 'module'

git-svn-id: svn://svn.cc65.org/cc65/trunk@1262 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2002-04-25 05:08:51 +00:00
parent 0041c3c8ac
commit 563a3b3579
3 changed files with 10 additions and 4 deletions

View File

@ -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)

View File

@ -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);

View File

@ -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)