From c1ea0b8cd92df6db38a0092e7de7d48f6c3e8f26 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 20 Apr 2011 00:25:12 +0000 Subject: [PATCH] Still let "int $3" be output as two bytes and added the "int3" instruction --- src/arch/i386.ins | 6 ++++-- test/i386.S | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/arch/i386.ins b/src/arch/i386.ins index 989c2fa..9d56118 100644 --- a/src/arch/i386.ins +++ b/src/arch/i386.ins @@ -598,10 +598,12 @@ /* 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 */ { "int", 0xcd, OP1F, OP_U8, AOT_NONE, AOT_NONE }, +/* INT 0xcc 1 3 */ +{ "int", 0xcc, OP1F, OP_C3, AOT_NONE, AOT_NONE }, +/* INT3 0xcc 1 */ +{ "int3", 0xcc, OP1F, AOT_NONE, AOT_NONE, AOT_NONE }, /* INTO 0xce 1 */ { "into", 0xce, OP1F, AOT_NONE, AOT_NONE, AOT_NONE }, /* INVD 0x0f08 2 */ diff --git a/test/i386.S b/test/i386.S index 1c099c9..1476740 100644 --- a/test/i386.S +++ b/test/i386.S @@ -243,6 +243,7 @@ insb insd int $0x3 + int3 int $0x4 int $0x42 into