From 8eec2f91339b8f06e1b80c49c976a9d9ac6e01f7 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Fri, 12 May 2023 22:15:22 +0100 Subject: Read immediate into imm --- tr8as.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tr8as.c') diff --git a/tr8as.c b/tr8as.c index 5e57b81..15143b7 100644 --- a/tr8as.c +++ b/tr8as.c @@ -804,7 +804,7 @@ static uint8_t parse_ds(As *as, char **c) if (wlen == 0) return error_l("Syntax error", &as->loc, "expected immediate"); - if (next_imm(as, word, &count)) + if (next_imm(as, word, &imm)) { if (imm > 0xff) return error_l("Overflow in immediate", &as->loc, word); -- cgit v1.2.3