Actually implement prefixes in the parser

This commit is contained in:
Pierre Pronchery 2018-09-08 20:07:14 +02:00
parent 3767308cf9
commit 4e14c80f0c

View File

@ -749,10 +749,15 @@ static int _operand(State * state)
static int _prefix(State * state) static int _prefix(State * state)
/* WORD */ /* WORD */
{ {
AsmArchPrefix const * prefix;
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "DEBUG: %s()\n", __func__); fprintf(stderr, "DEBUG: %s()\n", __func__);
#endif #endif
/* FIXME really implement */ /* this is not supposed to fail */
prefix = asmcode_get_arch_prefix_by_name(state->code,
token_get_string(state->token));
state->call.prefix = prefix->name;
return _parser_scan(state); return _parser_scan(state);
} }