summaryrefslogtreecommitdiff
path: root/src/arch/x86/instruction.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/instruction.c')
-rw-r--r--src/arch/x86/instruction.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/arch/x86/instruction.c b/src/arch/x86/instruction.c
index 3cf4a6b..0321e88 100644
--- a/src/arch/x86/instruction.c
+++ b/src/arch/x86/instruction.c
@@ -403,6 +403,25 @@ GArchInstruction *g_x86_instruction_new(X86Opcodes type)
/******************************************************************************
* *
+* Paramètres : instr = instruction à consulter. *
+* *
+* Description : Fournit l'identifiant de l'opcode représenté. *
+* *
+* Retour : - *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+X86Opcodes g_x86_instruction_get_opcode(const GX86Instruction *instr)
+{
+ return instr->type;
+
+}
+
+
+/******************************************************************************
+* *
* Paramètres : instr = instruction à venir compléter. *
* prefixes = listes des préfixes rencontrés. *
* *