diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-04-02 11:58:42 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-04-02 12:39:30 (GMT) |
commit | 1db4ef323b7a76093356ae76268132f3760e1631 (patch) | |
tree | fec36ee0ec1b6b2010b62ca4177edca0e31e2114 /src/arch/instruction.c | |
parent | 1bc80837dde03a32b5ab185067f7bd4c499a9850 (diff) |
Rewritten the whole instruction definition format.
Diffstat (limited to 'src/arch/instruction.c')
-rw-r--r-- | src/arch/instruction.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/arch/instruction.c b/src/arch/instruction.c index 0041129..9c0a47c 100644 --- a/src/arch/instruction.c +++ b/src/arch/instruction.c @@ -1089,6 +1089,30 @@ char *g_arch_instruction_build_tooltip(const GArchInstruction *instr) } +/****************************************************************************** +* * +* Paramètres : instr = instruction d'assemblage à consulter. * +* * +* Description : Fournit une description pour l'instruction manipulée. * +* * +* Retour : Chaîne de caractères avec balises éventuelles. * +* * +* Remarques : - * +* * +******************************************************************************/ + +const char *g_arch_instruction_get_description(const GArchInstruction *instr) +{ + const char *result; /* Description à retourner */ + + result = G_ARCH_INSTRUCTION_GET_CLASS(instr)->get_desc(instr); + + return result; + +} + + + /* ---------------------------------------------------------------------------------- */ /* OFFRE DE CAPACITES DE GENERATION */ /* ---------------------------------------------------------------------------------- */ |