summaryrefslogtreecommitdiff
path: root/src/arch/dalvik/instruction.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2010-06-27 11:46:06 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2010-06-27 11:46:06 (GMT)
commita3b128d4f448fa1eee12074a9bf0256b06e222e8 (patch)
tree260b2df0c52a6e998a81c7af0aa7f62b74c33fe5 /src/arch/dalvik/instruction.c
parentdad83b556250a85a9b2ccf68e5fb6f4df7dca1f4 (diff)
Fixed many bugs with the branch targets and supported one sub opcode.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@170 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/dalvik/instruction.c')
-rw-r--r--src/arch/dalvik/instruction.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/arch/dalvik/instruction.c b/src/arch/dalvik/instruction.c
index 17c19a4..13c8e83 100644
--- a/src/arch/dalvik/instruction.c
+++ b/src/arch/dalvik/instruction.c
@@ -108,18 +108,17 @@ static dalvik_instruction _instructions[DOP_COUNT] = {
[DOP_CMPG_DOUBLE] = { 0x30, "cmpg-double" },
[DOP_CMP_LONG] = { 0x31, "cmp-long" },
[DOP_IF_EQ] = { 0x32, "if-eq" },
- [DOP_IF_EQZ] = { 0x33, "if-eqz" },
- [DOP_IF_GE] = { 0x34, "if-ge" },
- [DOP_IF_GEZ] = { 0x35, "if-gez" },
+ [DOP_IF_NE] = { 0x33, "if-ne" },
+ [DOP_IF_LT] = { 0x34, "if-lt" },
+ [DOP_IF_GE] = { 0x35, "if-ge" },
[DOP_IF_GT] = { 0x36, "if-gt" },
- [DOP_IF_GTZ] = { 0x37, "if-gtz" },
- [DOP_IF_LE] = { 0x38, "if-le" },
- [DOP_IF_LEZ] = { 0x39, "if-lez" },
- [DOP_IF_LT] = { 0x3a, "if-lt" },
- [DOP_IF_LTZ] = { 0x3b, "if-ltz" },
- [DOP_IF_NE] = { 0x3c, "if-ne" },
- [DOP_IF_NEZ] = { 0x3d, "if-nez" },
-
+ [DOP_IF_LE] = { 0x37, "if-le" },
+ [DOP_IF_EQZ] = { 0x38, "if-eqz" },
+ [DOP_IF_NEZ] = { 0x39, "if-nez" },
+ [DOP_IF_LTZ] = { 0x3a, "if-ltz" },
+ [DOP_IF_GEZ] = { 0x3b, "if-gez" },
+ [DOP_IF_GTZ] = { 0x3c, "if-gtz" },
+ [DOP_IF_LEZ] = { 0x3d, "if-lez" },
@@ -187,7 +186,7 @@ static dalvik_instruction _instructions[DOP_COUNT] = {
[DOP_TO_INT_CHAR] = { 0x8e, "int-to-char" },
[DOP_TO_INT_SHORT] = { 0x8f, "int-to-short" },
[DOP_ADD_INT] = { 0x90, "add-int" },
-
+ [DOP_SUB_INT] = { 0x91, "sub-int" },
[DOP_MUL_INT] = { 0x92, "mul-int" },
[DOP_DIV_INT] = { 0x93, "div-int" },
[DOP_REM_INT] = { 0x94, "rem-int" },