aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-05-12 22:15:22 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-05-12 22:15:22 +0100
commit8eec2f91339b8f06e1b80c49c976a9d9ac6e01f7 (patch)
treeb4f54e5b33373c2207de44a0c3d823e8f7156865
parent73afb2c5bb06365f913a7992a555ae34d74eb946 (diff)
downloadtr8vm-8eec2f91339b8f06e1b80c49c976a9d9ac6e01f7.tar.gz
tr8vm-8eec2f91339b8f06e1b80c49c976a9d9ac6e01f7.zip
Read immediate into imm
-rw-r--r--tr8as.c2
1 files changed, 1 insertions, 1 deletions
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);