diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-05-12 22:15:22 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-05-12 22:15:22 +0100 |
commit | 8eec2f91339b8f06e1b80c49c976a9d9ac6e01f7 (patch) | |
tree | b4f54e5b33373c2207de44a0c3d823e8f7156865 | |
parent | 73afb2c5bb06365f913a7992a555ae34d74eb946 (diff) | |
download | tr8vm-8eec2f91339b8f06e1b80c49c976a9d9ac6e01f7.tar.gz tr8vm-8eec2f91339b8f06e1b80c49c976a9d9ac6e01f7.zip |
Read immediate into imm
-rw-r--r-- | tr8as.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |