Moved CPU definition into common/

git-svn-id: svn://svn.cc65.org/cc65/trunk@2111 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2003-05-01 23:24:20 +00:00
parent 8fb90af8ff
commit 986e3779ce
17 changed files with 174 additions and 81 deletions

View File

@@ -609,6 +609,15 @@ int main (int argc, char* argv [])
exit (EXIT_FAILURE);
}
/* If no CPU given, use the default CPU for the target */
if (GetCPU () == CPU_UNKNOWN) {
if (Target != TGT_UNKNOWN) {
SetCPU (DefaultCPU[Target]);
} else {
SetCPU (CPU_6502);
}
}
/* Intialize the target translation tables */
TgtTranslateInit ();