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:
@@ -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 ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user