1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-06-26 05:29:32 +00:00

Added command line option -d to c02 compiler

This commit is contained in:
Curtis F Kaylor 2019-11-20 01:37:28 -05:00
parent c5460db89e
commit b7be6f26f3

View File

@ -144,7 +144,11 @@ int popt(int arg, int argc, char *argv[]) {
}
DEBUG("Processing Command Line Option -%c\n", argstr[1])
switch (opt) {
case 'C':
case 'D':
debug = TRUE;
DEBUG("Debug output enable\n", 0)
break;
case 'C':
strcpy(cputyp, optarg);
DEBUG("CPU Type set to '%s'\n", cputyp)
break;
@ -196,7 +200,7 @@ void chkcpu(void) {
int main(int argc, char *argv[]) {
debug = TRUE; //Output Debug Info
debug = FALSE; //Do Not Output Debug Info by Default
gencmt = TRUE; //Generate Assembly Language Comments
printf("C02 Compiler (C) 2012 Curtis F Kaylor\n" );