add: writing to arrays, hex in arrays fix: arguments parsing, show_error on windows

This commit is contained in:
2024-08-19 13:05:48 +02:00
parent a6e8d0d0f0
commit 5df51d811b
11 changed files with 121 additions and 29 deletions

View File

@@ -5,12 +5,12 @@
int main(int argc, char **argv) {
if (argc > 3 || (argc == 2 && strcmp(argv[1], "-h") == 0) || (argc != 2 && argc != 3)) {
fprintf(stderr, "usage : %s filename [-d/--debug]\n", argv[0]);
return 1;
fprintf(stderr, "usage : %s filename [-d/--debug]\n", argv[0]);
return 1;
}
if (argc == 3 && (strcmp(argv[2], "-d") == 0 || strcmp(argv[2], "--debug") == 0)) {
pasm_debug_mode = 1;
printf("pasm: debug mode activated.\n");
pasm_debug_mode = 1;
printf("pasm: debug mode activated.\n");
}
return pasm_run_script(argv[1], 0, 0, 1);
}