1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 17:29:50 +00:00

Some CPU definition changes

git-svn-id: svn://svn.cc65.org/cc65/trunk@2248 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2003-08-07 08:22:16 +00:00
parent 0192932e2c
commit 33d16833f0
2 changed files with 2 additions and 1 deletions

View File

@ -166,7 +166,7 @@ void g_preamble (void)
/* If we're producing code for some other CPU, switch the command set */
if (CPU == CPU_65C02) {
AddTextLine ("\t.pc02");
AddTextLine ("\t.setcpu\t\t\"65C02\"");
}
/* Allow auto import for runtime library routines */

View File

@ -383,6 +383,7 @@ static void OptCreateDep (const char* Opt attribute ((unused)),
static void OptCPU (const char* Opt, const char* Arg)
/* Handle the --cpu option */
{
/* Find the CPU from the given name */
CPU = FindCPU (Arg);
if (CPU != CPU_6502 && CPU != CPU_65C02) {
AbEnd ("Invalid argument for %s: `%s'", Opt, Arg);