fix masm parser

This commit is contained in:
Freya Murphy 2024-09-30 10:55:10 -04:00
parent b6526332c6
commit 33138944c5
Signed by: freya
GPG key ID: 744AB800E383AE52

View file

@ -916,13 +916,14 @@ static int parse_pseudo_instruction(struct parser *parser,
else CHK(move)
res = parse_pseudo_move(parser, expr);
if (res)
if (res) {
// reset on fail
lexer_load(parser->lexer, &state);
expr->ins[0].data.raw = 0;
expr->ins[1].data.raw = 0;
expr->ref[0] = (struct reference) {0};
expr->ref[1] = (struct reference) {0};
expr->ins[0].data.raw = 0;
expr->ins[1].data.raw = 0;
expr->ref[0] = (struct reference) {0};
expr->ref[1] = (struct reference) {0};
}
log_disabled = 0;
return res;