]> git.sur5r.net Git - cc65/blobdiff - src/sim65/main.c
Improved cbm_dir routines by Thomas Giesel.
[cc65] / src / sim65 / main.c
index c0e67f39ec30e4f9a19cc3277a6c253339ea5a81..fe8fa2994f628b1bdf01d89380bb782cb0f4b642 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2002-2003 Ullrich von Bassewitz                                       */
-/*               Römerstrasse 52                                             */
-/*               D-70794 Filderstadt                                         */
-/* EMail:        uz@cc65.org                                                 */
+/* (C) 2002-2009, Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
 
 static void Usage (void)
 {
-    fprintf (stderr,
-            "Usage: %s [options] file\n"
-            "Short options:\n"
-                    "  -C name\t\tUse simulator config file\n"
-             "  -L dir\t\tSet a chip directory search path\n"
-                    "  -V\t\t\tPrint the simulator version number\n"
-                    "  -d\t\t\tDebug mode\n"
-                    "  -h\t\t\tHelp (this text)\n"
-                    "  -v\t\t\tIncrease verbosity\n"
-            "\n"
-            "Long options:\n"
-             "  --chipdir dir\t\tSet a chip directory search path\n"
-                    "  --config name\t\tUse simulator config file\n"
-                    "  --cpu type\t\tSet cpu type\n"
-                    "  --debug\t\tDebug mode\n"
-            "  --help\t\tHelp (this text)\n"
-                    "  --verbose\t\tIncrease verbosity\n"
-                    "  --version\t\tPrint the simulator version number\n",
-            ProgName);
+    printf ("Usage: %s [options] file\n"
+            "Short options:\n"
+            "  -C name\t\tUse simulator config file\n"
+            "  -L dir\t\tSet a chip directory search path\n"
+            "  -V\t\t\tPrint the simulator version number\n"
+            "  -d\t\t\tDebug mode\n"
+            "  -h\t\t\tHelp (this text)\n"
+            "  -v\t\t\tIncrease verbosity\n"
+            "\n"
+            "Long options:\n"
+            "  --chipdir dir\t\tSet a chip directory search path\n"
+            "  --config name\t\tUse simulator config file\n"
+            "  --cpu type\t\tSet cpu type\n"
+            "  --debug\t\tDebug mode\n"
+            "  --help\t\tHelp (this text)\n"
+            "  --verbose\t\tIncrease verbosity\n"
+            "  --version\t\tPrint the simulator version number\n",
+            ProgName);
 }
 
 
@@ -208,9 +207,7 @@ static void OptVersion (const char* Opt attribute ((unused)),
                        const char* Arg attribute ((unused)))
 /* Print the assembler version */
 {
-    fprintf (stderr,
-                    "sim65 V%u.%u.%u\n",
-                    VER_MAJOR, VER_MINOR, VER_PATCH);
+    fprintf (stderr, "sim65 V%s\n", GetVersionAsString ());
 }