Skip to content

Commit

Permalink
Handle substring matches in opcode table, too.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 12, 2009
1 parent 71102b1 commit 4c677ed
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mojoshader_assembler.c
Expand Up @@ -1346,7 +1346,14 @@ static int parse_instruction_token(Context *ctx, Token token)
continue; // skip this.
else if (!check_token_segment(ctx, opcode_string))
continue; // not us.
break;
else if ((ctx->tokenlen > 0) && (*ctx->token != '_'))
{
ctx->token = origtoken;
ctx->tokenlen = origtokenlen;
continue; // not the match: TEXLD when we wanted TEXLDL, etc.
} // if

break; // found it!
} // for

opcode = (uint32) i;
Expand Down

0 comments on commit 4c677ed

Please sign in to comment.