mirror of
https://github.com/RevCurtisP/C02.git
synced 2024-11-22 01:31:33 +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])
|
DEBUG("Processing Command Line Option -%c\n", argstr[1])
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case 'C':
|
case 'D':
|
||||||
|
debug = TRUE;
|
||||||
|
DEBUG("Debug output enable\n", 0)
|
||||||
|
break;
|
||||||
|
case 'C':
|
||||||
strcpy(cputyp, optarg);
|
strcpy(cputyp, optarg);
|
||||||
DEBUG("CPU Type set to '%s'\n", cputyp)
|
DEBUG("CPU Type set to '%s'\n", cputyp)
|
||||||
break;
|
break;
|
||||||
@ -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" );
|
||||||
|
Loading…
Reference in New Issue
Block a user