Changeset 1efc42c in buchla-emu for emu/main.c
- Timestamp:
- 07/30/2017 06:18:21 PM (7 years ago)
- Branches:
- master
- Children:
- c5b6c90
- Parents:
- caff491
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
emu/main.c
rcaff491 r1efc42c 38 38 }; 39 39 40 static const char *bios = "bios.abs"; 40 const char *bios = "bios.abs"; 41 const char *disk = "buchla.disk"; 41 42 42 43 static void usage(FILE *fh) 43 44 { 44 fprintf(fh, "usage: buchla [-h] [-v comp [-v comp [...]]] [-b bios] \n");45 fprintf(fh, "usage: buchla [-h] [-v comp [-v comp [...]]] [-b bios] [-d disk]\n"); 45 46 fprintf(fh, "where comp is one of: "); 46 47 … … 68 69 69 70 bios = argv[i]; 71 continue; 72 } 73 74 if (strcmp(argv[i], "-d") == 0) { 75 if (++i == argc) { 76 usage(stderr); 77 fprintf(stderr, "missing argument to -d\n"); 78 exit(1); 79 } 80 81 disk = argv[i]; 70 82 continue; 71 83 } … … 111 123 sdl_init(); 112 124 113 cpu_loop( bios);125 cpu_loop(); 114 126 115 127 sdl_quit();
Note:
See TracChangeset
for help on using the changeset viewer.