/* */
/* */
/* */
-/* (C) 2000-2003 Ullrich von Bassewitz */
+/* (C) 2000-2005 Ullrich von Bassewitz */
/* Römerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
/* Stuff needed by many routines */
unsigned Pass = 0; /* Disassembler pass */
+char Now[128]; /* Current time as string */
/* Comments */
unsigned Comments = 0; /* Add which comments to the output? */
/* */
/* */
/* */
-/* (C) 1998-2003 Ullrich von Bassewitz */
+/* (C) 1998-2005 Ullrich von Bassewitz */
/* Römerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
{ "--comments", 1, OptComments },
{ "--cpu", 1, OptCPU },
{ "--debug-info", 0, OptDebugInfo },
- { "--formfeeds", 0, OptFormFeeds },
+ { "--formfeeds", 0, OptFormFeeds },
{ "--help", 0, OptHelp },
{ "--hexoffs", 0, OptHexOffs },
{ "--info", 1, OptInfo },
{ "--pagelength", 1, OptPageLength },
- { "--start-addr", 1, OptStartAddr },
+ { "--start-addr", 1, OptStartAddr },
{ "--verbose", 0, OptVerbose },
{ "--version", 0, OptVersion },
};
unsigned I;
+ time_t T;
/* Initialize the cmdline module */
InitCmdLine (&argc, &argv, "da65");
CPU = CPU_6502;
}
+ /* Get the current time and convert it to string so it can be used in
+ * the output page headers.
+ */
+ T = time (0);
+ strftime (Now, sizeof (Now), "%Y-%m-%d %H:%M:%S", localtime (&T));
+
/* Load the input file */
LoadCode ();
/* Print a page header */
{
fprintf (F,
- "; da65 V%u.%u.%u - (C) Copyright 2000-2005 Ullrich von Bassewitz\n"
+ "; da65 V%u.%u.%u - (C) Copyright 2000-2005, Ullrich von Bassewitz\n"
+ "; Created: %s\n"
"; Input file: %s\n"
"; Page: %u\n\n",
VER_MAJOR, VER_MINOR, VER_PATCH,
+ Now,
InFile,
Page);
}
/* Output the header and initialize stuff */
PageHeader ();
- Line = 4;
+ Line = 5;
Col = 1;
}
}
++Page;
PageHeader ();
- Line = 4;
+ Line = 5;
}
Col = 1;
}