From ea521725a7739ec568eb6961edabf71d8169ef9e Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 22 Jul 2025 02:34:25 -0400 Subject: oasm: Introduce encoding for MUL instruction Signed-off-by: Ian Moffett --- usr.bin/oasm/parse.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'usr.bin/oasm/parse.c') 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); -- cgit v1.2.3