python: support XCore
diff --git a/arch/XCore/XCoreInstPrinter.c b/arch/XCore/XCoreInstPrinter.c
index ce617b7..1f4f704 100644
--- a/arch/XCore/XCoreInstPrinter.c
+++ b/arch/XCore/XCoreInstPrinter.c
@@ -55,7 +55,7 @@
}
MI->flat_insn.xcore.operands[MI->flat_insn.xcore.op_count].mem.index = XCORE_REG_INVALID;
MI->flat_insn.xcore.operands[MI->flat_insn.xcore.op_count].mem.disp = 0;
- MI->flat_insn.xcore.operands[MI->flat_insn.xcore.op_count].mem.sign = 1;
+ MI->flat_insn.xcore.operands[MI->flat_insn.xcore.op_count].mem.direct = 1;
} else {
// the last op should be the memory base
MI->flat_insn.xcore.op_count--;
@@ -64,9 +64,9 @@
MI->flat_insn.xcore.operands[MI->flat_insn.xcore.op_count].mem.index = XCORE_REG_INVALID;
MI->flat_insn.xcore.operands[MI->flat_insn.xcore.op_count].mem.disp = 0;
if (reg > 0)
- MI->flat_insn.xcore.operands[MI->flat_insn.xcore.op_count].mem.sign = 1;
+ MI->flat_insn.xcore.operands[MI->flat_insn.xcore.op_count].mem.direct = 1;
else
- MI->flat_insn.xcore.operands[MI->flat_insn.xcore.op_count].mem.sign = -1;
+ MI->flat_insn.xcore.operands[MI->flat_insn.xcore.op_count].mem.direct = -1;
}
} else {
// done, create the next operand slot