summaryrefslogtreecommitdiff
path: root/masm/main.c
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-09-20 20:46:37 -0400
committerFreya Murphy <freya@freyacat.org>2024-09-20 21:02:38 -0400
commit3b0a87254f8a1e48a155f5571c274297353a0106 (patch)
tree8aab94632c01c50e4adafc8a4d062902d5cdfe4e /masm/main.c
parentremove test file (diff)
downloadmips-3b0a87254f8a1e48a155f5571c274297353a0106.tar.gz
mips-3b0a87254f8a1e48a155f5571c274297353a0106.tar.bz2
mips-3b0a87254f8a1e48a155f5571c274297353a0106.zip
start mld, add loading of object files, add fuzzing support
Diffstat (limited to 'masm/main.c')
-rw-r--r--masm/main.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/masm/main.c b/masm/main.c
index 760e4fa..caa8420 100644
--- a/masm/main.c
+++ b/masm/main.c
@@ -8,14 +8,14 @@ void help(void) {
printf("usage: masm [options] source.asm\n\n");
printf("options:\n");
printf("\t-h\t\tprints this help message\n");
- printf("\t-o output\tselect a output file destination\n");
+ printf("\t-o <output>\tselect a output file destination\n");
}
int main(int argc, char **argv) {
struct assembler_arguments args = {
.in_file = NULL,
- .out_file = NULL,
+ .out_file = "out.o",
};
int c;
@@ -48,9 +48,5 @@ next:
args.in_file = argv[optind];
- if (args.out_file == NULL) {
- args.out_file = "out.o";
- }
-
return assemble_file(args);
}