diff options
Diffstat (limited to 'src/arch')
| -rw-r--r-- | src/arch/instruction.c | 19 | ||||
| -rw-r--r-- | src/arch/instruction.h | 3 | 
2 files changed, 22 insertions, 0 deletions
diff --git a/src/arch/instruction.c b/src/arch/instruction.c index 2d1836b..240ffbe 100644 --- a/src/arch/instruction.c +++ b/src/arch/instruction.c @@ -586,6 +586,25 @@ size_t g_arch_instruction_get_destinations(const GArchInstruction *instr, GArchI  /******************************************************************************  *                                                                             * +*  Paramètres  : instr  = instruction d'assemblage à consulter.               * +*                                                                             * +*  Description : Fournit le nom humain de l'instruction manipulée.            * +*                                                                             * +*  Retour      : Mot clef de bas niveau.                                      * +*                                                                             * +*  Remarques   : -                                                            * +*                                                                             * +******************************************************************************/ + +const char *g_arch_instruction_get_keyword(const GArchInstruction *instr) +{ +    return instr->get_text(instr, NULL/* FIXME */, 0/* FIXME */); + +} + + +/****************************************************************************** +*                                                                             *  *  Paramètres  : instr  = instruction d'assemblage à représenter.             *  *                buffer = espace où placer ledit contenu.                     *  *                syntax = type de représentation demandée.                    * diff --git a/src/arch/instruction.h b/src/arch/instruction.h index fd059a1..bf78bfd 100644 --- a/src/arch/instruction.h +++ b/src/arch/instruction.h @@ -118,6 +118,9 @@ size_t g_arch_instruction_get_destinations(const GArchInstruction *, GArchInstru  /* --------------------- CONVERSIONS DU FORMAT DES INSTRUCTIONS --------------------- */ +/* Fournit le nom humain de l'instruction manipulée. */ +const char *g_arch_instruction_get_keyword(const GArchInstruction *); +  /* Ajoute à un tampon GLib le contenu de l'instance spécifiée. */  void g_arch_instruction_print(const GArchInstruction *, GCodeBuffer *, MemoryDataSize, const bin_t *, AsmSyntax);  | 
