summaryrefslogtreecommitdiff
path: root/src/arch/x86/instruction.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-10-04 12:41:38 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-10-04 12:41:38 (GMT)
commitb39b6867afbadd38476328201c07527ad17af60d (patch)
tree157beaaef421ee64ce6640a7d9a7458a2e84fab1 /src/arch/x86/instruction.c
parent83d626cb125a83f3a8b47f6b42920996aa85bd8a (diff)
Supported a few extra instructions (inc/dec rm8/16/32).
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@123 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/x86/instruction.c')
-rw-r--r--src/arch/x86/instruction.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/arch/x86/instruction.c b/src/arch/x86/instruction.c
index 65be263..712fab4 100644
--- a/src/arch/x86/instruction.c
+++ b/src/arch/x86/instruction.c
@@ -310,6 +310,11 @@ static x86_instruction _instructions[XOP_COUNT] = {
[XOP_CLD] = { false, 0xfc, IDX_TO_EXT(-1), "cld", XPX_NONE },
+
+ [XOP_INC_RM8] = { false, 0xfe, IDX_TO_EXT(0), "inc", XPX_NONE },
+ [XOP_DEC_RM8] = { false, 0xfe, IDX_TO_EXT(1), "dec", XPX_NONE },
+ [XOP_INC_RM1632] = { false, 0xff, IDX_TO_EXT(0), "inc", XPX_OPERAND_SIZE_OVERRIDE },
+ [XOP_DEC_RM1632] = { false, 0xff, IDX_TO_EXT(1), "dec", XPX_OPERAND_SIZE_OVERRIDE },
[XOP_CALL_RM1632] = { false, 0xff, IDX_TO_EXT(2), "call", XPX_OPERAND_SIZE_OVERRIDE },
[XOP_JMP_RM1632] = { false, 0xff, IDX_TO_EXT(4), "jmp", XPX_OPERAND_SIZE_OVERRIDE },
[XOP_PUSH_RM1632] = { false, 0xff, IDX_TO_EXT(6), "push", XPX_OPERAND_SIZE_OVERRIDE }