From c42c5732b310309cf098b407040a92658fcaac85 Mon Sep 17 00:00:00 2001 From: Paul Koning Date: Mon, 13 Jun 2022 20:34:49 -0400 Subject: [PATCH] Fix .library pseudo Two problems: 1. Spurious "junk at end of line" message because no parsing was done in pass 2 2. Error messages not shown because error printing only happens in pass 2 Solution for both is to process the directive in both passes. --- assemble.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assemble.c b/assemble.c index 227df5f..2845146 100644 --- a/assemble.c +++ b/assemble.c @@ -568,7 +568,7 @@ O 75 .endc } case P_LIBRARY: - if (pass == 0) { + { char hitfile[FILENAME_MAX]; char *name = getstring_fn(cp, &cp);