diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-07-14 23:43:09 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-07-14 23:43:09 (GMT) |
commit | b5a2692820a0b85a03ff28fc2154f8d50f26d5e2 (patch) | |
tree | 9b6760ddedcb46ece3ec577f7494e40fabce7b87 /src/arch/x86/instruction.c | |
parent | 24d7c72a124df20339a50bb61e66385352e68a1b (diff) |
Restored the code loading the ELF relocations.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@93 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/x86/instruction.c')
-rw-r--r-- | src/arch/x86/instruction.c | 19 |
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. * * * |