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 | |
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')
-rw-r--r-- | src/arch/x86/instruction.c | 19 | ||||
-rw-r--r-- | src/arch/x86/instruction.h | 3 |
2 files changed, 22 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. * * * diff --git a/src/arch/x86/instruction.h b/src/arch/x86/instruction.h index 2f59c46..d3b68c9 100644 --- a/src/arch/x86/instruction.h +++ b/src/arch/x86/instruction.h @@ -276,6 +276,9 @@ GType g_x86_instruction_get_type(void); /* Crée une instruction pour l'architecture x86. */ GArchInstruction *g_x86_instruction_new(X86Opcodes); +/* Fournit l'identifiant de l'opcode représenté. */ +X86Opcodes g_x86_instruction_get_opcode(const GX86Instruction *); + /* Attache à une instructions ses préfixes associés. */ void g_x86_instruction_set_prefixes(GX86Instruction *, X86Prefix); |