diff options
Diffstat (limited to 'src/arch/dalvik/opcodes/mul.c')
-rw-r--r-- | src/arch/dalvik/opcodes/mul.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/arch/dalvik/opcodes/mul.c b/src/arch/dalvik/opcodes/mul.c index aeddd14..959b859 100644 --- a/src/arch/dalvik/opcodes/mul.c +++ b/src/arch/dalvik/opcodes/mul.c @@ -112,7 +112,7 @@ GArchInstruction *dalvik_read_instr_mul_double_2addr(const bin_t *data, off_t *p * proc = architecture ciblée par le désassemblage. * * fmt = format du fichier contenant le code. * * * -* Description : Décode une instruction de type 'mul-int'. * +* Description : Décode une instruction de type 'mul-float'. * * * * Retour : Instruction mise en place ou NULL. * * * @@ -120,12 +120,12 @@ GArchInstruction *dalvik_read_instr_mul_double_2addr(const bin_t *data, off_t *p * * ******************************************************************************/ -GArchInstruction *dalvik_read_instr_mul_int(const bin_t *data, off_t *pos, off_t len, vmpa_t addr, const GDalvikProcessor *proc, const GDexFormat *fmt) +GArchInstruction *dalvik_read_instr_mul_float(const bin_t *data, off_t *pos, off_t len, vmpa_t addr, const GDalvikProcessor *proc, const GDexFormat *fmt) { GArchInstruction *result; /* Instruction à retourner */ SourceEndian endian; /* Boutisme lié au binaire */ - result = g_dalvik_instruction_new(DOP_MUL_INT); + result = g_dalvik_instruction_new(DOP_MUL_FLOAT); endian = g_arch_processor_get_endianness(G_ARCH_PROCESSOR(proc)); @@ -149,7 +149,7 @@ GArchInstruction *dalvik_read_instr_mul_int(const bin_t *data, off_t *pos, off_t * proc = architecture ciblée par le désassemblage. * * fmt = format du fichier contenant le code. * * * -* Description : Décode une instruction de type 'mul-int/2addr'. * +* Description : Décode une instruction de type 'mul-float/2addr'. * * * * Retour : Instruction mise en place ou NULL. * * * @@ -157,12 +157,12 @@ GArchInstruction *dalvik_read_instr_mul_int(const bin_t *data, off_t *pos, off_t * * ******************************************************************************/ -GArchInstruction *dalvik_read_instr_mul_int_2addr(const bin_t *data, off_t *pos, off_t len, vmpa_t addr, const GDalvikProcessor *proc, const GDexFormat *fmt) +GArchInstruction *dalvik_read_instr_mul_float_2addr(const bin_t *data, off_t *pos, off_t len, vmpa_t addr, const GDalvikProcessor *proc, const GDexFormat *fmt) { GArchInstruction *result; /* Instruction à retourner */ SourceEndian endian; /* Boutisme lié au binaire */ - result = g_dalvik_instruction_new(DOP_MUL_INT_2ADDR); + result = g_dalvik_instruction_new(DOP_MUL_FLOAT_2ADDR); endian = g_arch_processor_get_endianness(G_ARCH_PROCESSOR(proc)); @@ -186,7 +186,7 @@ GArchInstruction *dalvik_read_instr_mul_int_2addr(const bin_t *data, off_t *pos, * proc = architecture ciblée par le désassemblage. * * fmt = format du fichier contenant le code. * * * -* Description : Décode une instruction de type 'mul-int/lit8'. * +* Description : Décode une instruction de type 'mul-int'. * * * * Retour : Instruction mise en place ou NULL. * * * @@ -194,16 +194,16 @@ GArchInstruction *dalvik_read_instr_mul_int_2addr(const bin_t *data, off_t *pos, * * ******************************************************************************/ -GArchInstruction *dalvik_read_instr_mul_int_lit8(const bin_t *data, off_t *pos, off_t len, vmpa_t addr, const GDalvikProcessor *proc, const GDexFormat *fmt) +GArchInstruction *dalvik_read_instr_mul_int(const bin_t *data, off_t *pos, off_t len, vmpa_t addr, const GDalvikProcessor *proc, const GDexFormat *fmt) { GArchInstruction *result; /* Instruction à retourner */ SourceEndian endian; /* Boutisme lié au binaire */ - result = g_dalvik_instruction_new(DOP_MUL_INT_LIT8); + result = g_dalvik_instruction_new(DOP_MUL_INT); endian = g_arch_processor_get_endianness(G_ARCH_PROCESSOR(proc)); - if (!dalvik_read_operands(result, fmt, data, pos, len, endian, DALVIK_OPT_22B)) + if (!dalvik_read_operands(result, fmt, data, pos, len, endian, DALVIK_OPT_23X)) { g_object_unref(G_OBJECT(result)); return NULL; @@ -223,7 +223,7 @@ GArchInstruction *dalvik_read_instr_mul_int_lit8(const bin_t *data, off_t *pos, * proc = architecture ciblée par le désassemblage. * * fmt = format du fichier contenant le code. * * * -* Description : Décode une instruction de type 'mul-int/lit16'. * +* Description : Décode une instruction de type 'mul-int/2addr'. * * * * Retour : Instruction mise en place ou NULL. * * * @@ -231,16 +231,16 @@ GArchInstruction *dalvik_read_instr_mul_int_lit8(const bin_t *data, off_t *pos, * * ******************************************************************************/ -GArchInstruction *dalvik_read_instr_mul_int_lit16(const bin_t *data, off_t *pos, off_t len, vmpa_t addr, const GDalvikProcessor *proc, const GDexFormat *fmt) +GArchInstruction *dalvik_read_instr_mul_int_2addr(const bin_t *data, off_t *pos, off_t len, vmpa_t addr, const GDalvikProcessor *proc, const GDexFormat *fmt) { GArchInstruction *result; /* Instruction à retourner */ SourceEndian endian; /* Boutisme lié au binaire */ - result = g_dalvik_instruction_new(DOP_MUL_INT_LIT16); + result = g_dalvik_instruction_new(DOP_MUL_INT_2ADDR); endian = g_arch_processor_get_endianness(G_ARCH_PROCESSOR(proc)); - if (!dalvik_read_operands(result, fmt, data, pos, len, endian, DALVIK_OPT_22S)) + if (!dalvik_read_operands(result, fmt, data, pos, len, endian, DALVIK_OPT_12X)) { g_object_unref(G_OBJECT(result)); return NULL; @@ -260,7 +260,7 @@ GArchInstruction *dalvik_read_instr_mul_int_lit16(const bin_t *data, off_t *pos, * proc = architecture ciblée par le désassemblage. * * fmt = format du fichier contenant le code. * * * -* Description : Décode une instruction de type 'mul-float'. * +* Description : Décode une instruction de type 'mul-int/lit8'. * * * * Retour : Instruction mise en place ou NULL. * * * @@ -268,16 +268,16 @@ GArchInstruction *dalvik_read_instr_mul_int_lit16(const bin_t *data, off_t *pos, * * ******************************************************************************/ -GArchInstruction *dalvik_read_instr_mul_float(const bin_t *data, off_t *pos, off_t len, vmpa_t addr, const GDalvikProcessor *proc, const GDexFormat *fmt) +GArchInstruction *dalvik_read_instr_mul_int_lit8(const bin_t *data, off_t *pos, off_t len, vmpa_t addr, const GDalvikProcessor *proc, const GDexFormat *fmt) { GArchInstruction *result; /* Instruction à retourner */ SourceEndian endian; /* Boutisme lié au binaire */ - result = g_dalvik_instruction_new(DOP_MUL_FLOAT); + result = g_dalvik_instruction_new(DOP_MUL_INT_LIT8); endian = g_arch_processor_get_endianness(G_ARCH_PROCESSOR(proc)); - if (!dalvik_read_operands(result, fmt, data, pos, len, endian, DALVIK_OPT_23X)) + if (!dalvik_read_operands(result, fmt, data, pos, len, endian, DALVIK_OPT_22B)) { g_object_unref(G_OBJECT(result)); return NULL; @@ -297,7 +297,7 @@ GArchInstruction *dalvik_read_instr_mul_float(const bin_t *data, off_t *pos, off * proc = architecture ciblée par le désassemblage. * * fmt = format du fichier contenant le code. * * * -* Description : Décode une instruction de type 'mul-float/2addr'. * +* Description : Décode une instruction de type 'mul-int/lit16'. * * * * Retour : Instruction mise en place ou NULL. * * * @@ -305,16 +305,16 @@ GArchInstruction *dalvik_read_instr_mul_float(const bin_t *data, off_t *pos, off * * ******************************************************************************/ -GArchInstruction *dalvik_read_instr_mul_float_2addr(const bin_t *data, off_t *pos, off_t len, vmpa_t addr, const GDalvikProcessor *proc, const GDexFormat *fmt) +GArchInstruction *dalvik_read_instr_mul_int_lit16(const bin_t *data, off_t *pos, off_t len, vmpa_t addr, const GDalvikProcessor *proc, const GDexFormat *fmt) { GArchInstruction *result; /* Instruction à retourner */ SourceEndian endian; /* Boutisme lié au binaire */ - result = g_dalvik_instruction_new(DOP_MUL_FLOAT_2ADDR); + result = g_dalvik_instruction_new(DOP_MUL_INT_LIT16); endian = g_arch_processor_get_endianness(G_ARCH_PROCESSOR(proc)); - if (!dalvik_read_operands(result, fmt, data, pos, len, endian, DALVIK_OPT_12X)) + if (!dalvik_read_operands(result, fmt, data, pos, len, endian, DALVIK_OPT_22S)) { g_object_unref(G_OBJECT(result)); return NULL; |