diff options
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 2b5eb14..9a4dd0e 100644 --- a/usr.bin/oasm/parse.c +++ b/usr.bin/oasm/parse.c @@ -111,6 +111,7 @@ parse_reg(struct oasm_state *state, struct oasm_token *tok) case TT_ADD: case TT_SUB: case TT_MUL: + case TT_DIV: state->last = tok->type; break; default: @@ -151,6 +152,10 @@ parse_tok(struct oasm_state *state, struct oasm_token *tok) state->last = tok->type; emit_osmx64(&emit_state, tok); break; + case TT_DIV: + state->last = tok->type; + emit_osmx64(&emit_state, tok); + break; case TT_MOV: state->last = tok->type; emit_osmx64(&emit_state, tok); |