diff options
author | Ian Moffett <ian@osmora.org> | 2025-07-22 02:34:25 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-07-22 02:34:25 -0400 |
commit | ea521725a7739ec568eb6961edabf71d8169ef9e (patch) | |
tree | 22a61a45448455d16c8c5196bb6cc4101edc9a10 /usr.bin/oasm/parse.c | |
parent | c774776241f7b20ae40b432c11d0d161b75d2e79 (diff) |
oasm: Introduce encoding for MUL instruction
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.bin/oasm/parse.c')
-rw-r--r-- | usr.bin/oasm/parse.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.bin/oasm/parse.c b/usr.bin/oasm/parse.c index c688e2e..2b5eb14 100644 --- a/usr.bin/oasm/parse.c +++ b/usr.bin/oasm/parse.c @@ -110,6 +110,7 @@ parse_reg(struct oasm_state *state, struct oasm_token *tok) case TT_INC: case TT_ADD: case TT_SUB: + case TT_MUL: state->last = tok->type; break; default: @@ -146,6 +147,10 @@ parse_tok(struct oasm_state *state, struct oasm_token *tok) state->last = tok->type; emit_osmx64(&emit_state, tok); break; + case TT_MUL: + state->last = tok->type; + emit_osmx64(&emit_state, tok); + break; case TT_MOV: state->last = tok->type; emit_osmx64(&emit_state, tok); |