From 1490b7a0f8114fce3ea0627831a4bfd0b7cafe07 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 20 Apr 2011 00:20:50 +0000 Subject: [PATCH] Added the "insb", "insw" and "insd" instructions --- src/arch/i386.ins | 9 +++++++++ test/i386.S | 2 ++ 2 files changed, 11 insertions(+) diff --git a/src/arch/i386.ins b/src/arch/i386.ins index 139563d..989c2fa 100644 --- a/src/arch/i386.ins +++ b/src/arch/i386.ins @@ -589,6 +589,15 @@ { "fnop", 0xd9d0, OP2F, AOT_NONE, AOT_NONE, AOT_NONE }, /* FWAIT 0x9b 1 */ { "fwait", 0x9b, OP1F, AOT_NONE, AOT_NONE, AOT_NONE }, +/* INSB 0x6c 1 */ +{ "insb", 0x6c, OP1F, AOT_NONE, AOT_NONE, AOT_NONE }, +#ifdef ARCH_i386_real +/* INSW 0x6d 1 */ +{ "insw", 0x6d, OP1F, AOT_NONE, AOT_NONE, AOT_NONE }, +#else +/* INSD 0x6d 1 */ +{ "insd", 0x6d, OP1F, AOT_NONE, AOT_NONE, AOT_NONE }, +#endif /* INT 0xcc 1 3 */ { "int", 0xcc, OP1F, OP_C3, AOT_NONE, AOT_NONE }, /* INT 0xcd 1 imm8 */ diff --git a/test/i386.S b/test/i386.S index 19d3be2..1c099c9 100644 --- a/test/i386.S +++ b/test/i386.S @@ -240,6 +240,8 @@ fnclex fninit fwait + insb + insd int $0x3 int $0x4 int $0x42