1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-10 03:30:05 +00:00

Added the lynx target

git-svn-id: svn://svn.cc65.org/cc65/trunk@3217 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2004-10-08 09:23:02 +00:00
parent cfe3eda416
commit 23ef4fa172
4 changed files with 12 additions and 3 deletions

View File

@ -229,6 +229,10 @@ static void SetSys (const char* Sys)
DefineNumericMacro ("__SUPERVISION__", 1);
break;
case TGT_SUPERVISION:
DefineNumericMacro ("__LYNX__", 1);
break;
default:
AbEnd ("Unknown target system type %d", Target);
}
@ -726,7 +730,7 @@ int main (int argc, char* argv[])
/* Initialize the default segment names */
InitSegNames ();
/* Initialize the include search paths */
InitIncludePaths ();
@ -807,7 +811,7 @@ int main (int argc, char* argv[])
PreprocessOnly = 1;
break;
case 'I':
case 'I':
OptIncludeDir (Arg, GetArg (&I, 2));
break;

View File

@ -65,13 +65,14 @@ const char* TargetNames [TGT_COUNT] = {
"cbm610",
"pet",
"bbc",
"apple2",
"apple2",
"apple2enh",
"geos",
"lunix",
"atmos",
"nes",
"supervision",
"lynx"
};
@ -98,6 +99,7 @@ const cpu_t DefaultCPU[TGT_COUNT] = {
CPU_6502, /* atmos */
CPU_6502, /* nes */
CPU_65SC02, /* supervision */
CPU_65C02, /* lynx */
};
@ -138,3 +140,4 @@ target_t FindTarget (const char* Name)

View File

@ -72,6 +72,7 @@ typedef enum {
TGT_ATMOS,
TGT_NES,
TGT_SUPERVISION,
TGT_LYNX,
TGT_COUNT /* Number of target systems */
} target_t;

View File

@ -160,6 +160,7 @@ void TgtTranslateInit (void)
case TGT_ATMOS: memcpy (Tab, CTNone, sizeof (Tab)); break;
case TGT_NES: memcpy (Tab, CTNone, sizeof (Tab)); break;
case TGT_SUPERVISION: memcpy (Tab, CTNone, sizeof (Tab)); break;
case TGT_LYNX: memcpy (Tab, CTNone, sizeof (Tab)); break;
default:
AbEnd ("Internal error: Target system unknown (%d)", Target);
}