mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 15:29:46 +00:00
Use common code to determine the CPU
git-svn-id: svn://svn.cc65.org/cc65/trunk@2502 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
283bc121ea
commit
e24853a8fd
@ -200,18 +200,11 @@ static void OptAutoImport (const char* Opt attribute ((unused)),
|
|||||||
static void OptCPU (const char* Opt attribute ((unused)), const char* Arg)
|
static void OptCPU (const char* Opt attribute ((unused)), const char* Arg)
|
||||||
/* Handle the --cpu option */
|
/* Handle the --cpu option */
|
||||||
{
|
{
|
||||||
if (strcmp (Arg, "6502") == 0) {
|
cpu_t CPU = FindCPU (Arg);
|
||||||
SetCPU (CPU_6502);
|
if (CPU == CPU_UNKNOWN) {
|
||||||
} else if (strcmp (Arg, "65C02") == 0) {
|
|
||||||
SetCPU (CPU_65C02);
|
|
||||||
} else if (strcmp (Arg, "65816") == 0) {
|
|
||||||
SetCPU (CPU_65816);
|
|
||||||
#ifdef SUNPLUS
|
|
||||||
} else if (strcmp (Arg, "sunplus") == 0) {
|
|
||||||
SetCPU (CPU_SUNPLUS);
|
|
||||||
#endif
|
|
||||||
} else {
|
|
||||||
AbEnd ("Invalid CPU: `%s'", Arg);
|
AbEnd ("Invalid CPU: `%s'", Arg);
|
||||||
|
} else {
|
||||||
|
SetCPU (CPU);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user