Fix broken argument handling

This commit is contained in:
Nero 2020-01-13 00:50:43 +01:00
parent cd3da4faab
commit f4f89e8e48

View File

@ -113,7 +113,9 @@ int main(int argc, char** argv) {
argc--; argc--;
if (!argc) { if (!argc) {
fprintf(stderr, "No filename given\n"); fprintf(stderr, "No filename given\n");
return 255;
} }
argv++;
i8080 cpu; i8080 cpu;
i8080_init(&cpu); i8080_init(&cpu);