diff options
Diffstat (limited to 'src/arch/undefined.c')
-rw-r--r-- | src/arch/undefined.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/src/arch/undefined.c b/src/arch/undefined.c index 0957764..d239dd5 100644 --- a/src/arch/undefined.c +++ b/src/arch/undefined.c @@ -70,7 +70,7 @@ static const char *g_undef_instruction_get_encoding(const GUndefInstruction *); static const char *g_undef_instruction_get_keyword(const GUndefInstruction *, AsmSyntax); /* Ajoute à un tampon GLib le contenu de l'instance spécifiée. */ -static GBufferLine *g_undef_instruction_print(GUndefInstruction *, GCodeBuffer *, MemoryDataSize, const GBinContent *, AsmSyntax); +static void g_undef_instruction_print(GUndefInstruction *, GBufferLine *, size_t, size_t); @@ -262,11 +262,11 @@ const char *g_undef_instruction_get_keyword(const GUndefInstruction *instr, AsmS /****************************************************************************** * * -* Paramètres : instr = instruction d'assemblage à représenter. * -* buffer = espace où placer ledit contenu. * +* Paramètres : instr = instruction d'assemblage à représenter. * +* buffer = espace où placer ledit contenu. * * msize = taille idéale des positions et adresses; * * content = contenu binaire global à venir lire. * -* syntax = type de représentation demandée. * +* syntax = type de représentation demandée. * * * * Description : Ajoute à un tampon GLib le contenu de l'instance spécifiée. * * * @@ -276,29 +276,22 @@ const char *g_undef_instruction_get_keyword(const GUndefInstruction *instr, AsmS * * ******************************************************************************/ -static GBufferLine *g_undef_instruction_print(GUndefInstruction *instr, GCodeBuffer *buffer, MemoryDataSize msize, const GBinContent *content, AsmSyntax syntax) +static void g_undef_instruction_print(GUndefInstruction *instr, GBufferLine *line, size_t index, size_t repeat) { - GBufferLine *result; /* Ligne de destination */ GArchInstruction *base; /* Version de base */ const char *key; /* Mot clef principal */ size_t klen; /* Taille de ce mot clef */ base = G_ARCH_INSTRUCTION(instr); - result = g_code_buffer_prepare_new_line(buffer, &base->range); - - g_buffer_line_add_flag(result, BLF_HAS_CODE); - - g_buffer_line_fill_for_instr(result, msize/* TODO ! */, msize, content, base->max_displayed_len); + g_buffer_line_fill_vmpa(line, get_mrange_addr(&base->range), MDS_32_BITS_UNSIGNED, MDS_32_BITS_UNSIGNED); /* Instruction proprement dite */ - key = g_arch_instruction_get_keyword(base, syntax); + key = g_arch_instruction_get_keyword(base, 0/*, syntax*/); klen = strlen(key); - g_buffer_line_append_text(result, BLC_ASSEMBLY_HEAD, key, klen, RTT_ERROR, NULL); - - return result; + g_buffer_line_append_text(line, BLC_ASSEMBLY_HEAD, key, klen, RTT_ERROR, NULL); } |