From 33d16833f040f6f3522de0a929ccbdad3e635ce2 Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 7 Aug 2003 08:22:16 +0000 Subject: [PATCH] Some CPU definition changes git-svn-id: svn://svn.cc65.org/cc65/trunk@2248 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/codegen.c | 2 +- src/cc65/main.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cc65/codegen.c b/src/cc65/codegen.c index 90f3c3ebc..06fe224c7 100644 --- a/src/cc65/codegen.c +++ b/src/cc65/codegen.c @@ -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 */ diff --git a/src/cc65/main.c b/src/cc65/main.c index e7a68d502..3ed7127e3 100644 --- a/src/cc65/main.c +++ b/src/cc65/main.c @@ -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); -- 2.39.5