From 85d22bbb90a76e8053f192ef46a0d0835de6fbe1 Mon Sep 17 00:00:00 2001 From: neauoire Date: Fri, 27 Oct 2023 08:43:48 -0700 Subject: [PATCH] (uxnasm) Date --- src/uxnasm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uxnasm.c b/src/uxnasm.c index c2508ba..f80d63b 100644 --- a/src/uxnasm.c +++ b/src/uxnasm.c @@ -501,19 +501,19 @@ main(int argc, char *argv[]) if(argc == 1) return error("usage", "uxnasm [-v] input.tal output.rom"); if(argv[1][0] == '-' && argv[1][1] == 'v') - return !fprintf(stdout, "Uxnasm - Uxntal Assembler, 8 Aug 2023.\n"); + return !fprintf(stdout, "Uxnasm - Uxntal Assembler, 27 Oct 2023.\n"); if(!(src = fopen(argv[1], "r"))) return !error("Invalid input", argv[1]); if(!assemble(src)) return !error("Assembly", "Failed to assemble rom."); - if (scmp(argv[2], "-", 2)) + if(scmp(argv[2], "-", 2)) dst = stdout; else if(!(dst = fopen(argv[2], "wb"))) return !error("Invalid Output", argv[2]); if(p.length <= TRIM) return !error("Assembly", "Output rom is empty."); fwrite(p.data + TRIM, p.length - TRIM, 1, dst); - if (!scmp(argv[2], "-", 2)) { + if(!scmp(argv[2], "-", 2)) { review(argv[2]); writesym(argv[2]); }