This commit is contained in:
Joel Höner 2017-01-23 01:37:45 +01:00
commit 781b9641c4
2 changed files with 6 additions and 0 deletions

View File

@ -258,6 +258,8 @@ enum ZydisOperandActions
*/
typedef struct ZydisOperandInfo_
{
// semantic operand type ... temporary
uint32_t temp;
/**
* @brief The operand-id.
*/

View File

@ -1509,6 +1509,10 @@ static ZydisStatus ZydisDecodeOperands(ZydisInstructionDecoder* decoder,
info->operands[i].id = i;
ZYDIS_CHECK(ZydisDecodeOperand(decoder, info, &info->operands[i], operands[i].type,
operands[i].encoding));
// temp
info->operands[i].temp = operands[i].type;
info->operands[i].encoding = operands[i].encoding;
info->operands[i].action = operands[i].action;
// Adjust segment register for memory operands