From b2489c87ee1ca3ee28f260cb7b1972da1181f44e Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Thu, 11 May 2023 18:20:19 +0100 Subject: Equivalent code --- tr8as.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tr8as.c') diff --git a/tr8as.c b/tr8as.c index a32839e..ed6659a 100644 --- a/tr8as.c +++ b/tr8as.c @@ -713,9 +713,9 @@ static uint8_t parse_dw(As *as, char **c) if (wlen == 0) return error_l("Syntax error", &as->loc, "expected immediate"); - if (!next_imm(as, word, &imm)) - if (!new_ref(as, word, 0xffff, as->addr)) - return 0; + if (!next_imm(as, word, &imm) + && !new_ref(as, word, 0xffff, as->addr)) + return 0; as->out[as->addr++] = imm & 0xff; as->out[as->addr++] = imm >> 8; -- cgit v1.2.3