diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-05-17 22:59:55 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-05-17 22:59:55 (GMT) |
commit | 4d0ff0c23862c242d533d9b2d34e8812ef99ad61 (patch) | |
tree | 3b8504b8d3946a8bc9a702b819138ab1e5501be6 /src/arch/jvm/instruction.c | |
parent | 96cb6971ee3ca529958b8cb1e8e55a6eb4e60eae (diff) |
Used only the new format of processor/instructions/operands for x86.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@64 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/jvm/instruction.c')
-rw-r--r-- | src/arch/jvm/instruction.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/arch/jvm/instruction.c b/src/arch/jvm/instruction.c index 7748624..9ada8f0 100644 --- a/src/arch/jvm/instruction.c +++ b/src/arch/jvm/instruction.c @@ -238,7 +238,7 @@ GArchInstruction *g_jvm_instruction_new(JvmOpcodes type) /****************************************************************************** * * * Paramètres : data = flux de données à analyser. * -* pos = position courante dans ce flux. [OUT] * +* pos = position courante dans ce flux. * * len = taille totale des données à analyser. * * wide = étendue de la future instruction. [OUT] * * care = la lecture de l'instr. veut-elle les opcodes ? [OUT] * @@ -251,16 +251,16 @@ GArchInstruction *g_jvm_instruction_new(JvmOpcodes type) * * ******************************************************************************/ -JvmOpcodes jvm_guess_next_instruction(const bin_t *data, off_t *pos, off_t len, bool *wide, bool *care) +JvmOpcodes jvm_guess_next_instruction(const bin_t *data, off_t pos, off_t len, bool *wide, bool *care) { JvmOpcodes result; /* Identifiant à retourner */ bin_t opcode; /* Opcode à trouver */ - *wide = (data[*pos] == 0xc4); + *wide = (data[pos] == 0xc4); - if (*wide && (*pos + 1) == len) return JOP_COUNT; + if (*wide && (pos + 1) == len) return JOP_COUNT; - opcode = data[*pos + (*wide ? 1 : 0)]; + opcode = data[pos + (*wide ? 1 : 0)]; for (result = 0; result < JOP_COUNT; result++) { |