Fix broken argument handling
This commit is contained in:
parent
cd3da4faab
commit
f4f89e8e48
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user