fix masm parser
This commit is contained in:
parent
b6526332c6
commit
33138944c5
1 changed files with 7 additions and 6 deletions
13
masm/parse.c
13
masm/parse.c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue