From 3b0a87254f8a1e48a155f5571c274297353a0106 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Fri, 20 Sep 2024 20:46:37 -0400 Subject: start mld, add loading of object files, add fuzzing support --- masm/main.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'masm/main.c') 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 \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); } -- cgit v1.2.3-freya