mirror of
https://github.com/RevCurtisP/C02.git
synced 2024-11-21 10:32:08 +00:00
Added command line option -d to c02 compiler
This commit is contained in:
parent
c5460db89e
commit
b7be6f26f3
@ -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" );
|
||||
|
Loading…
Reference in New Issue
Block a user