mirror of https://github.com/x64dbg/zydis
Temporary change to expose the semantic operand-type
This commit is contained in:
parent
deff3b8e55
commit
8157b9fa42
|
@ -258,6 +258,8 @@ enum ZydisOperandActions
|
||||||
*/
|
*/
|
||||||
typedef struct ZydisOperandInfo_
|
typedef struct ZydisOperandInfo_
|
||||||
{
|
{
|
||||||
|
// semantic operand type ... temporary
|
||||||
|
uint32_t temp;
|
||||||
/**
|
/**
|
||||||
* @brief The operand-id.
|
* @brief The operand-id.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1509,6 +1509,10 @@ static ZydisStatus ZydisDecodeOperands(ZydisInstructionDecoder* decoder,
|
||||||
info->operands[i].id = i;
|
info->operands[i].id = i;
|
||||||
ZYDIS_CHECK(ZydisDecodeOperand(decoder, info, &info->operands[i], operands[i].type,
|
ZYDIS_CHECK(ZydisDecodeOperand(decoder, info, &info->operands[i], operands[i].type,
|
||||||
operands[i].encoding));
|
operands[i].encoding));
|
||||||
|
|
||||||
|
// temp
|
||||||
|
info->operands[i].temp = operands[i].type;
|
||||||
|
|
||||||
info->operands[i].encoding = operands[i].encoding;
|
info->operands[i].encoding = operands[i].encoding;
|
||||||
info->operands[i].action = operands[i].action;
|
info->operands[i].action = operands[i].action;
|
||||||
// Adjust segment register for memory operands
|
// Adjust segment register for memory operands
|
||||||
|
|
Loading…
Reference in New Issue