1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-25 06:31:25 +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,6 +144,10 @@ int popt(int arg, int argc, char *argv[]) {
} }
DEBUG("Processing Command Line Option -%c\n", argstr[1]) DEBUG("Processing Command Line Option -%c\n", argstr[1])
switch (opt) { switch (opt) {
case 'D':
debug = TRUE;
DEBUG("Debug output enable\n", 0)
break;
case 'C': case 'C':
strcpy(cputyp, optarg); strcpy(cputyp, optarg);
DEBUG("CPU Type set to '%s'\n", cputyp) DEBUG("CPU Type set to '%s'\n", cputyp)
@ -196,7 +200,7 @@ void chkcpu(void) {
int main(int argc, char *argv[]) { 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 gencmt = TRUE; //Generate Assembly Language Comments
printf("C02 Compiler (C) 2012 Curtis F Kaylor\n" ); printf("C02 Compiler (C) 2012 Curtis F Kaylor\n" );