Bochs/bochs/cpu/fetchdecode.cc

2888 lines
133 KiB
C++
Raw Normal View History

/////////////////////////////////////////////////////////////////////////
2010-05-22 01:17:32 +04:00
// $Id: fetchdecode.cc,v 1.270 2010-05-21 21:17:32 sshwarts Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001-2010 The Bochs Project
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
2009-01-16 21:18:59 +03:00
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA B 02110-1301 USA
//
/////////////////////////////////////////////////////////////////////////
#define NEED_CPU_REG_SHORTCUTS 1
#include "bochs.h"
#include "cpu.h"
#define LOG_THIS BX_CPU_THIS_PTR
///////////////////////////
// prefix bytes
// opcode bytes
// modrm/sib
// address displacement
// immediate constant
///////////////////////////
2008-02-15 15:23:49 +03:00
#define X 0 /* undefined opcode */
static const Bit8u BxOpcodeHasModrm32[512] = {
/* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* ------------------------------- */
2008-02-15 15:23:49 +03:00
/* 00 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,X,
2008-02-03 00:46:54 +03:00
/* 10 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,
2008-02-15 15:23:49 +03:00
/* 20 */ 1,1,1,1,0,0,X,0,1,1,1,1,0,0,X,0,
/* 30 */ 1,1,1,1,0,0,X,0,1,1,1,1,0,0,X,0,
2008-02-03 00:46:54 +03:00
/* 40 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
/* 50 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
2008-02-15 15:23:49 +03:00
/* 60 */ 0,0,1,1,X,X,X,X,0,1,0,1,0,0,0,0,
2008-02-03 00:46:54 +03:00
/* 70 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
/* 80 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
/* 90 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
/* A0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
/* B0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
/* C0 */ 1,1,0,0,1,1,1,1,0,0,0,0,0,0,0,0,
/* D0 */ 1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1,
/* E0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
2008-02-15 15:23:49 +03:00
/* F0 */ X,0,X,X,0,0,1,1,0,0,0,0,0,0,1,1,
/* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* ------------------------------- */
2008-02-15 15:23:49 +03:00
1,1,1,1,X,0,0,0,0,0,X,0,X,1,0,1, /* 0F 00 */
2007-11-17 19:20:37 +03:00
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 0F 10 */
2008-02-15 15:23:49 +03:00
1,1,1,1,1,X,1,X,1,1,1,1,1,1,1,1, /* 0F 20 */
0,0,0,0,0,0,X,X,1,X,1,X,X,X,X,X, /* 0F 30 */
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 0F 40 */
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 0F 50 */
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 0F 60 */
2009-01-31 13:43:24 +03:00
1,1,1,1,1,1,1,0,1,1,X,X,1,1,1,1, /* 0F 70 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0F 80 */
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 0F 90 */
0,0,0,1,1,1,0,0,0,0,0,1,1,1,1,1, /* 0F A0 */
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 0F B0 */
1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0, /* 0F C0 */
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 0F D0 */
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 0F E0 */
2008-02-15 15:23:49 +03:00
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,X /* 0F F0 */
/* ------------------------------- */
/* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
};
2008-02-15 15:23:49 +03:00
#undef X
/* *********** */
// LOCK PREFIX //
/* *********** */
2008-02-03 00:46:54 +03:00
/*
* The LOCK prefix can be prepended only to the following instructions
* and only to those forms of the instructions where the destination
* operand is a memory operand: ADD, ADC, AND, BTC, BTR, BTS, CMPXCHG,
* CMPXCH8B, DEC, INC, NEG, NOT, OR, SBB, SUB, XOR, XADD, and XCHG. If
* the LOCK prefix is used with one of these instructions and the source
* operand is a memory operand, an undefined opcode exception (#UD) will
* be generated. An undefined opcode exception will also be generated if
* the LOCK prefix is used with any instruction not in the above list.
* The XCHG instruction always asserts the LOCK# signal regardless of the
* presence or absence of the LOCK prefix.
*/
static unsigned Resolve16BaseReg[8] = {
BX_16BIT_REG_BX,
BX_16BIT_REG_BX,
BX_16BIT_REG_BP,
BX_16BIT_REG_BP,
BX_16BIT_REG_SI,
BX_16BIT_REG_DI,
BX_16BIT_REG_BP,
BX_16BIT_REG_BX
};
static unsigned Resolve16IndexReg[8] = {
BX_16BIT_REG_SI,
BX_16BIT_REG_DI,
BX_16BIT_REG_SI,
BX_16BIT_REG_DI,
BX_NIL_REGISTER,
BX_NIL_REGISTER,
BX_NIL_REGISTER,
BX_NIL_REGISTER
};
// decoding instructions; accessing seg reg's by index
static unsigned sreg_mod00_rm16[8] = {
BX_SEG_REG_DS,
BX_SEG_REG_DS,
BX_SEG_REG_SS,
BX_SEG_REG_SS,
BX_SEG_REG_DS,
BX_SEG_REG_DS,
BX_SEG_REG_DS,
BX_SEG_REG_DS
};
static unsigned sreg_mod01or10_rm16[8] = {
BX_SEG_REG_DS,
BX_SEG_REG_DS,
BX_SEG_REG_SS,
BX_SEG_REG_SS,
BX_SEG_REG_DS,
BX_SEG_REG_DS,
BX_SEG_REG_SS,
BX_SEG_REG_DS
};
// decoding instructions; accessing seg reg's by index
static unsigned sreg_mod0_base32[8] = {
BX_SEG_REG_DS,
BX_SEG_REG_DS,
BX_SEG_REG_DS,
BX_SEG_REG_DS,
BX_SEG_REG_SS,
BX_SEG_REG_DS,
BX_SEG_REG_DS,
BX_SEG_REG_DS
};
static unsigned sreg_mod1or2_base32[8] = {
BX_SEG_REG_DS,
BX_SEG_REG_DS,
BX_SEG_REG_DS,
BX_SEG_REG_DS,
BX_SEG_REG_SS,
BX_SEG_REG_SS,
BX_SEG_REG_DS,
BX_SEG_REG_DS
};
2003-05-15 20:41:17 +04:00
// common fetchdecode32/64 opcode tables
#include "fetchdecode.h"
// table of all Bochs opcodes
bxIAOpcodeTable BxOpcodesTable[] = {
#define bx_define_opcode(a, b, c, d) { b, c },
#include "ia_opcodes.h"
};
#undef bx_define_opcode
2010-05-13 09:38:24 +04:00
/* **************************** */
/* 512*2 entries for 16bit mode */
/* 512*2 entries for 32bit mode */
/* **************************** */
2010-05-13 09:38:24 +04:00
static const BxOpcodeInfo_t BxOpcodeInfo32[512*2*2] = {
// 512 (/r) + 512 (/m) entries for 16bit mode
/* 00 /wr */ { BxArithDstRM, BX_IA_ADD_GbEbR },
2010-05-13 09:38:24 +04:00
/* 00 /wm */ { BxLockable, BX_IA_ADD_EbGbM },
/* 01 /wr */ { BxArithDstRM, BX_IA_ADD_GwEwR },
2010-05-13 09:38:24 +04:00
/* 01 /wm */ { BxLockable, BX_IA_ADD_EwGwM },
/* 02 /wr */ { 0, BX_IA_ADD_GbEbR },
2010-05-13 09:38:24 +04:00
/* 02 /wm */ { 0, BX_IA_ADD_GbEbM },
/* 03 /wr */ { 0, BX_IA_ADD_GwEwR },
2010-05-13 09:38:24 +04:00
/* 03 /wm */ { 0, BX_IA_ADD_GwEwM },
/* 04 /wr */ { BxImmediate_Ib, BX_IA_ADD_ALIb },
2010-05-13 09:38:24 +04:00
/* 04 /wm */ { BxImmediate_Ib, BX_IA_ADD_ALIb },
/* 05 /wr */ { BxImmediate_Iw, BX_IA_ADD_AXIw },
2010-05-13 09:38:24 +04:00
/* 05 /wm */ { BxImmediate_Iw, BX_IA_ADD_AXIw },
/* 06 /wr */ { 0, BX_IA_PUSH16_ES },
2010-05-13 09:38:24 +04:00
/* 06 /wm */ { 0, BX_IA_PUSH16_ES },
/* 07 /wr */ { 0, BX_IA_POP16_ES },
2010-05-13 09:38:24 +04:00
/* 07 /wm */ { 0, BX_IA_POP16_ES },
/* 08 /wr */ { BxArithDstRM, BX_IA_OR_GbEbR },
2010-05-13 09:38:24 +04:00
/* 08 /wm */ { BxLockable, BX_IA_OR_EbGbM },
/* 09 /wr */ { BxArithDstRM, BX_IA_OR_GwEwR },
2010-05-13 09:38:24 +04:00
/* 09 /wm */ { BxLockable, BX_IA_OR_EwGwM },
/* 0A /wr */ { 0, BX_IA_OR_GbEbR },
2010-05-13 09:38:24 +04:00
/* 0A /wm */ { 0, BX_IA_OR_GbEbM },
/* 0B /wr */ { 0, BX_IA_OR_GwEwR },
2010-05-13 09:38:24 +04:00
/* 0B /wm */ { 0, BX_IA_OR_GwEwM },
/* 0C /wr */ { BxImmediate_Ib, BX_IA_OR_ALIb },
2010-05-13 09:38:24 +04:00
/* 0C /wm */ { BxImmediate_Ib, BX_IA_OR_ALIb },
/* 0D /wr */ { BxImmediate_Iw, BX_IA_OR_AXIw },
2010-05-13 09:38:24 +04:00
/* 0D /wm */ { BxImmediate_Iw, BX_IA_OR_AXIw },
/* 0E /wr */ { 0, BX_IA_PUSH16_CS },
2010-05-13 09:38:24 +04:00
/* 0E /wm */ { 0, BX_IA_PUSH16_CS },
/* 0F /wr */ { 0, BX_IA_ERROR }, // 2-byte escape
2010-05-13 09:38:24 +04:00
/* 0F /wm */ { 0, BX_IA_ERROR }, // 2-byte escape
/* 10 /wr */ { BxArithDstRM, BX_IA_ADC_GbEbR },
2010-05-13 09:38:24 +04:00
/* 10 /wm */ { BxLockable, BX_IA_ADC_EbGbM },
/* 11 /wr */ { BxArithDstRM, BX_IA_ADC_GwEwR },
2010-05-13 09:38:24 +04:00
/* 11 /wm */ { BxLockable, BX_IA_ADC_EwGwM },
/* 12 /wr */ { 0, BX_IA_ADC_GbEbR },
2010-05-13 09:38:24 +04:00
/* 12 /wm */ { 0, BX_IA_ADC_GbEbM },
/* 13 /wr */ { 0, BX_IA_ADC_GwEwR },
2010-05-13 09:38:24 +04:00
/* 13 /wm */ { 0, BX_IA_ADC_GwEwM },
/* 14 /wr */ { BxImmediate_Ib, BX_IA_ADC_ALIb },
2010-05-13 09:38:24 +04:00
/* 14 /wm */ { BxImmediate_Ib, BX_IA_ADC_ALIb },
/* 15 /wr */ { BxImmediate_Iw, BX_IA_ADC_AXIw },
2010-05-13 09:38:24 +04:00
/* 15 /wm */ { BxImmediate_Iw, BX_IA_ADC_AXIw },
/* 16 /wr */ { 0, BX_IA_PUSH16_SS },
2010-05-13 09:38:24 +04:00
/* 16 /wm */ { 0, BX_IA_PUSH16_SS },
/* 17 /wr */ { BxTraceEnd, BX_IA_POP16_SS }, // async_event = 1
2010-05-13 09:38:24 +04:00
/* 17 /wm */ { BxTraceEnd, BX_IA_POP16_SS }, // async_event = 1
/* 18 /wr */ { BxArithDstRM, BX_IA_SBB_GbEbR },
2010-05-13 09:38:24 +04:00
/* 18 /wm */ { BxLockable, BX_IA_SBB_EbGbM },
/* 19 /wr */ { BxArithDstRM, BX_IA_SBB_GwEwR },
2010-05-13 09:38:24 +04:00
/* 19 /wm */ { BxLockable, BX_IA_SBB_EwGwM },
/* 1A /wr */ { 0, BX_IA_SBB_GbEbR },
2010-05-13 09:38:24 +04:00
/* 1A /wm */ { 0, BX_IA_SBB_GbEbM },
/* 1B /wr */ { 0, BX_IA_SBB_GwEwR },
2010-05-13 09:38:24 +04:00
/* 1B /wm */ { 0, BX_IA_SBB_GwEwM },
/* 1C /wr */ { BxImmediate_Ib, BX_IA_SBB_ALIb },
2010-05-13 09:38:24 +04:00
/* 1C /wm */ { BxImmediate_Ib, BX_IA_SBB_ALIb },
/* 1D /wr */ { BxImmediate_Iw, BX_IA_SBB_AXIw },
2010-05-13 09:38:24 +04:00
/* 1D /wm */ { BxImmediate_Iw, BX_IA_SBB_AXIw },
/* 1E /wr */ { 0, BX_IA_PUSH16_DS },
2010-05-13 09:38:24 +04:00
/* 1E /wm */ { 0, BX_IA_PUSH16_DS },
/* 1F /wr */ { 0, BX_IA_POP16_DS },
2010-05-13 09:38:24 +04:00
/* 1F /wm */ { 0, BX_IA_POP16_DS },
/* 20 /wr */ { BxArithDstRM, BX_IA_AND_GbEbR },
2010-05-13 09:38:24 +04:00
/* 20 /wm */ { BxLockable, BX_IA_AND_EbGbM },
/* 21 /wr */ { BxArithDstRM, BX_IA_AND_GwEwR },
2010-05-13 09:38:24 +04:00
/* 21 /wm */ { BxLockable, BX_IA_AND_EwGwM },
/* 22 /wr */ { 0, BX_IA_AND_GbEbR },
2010-05-13 09:38:24 +04:00
/* 22 /wm */ { 0, BX_IA_AND_GbEbM },
/* 23 /wr */ { 0, BX_IA_AND_GwEwR },
2010-05-13 09:38:24 +04:00
/* 23 /wm */ { 0, BX_IA_AND_GwEwM },
/* 24 /wr */ { BxImmediate_Ib, BX_IA_AND_ALIb },
2010-05-13 09:38:24 +04:00
/* 24 /wm */ { BxImmediate_Ib, BX_IA_AND_ALIb },
/* 25 /wr */ { BxImmediate_Iw, BX_IA_AND_AXIw },
2010-05-13 09:38:24 +04:00
/* 25 /wm */ { BxImmediate_Iw, BX_IA_AND_AXIw },
/* 26 /wr */ { 0, BX_IA_ERROR }, // ES:
2010-05-13 09:38:24 +04:00
/* 26 /wm */ { 0, BX_IA_ERROR }, // ES:
/* 27 /wr */ { 0, BX_IA_DAA },
2010-05-13 09:38:24 +04:00
/* 27 /wm */ { 0, BX_IA_DAA },
/* 28 /wr */ { BxArithDstRM, BX_IA_SUB_GbEbR },
2010-05-13 09:38:24 +04:00
/* 28 /wm */ { BxLockable, BX_IA_SUB_EbGbM },
/* 29 /wr */ { BxArithDstRM, BX_IA_SUB_GwEwR },
2010-05-13 09:38:24 +04:00
/* 29 /wm */ { BxLockable, BX_IA_SUB_EwGwM },
/* 2A /wr */ { 0, BX_IA_SUB_GbEbR },
2010-05-13 09:38:24 +04:00
/* 2A /wm */ { 0, BX_IA_SUB_GbEbM },
/* 2B /wr */ { 0, BX_IA_SUB_GwEwR },
2010-05-13 09:38:24 +04:00
/* 2B /wm */ { 0, BX_IA_SUB_GwEwM },
/* 2C /wr */ { BxImmediate_Ib, BX_IA_SUB_ALIb },
2010-05-13 09:38:24 +04:00
/* 2C /wm */ { BxImmediate_Ib, BX_IA_SUB_ALIb },
/* 2D /wr */ { BxImmediate_Iw, BX_IA_SUB_AXIw },
2010-05-13 09:38:24 +04:00
/* 2D /wm */ { BxImmediate_Iw, BX_IA_SUB_AXIw },
/* 2E /wr */ { 0, BX_IA_ERROR }, // CS:
2010-05-13 09:38:24 +04:00
/* 2E /wm */ { 0, BX_IA_ERROR }, // CS:
/* 2F /wr */ { 0, BX_IA_DAS },
2010-05-13 09:38:24 +04:00
/* 2F /wm */ { 0, BX_IA_DAS },
/* 30 /wr */ { BxArithDstRM, BX_IA_XOR_GbEbR },
2010-05-13 09:38:24 +04:00
/* 30 /wm */ { BxLockable, BX_IA_XOR_EbGbM },
/* 31 /wr */ { BxArithDstRM, BX_IA_XOR_GwEwR },
2010-05-13 09:38:24 +04:00
/* 31 /wm */ { BxLockable, BX_IA_XOR_EwGwM },
/* 32 /wr */ { 0, BX_IA_XOR_GbEbR },
2010-05-13 09:38:24 +04:00
/* 32 /wm */ { 0, BX_IA_XOR_GbEbM },
/* 33 /wr */ { 0, BX_IA_XOR_GwEwR },
2010-05-13 09:38:24 +04:00
/* 33 /wm */ { 0, BX_IA_XOR_GwEwM },
/* 34 /wr */ { BxImmediate_Ib, BX_IA_XOR_ALIb },
2010-05-13 09:38:24 +04:00
/* 34 /wm */ { BxImmediate_Ib, BX_IA_XOR_ALIb },
/* 35 /wr */ { BxImmediate_Iw, BX_IA_XOR_AXIw },
2010-05-13 09:38:24 +04:00
/* 35 /wm */ { BxImmediate_Iw, BX_IA_XOR_AXIw },
/* 36 /wr */ { 0, BX_IA_ERROR }, // SS:
2010-05-13 09:38:24 +04:00
/* 36 /wm */ { 0, BX_IA_ERROR }, // SS:
/* 37 /wr */ { 0, BX_IA_AAA },
2010-05-13 09:38:24 +04:00
/* 37 /wm */ { 0, BX_IA_AAA },
/* 38 /wr */ { BxArithDstRM, BX_IA_CMP_GbEbR },
2010-05-13 09:38:24 +04:00
/* 38 /wm */ { 0, BX_IA_CMP_EbGbM },
/* 39 /wr */ { BxArithDstRM, BX_IA_CMP_GwEwR },
2010-05-13 09:38:24 +04:00
/* 39 /wm */ { 0, BX_IA_CMP_EwGwM },
/* 3A /wr */ { 0, BX_IA_CMP_GbEbR },
2010-05-13 09:38:24 +04:00
/* 3A /wm */ { 0, BX_IA_CMP_GbEbM },
/* 3B /wr */ { 0, BX_IA_CMP_GwEwR },
2010-05-13 09:38:24 +04:00
/* 3B /wm */ { 0, BX_IA_CMP_GwEwM },
/* 3C /wr */ { BxImmediate_Ib, BX_IA_CMP_ALIb },
2010-05-13 09:38:24 +04:00
/* 3C /wm */ { BxImmediate_Ib, BX_IA_CMP_ALIb },
/* 3D /wr */ { BxImmediate_Iw, BX_IA_CMP_AXIw },
2010-05-13 09:38:24 +04:00
/* 3D /wm */ { BxImmediate_Iw, BX_IA_CMP_AXIw },
/* 3E /wr */ { 0, BX_IA_ERROR }, // DS:
2010-05-13 09:38:24 +04:00
/* 3E /wm */ { 0, BX_IA_ERROR }, // DS:
/* 3F /wr */ { 0, BX_IA_AAS },
2010-05-13 09:38:24 +04:00
/* 3F /wm */ { 0, BX_IA_AAS },
/* 40 /wr */ { 0, BX_IA_INC_RX },
2010-05-13 09:38:24 +04:00
/* 40 /wm */ { 0, BX_IA_INC_RX },
/* 41 /wr */ { 0, BX_IA_INC_RX },
2010-05-13 09:38:24 +04:00
/* 41 /wm */ { 0, BX_IA_INC_RX },
/* 42 /wr */ { 0, BX_IA_INC_RX },
2010-05-13 09:38:24 +04:00
/* 42 /wm */ { 0, BX_IA_INC_RX },
/* 43 /wr */ { 0, BX_IA_INC_RX },
2010-05-13 09:38:24 +04:00
/* 43 /wm */ { 0, BX_IA_INC_RX },
/* 44 /wr */ { 0, BX_IA_INC_RX },
2010-05-13 09:38:24 +04:00
/* 44 /wm */ { 0, BX_IA_INC_RX },
/* 45 /wr */ { 0, BX_IA_INC_RX },
2010-05-13 09:38:24 +04:00
/* 45 /wm */ { 0, BX_IA_INC_RX },
/* 46 /wr */ { 0, BX_IA_INC_RX },
2010-05-13 09:38:24 +04:00
/* 46 /wm */ { 0, BX_IA_INC_RX },
/* 47 /wr */ { 0, BX_IA_INC_RX },
2010-05-13 09:38:24 +04:00
/* 47 /wm */ { 0, BX_IA_INC_RX },
/* 48 /wr */ { 0, BX_IA_DEC_RX },
2010-05-13 09:38:24 +04:00
/* 48 /wm */ { 0, BX_IA_DEC_RX },
/* 49 /wr */ { 0, BX_IA_DEC_RX },
2010-05-13 09:38:24 +04:00
/* 49 /wm */ { 0, BX_IA_DEC_RX },
/* 4A /wr */ { 0, BX_IA_DEC_RX },
2010-05-13 09:38:24 +04:00
/* 4A /wm */ { 0, BX_IA_DEC_RX },
/* 4B /wr */ { 0, BX_IA_DEC_RX },
2010-05-13 09:38:24 +04:00
/* 4B /wm */ { 0, BX_IA_DEC_RX },
/* 4C /wr */ { 0, BX_IA_DEC_RX },
2010-05-13 09:38:24 +04:00
/* 4C /wm */ { 0, BX_IA_DEC_RX },
/* 4D /wr */ { 0, BX_IA_DEC_RX },
2010-05-13 09:38:24 +04:00
/* 4D /wm */ { 0, BX_IA_DEC_RX },
/* 4E /wr */ { 0, BX_IA_DEC_RX },
2010-05-13 09:38:24 +04:00
/* 4E /wm */ { 0, BX_IA_DEC_RX },
/* 4F /wr */ { 0, BX_IA_DEC_RX },
2010-05-13 09:38:24 +04:00
/* 4F /wm */ { 0, BX_IA_DEC_RX },
/* 50 /wr */ { 0, BX_IA_PUSH_RX },
2010-05-13 09:38:24 +04:00
/* 50 /wm */ { 0, BX_IA_PUSH_RX },
/* 51 /wr */ { 0, BX_IA_PUSH_RX },
2010-05-13 09:38:24 +04:00
/* 51 /wm */ { 0, BX_IA_PUSH_RX },
/* 52 /wr */ { 0, BX_IA_PUSH_RX },
2010-05-13 09:38:24 +04:00
/* 52 /wm */ { 0, BX_IA_PUSH_RX },
/* 53 /wr */ { 0, BX_IA_PUSH_RX },
2010-05-13 09:38:24 +04:00
/* 53 /wm */ { 0, BX_IA_PUSH_RX },
/* 54 /wr */ { 0, BX_IA_PUSH_RX },
2010-05-13 09:38:24 +04:00
/* 54 /wm */ { 0, BX_IA_PUSH_RX },
/* 55 /wr */ { 0, BX_IA_PUSH_RX },
2010-05-13 09:38:24 +04:00
/* 55 /wm */ { 0, BX_IA_PUSH_RX },
/* 56 /wr */ { 0, BX_IA_PUSH_RX },
2010-05-13 09:38:24 +04:00
/* 56 /wm */ { 0, BX_IA_PUSH_RX },
/* 57 /wr */ { 0, BX_IA_PUSH_RX },
2010-05-13 09:38:24 +04:00
/* 57 /wm */ { 0, BX_IA_PUSH_RX },
/* 58 /wr */ { 0, BX_IA_POP_RX },
2010-05-13 09:38:24 +04:00
/* 58 /wm */ { 0, BX_IA_POP_RX },
/* 59 /wr */ { 0, BX_IA_POP_RX },
2010-05-13 09:38:24 +04:00
/* 59 /wm */ { 0, BX_IA_POP_RX },
/* 5A /wr */ { 0, BX_IA_POP_RX },
2010-05-13 09:38:24 +04:00
/* 5A /wm */ { 0, BX_IA_POP_RX },
/* 5B /wr */ { 0, BX_IA_POP_RX },
2010-05-13 09:38:24 +04:00
/* 5B /wm */ { 0, BX_IA_POP_RX },
/* 5C /wr */ { 0, BX_IA_POP_RX },
2010-05-13 09:38:24 +04:00
/* 5C /wm */ { 0, BX_IA_POP_RX },
/* 5D /wr */ { 0, BX_IA_POP_RX },
2010-05-13 09:38:24 +04:00
/* 5D /wm */ { 0, BX_IA_POP_RX },
/* 5E /wr */ { 0, BX_IA_POP_RX },
2010-05-13 09:38:24 +04:00
/* 5E /wm */ { 0, BX_IA_POP_RX },
/* 5F /wr */ { 0, BX_IA_POP_RX },
2010-05-13 09:38:24 +04:00
/* 5F /wm */ { 0, BX_IA_POP_RX },
/* 60 /wr */ { 0, BX_IA_PUSHAD16 },
2010-05-13 09:38:24 +04:00
/* 60 /wm */ { 0, BX_IA_PUSHAD16 },
/* 61 /wr */ { 0, BX_IA_POPAD16 },
2010-05-13 09:38:24 +04:00
/* 61 /wm */ { 0, BX_IA_POPAD16 },
/* 62 /wr */ { 0, BX_IA_ERROR }, // BOUND
2010-05-13 09:38:24 +04:00
/* 62 /wm */ { 0, BX_IA_BOUND_GwMa },
/* 63 /wr */ { 0, BX_IA_ARPL_EwGw },
2010-05-13 09:38:24 +04:00
/* 63 /wm */ { 0, BX_IA_ARPL_EwGw },
/* 64 /wr */ { 0, BX_IA_ERROR }, // FS:
2010-05-13 09:38:24 +04:00
/* 64 /wm */ { 0, BX_IA_ERROR }, // FS:
/* 65 /wr */ { 0, BX_IA_ERROR }, // GS:
2010-05-13 09:38:24 +04:00
/* 65 /wm */ { 0, BX_IA_ERROR }, // GS:
/* 66 /wr */ { 0, BX_IA_ERROR }, // OS:
2010-05-13 09:38:24 +04:00
/* 66 /wm */ { 0, BX_IA_ERROR }, // OS:
/* 67 /wr */ { 0, BX_IA_ERROR }, // AS:
2010-05-13 09:38:24 +04:00
/* 67 /wm */ { 0, BX_IA_ERROR }, // AS:
/* 68 /wr */ { BxImmediate_Iw, BX_IA_PUSH_Iw },
2010-05-13 09:38:24 +04:00
/* 68 /wm */ { BxImmediate_Iw, BX_IA_PUSH_Iw },
/* 69 /wr */ { BxImmediate_Iw, BX_IA_IMUL_GwEwIwR },
2010-05-13 09:38:24 +04:00
/* 69 /wm */ { BxImmediate_Iw, BX_IA_IMUL_GwEwIwM },
/* 6A /wr */ { BxImmediate_Ib_SE, BX_IA_PUSH_Iw },
2010-05-13 09:38:24 +04:00
/* 6A /wm */ { BxImmediate_Ib_SE, BX_IA_PUSH_Iw },
/* 6B /wr */ { BxImmediate_Ib_SE, BX_IA_IMUL_GwEwIwR },
2010-05-13 09:38:24 +04:00
/* 6B /wm */ { BxImmediate_Ib_SE, BX_IA_IMUL_GwEwIwM },
/* 6C /wr */ { 0, BX_IA_REP_INSB_YbDX },
2010-05-13 09:38:24 +04:00
/* 6C /wm */ { 0, BX_IA_REP_INSB_YbDX },
/* 6D /wr */ { 0, BX_IA_REP_INSW_YwDX },
2010-05-13 09:38:24 +04:00
/* 6D /wm */ { 0, BX_IA_REP_INSW_YwDX },
/* 6E /wr */ { 0, BX_IA_REP_OUTSB_DXXb },
2010-05-13 09:38:24 +04:00
/* 6E /wm */ { 0, BX_IA_REP_OUTSB_DXXb },
/* 6F /wr */ { 0, BX_IA_REP_OUTSW_DXXw },
2010-05-13 09:38:24 +04:00
/* 6F /wm */ { 0, BX_IA_REP_OUTSW_DXXw },
/* 70 /wr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JO_Jw },
2010-05-13 09:38:24 +04:00
/* 70 /wm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JO_Jw },
/* 71 /wr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNO_Jw },
2010-05-13 09:38:24 +04:00
/* 71 /wm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNO_Jw },
/* 72 /wr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JB_Jw },
2010-05-13 09:38:24 +04:00
/* 72 /wm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JB_Jw },
/* 73 /wr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNB_Jw },
2010-05-13 09:38:24 +04:00
/* 73 /wm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNB_Jw },
/* 74 /wr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JZ_Jw },
2010-05-13 09:38:24 +04:00
/* 74 /wm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JZ_Jw },
/* 75 /wr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNZ_Jw },
2010-05-13 09:38:24 +04:00
/* 75 /wm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNZ_Jw },
/* 76 /wr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JBE_Jw },
2010-05-13 09:38:24 +04:00
/* 76 /wm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JBE_Jw },
/* 77 /wr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNBE_Jw },
2010-05-13 09:38:24 +04:00
/* 77 /wm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNBE_Jw },
/* 78 /wr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JS_Jw },
2010-05-13 09:38:24 +04:00
/* 78 /wm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JS_Jw },
/* 79 /wr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNS_Jw },
2010-05-13 09:38:24 +04:00
/* 79 /wm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNS_Jw },
/* 7A /wr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JP_Jw },
2010-05-13 09:38:24 +04:00
/* 7A /wm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JP_Jw },
/* 7B /wr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNP_Jw },
2010-05-13 09:38:24 +04:00
/* 7B /wm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNP_Jw },
/* 7C /wr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JL_Jw },
2010-05-13 09:38:24 +04:00
/* 7C /wm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JL_Jw },
/* 7D /wr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNL_Jw },
2010-05-13 09:38:24 +04:00
/* 7D /wm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNL_Jw },
/* 7E /wr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JLE_Jw },
2010-05-13 09:38:24 +04:00
/* 7E /wm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JLE_Jw },
/* 7F /wr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNLE_Jw },
2010-05-13 09:38:24 +04:00
/* 7F /wm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNLE_Jw },
/* 80 /wr */ { BxGroup1 | BxImmediate_Ib, BX_IA_ERROR, BxOpcodeInfoG1EbIbR },
2010-05-13 09:38:24 +04:00
/* 80 /wm */ { BxGroup1 | BxImmediate_Ib, BX_IA_ERROR, BxOpcodeInfoG1EbIbM },
/* 81 /wr */ { BxGroup1 | BxImmediate_Iw, BX_IA_ERROR, BxOpcodeInfoG1EwR },
2010-05-13 09:38:24 +04:00
/* 81 /wm */ { BxGroup1 | BxImmediate_Iw, BX_IA_ERROR, BxOpcodeInfoG1EwM },
/* 82 /wr */ { BxGroup1 | BxImmediate_Ib, BX_IA_ERROR, BxOpcodeInfoG1EbIbR },
2010-05-13 09:38:24 +04:00
/* 82 /wm */ { BxGroup1 | BxImmediate_Ib, BX_IA_ERROR, BxOpcodeInfoG1EbIbM },
/* 83 /wr */ { BxGroup1 | BxImmediate_Ib_SE, BX_IA_ERROR, BxOpcodeInfoG1EwR },
2010-05-13 09:38:24 +04:00
/* 83 /wm */ { BxGroup1 | BxImmediate_Ib_SE, BX_IA_ERROR, BxOpcodeInfoG1EwM },
/* 84 /wr */ { 0, BX_IA_TEST_EbGbR },
2010-05-13 09:38:24 +04:00
/* 84 /wm */ { 0, BX_IA_TEST_EbGbM },
/* 85 /wr */ { 0, BX_IA_TEST_EwGwR },
2010-05-13 09:38:24 +04:00
/* 85 /wm */ { 0, BX_IA_TEST_EwGwM },
/* 86 /wr */ { 0, BX_IA_XCHG_EbGbR },
2010-05-13 09:38:24 +04:00
/* 86 /wm */ { BxLockable, BX_IA_XCHG_EbGbM },
/* 87 /wr */ { 0, BX_IA_XCHG_EwGwR },
2010-05-13 09:38:24 +04:00
/* 87 /wm */ { BxLockable, BX_IA_XCHG_EwGwM },
/* 88 /wr */ { BxArithDstRM, BX_IA_MOV_GbEbR },
2010-05-13 09:38:24 +04:00
/* 88 /wm */ { 0, BX_IA_MOV_EbGbM },
/* 89 /wr */ { BxArithDstRM, BX_IA_MOV_GwEwR },
2010-05-13 09:38:24 +04:00
/* 89 /wm */ { 0, BX_IA_MOV_EwGwM },
/* 8A /wr */ { 0, BX_IA_MOV_GbEbR },
2010-05-13 09:38:24 +04:00
/* 8A /wm */ { 0, BX_IA_MOV_GbEbM },
/* 8B /wr */ { 0, BX_IA_MOV_GwEwR },
2010-05-13 09:38:24 +04:00
/* 8B /wm */ { 0, BX_IA_MOV_GwEwM },
/* 8C /wr */ { 0, BX_IA_MOV_EwSwR },
2010-05-13 09:38:24 +04:00
/* 8C /wm */ { 0, BX_IA_MOV_EwSwM },
/* 8D /wr */ { 0, BX_IA_ERROR }, // LEA
2010-05-13 09:38:24 +04:00
/* 8D /wm */ { 0, BX_IA_LEA_GwM },
/* 8E /wr */ { 0, BX_IA_MOV_SwEw },
2010-05-13 09:38:24 +04:00
/* 8E /wm */ { 0, BX_IA_MOV_SwEw },
2008-05-01 01:32:33 +04:00
/* 8F /wr */ { BxGroup1A, BX_IA_ERROR, BxOpcodeInfoG1AEwR },
2010-05-13 09:38:24 +04:00
/* 8F /wm */ { BxGroup1A, BX_IA_ERROR, BxOpcodeInfoG1AEwM },
/* 90 /wr */ { BxPrefixSSE, BX_IA_NOP, BxOpcodeGroupSSE_PAUSE },
2010-05-13 09:38:24 +04:00
/* 90 /wm */ { BxPrefixSSE, BX_IA_NOP, BxOpcodeGroupSSE_PAUSE },
/* 91 /wr */ { 0, BX_IA_XCHG_RXAX },
2010-05-13 09:38:24 +04:00
/* 91 /wm */ { 0, BX_IA_XCHG_RXAX },
/* 92 /wr */ { 0, BX_IA_XCHG_RXAX },
2010-05-13 09:38:24 +04:00
/* 92 /wm */ { 0, BX_IA_XCHG_RXAX },
/* 93 /wr */ { 0, BX_IA_XCHG_RXAX },
2010-05-13 09:38:24 +04:00
/* 93 /wm */ { 0, BX_IA_XCHG_RXAX },
/* 94 /wr */ { 0, BX_IA_XCHG_RXAX },
2010-05-13 09:38:24 +04:00
/* 94 /wm */ { 0, BX_IA_XCHG_RXAX },
/* 95 /wr */ { 0, BX_IA_XCHG_RXAX },
2010-05-13 09:38:24 +04:00
/* 95 /wm */ { 0, BX_IA_XCHG_RXAX },
/* 96 /wr */ { 0, BX_IA_XCHG_RXAX },
2010-05-13 09:38:24 +04:00
/* 96 /wm */ { 0, BX_IA_XCHG_RXAX },
/* 97 /wr */ { 0, BX_IA_XCHG_RXAX },
2010-05-13 09:38:24 +04:00
/* 97 /wm */ { 0, BX_IA_XCHG_RXAX },
/* 98 /wr */ { 0, BX_IA_CBW },
2010-05-13 09:38:24 +04:00
/* 98 /wm */ { 0, BX_IA_CBW },
/* 99 /wr */ { 0, BX_IA_CWD },
2010-05-13 09:38:24 +04:00
/* 99 /wm */ { 0, BX_IA_CWD },
2008-08-24 02:27:58 +04:00
/* 9A /wr */ { BxImmediate_IwIw | BxTraceEnd, BX_IA_CALL16_Ap },
2010-05-13 09:38:24 +04:00
/* 9A /wm */ { BxImmediate_IwIw | BxTraceEnd, BX_IA_CALL16_Ap },
/* 9B /wr */ { 0, BX_IA_FWAIT },
2010-05-13 09:38:24 +04:00
/* 9B /wm */ { 0, BX_IA_FWAIT },
/* 9C /wr */ { 0, BX_IA_PUSHF_Fw },
2010-05-13 09:38:24 +04:00
/* 9C /wm */ { 0, BX_IA_PUSHF_Fw },
/* 9D /wr */ { 0, BX_IA_POPF_Fw },
2010-05-13 09:38:24 +04:00
/* 9D /wm */ { 0, BX_IA_POPF_Fw },
/* 9E /wr */ { 0, BX_IA_SAHF },
2010-05-13 09:38:24 +04:00
/* 9E /wm */ { 0, BX_IA_SAHF },
/* 9F /wr */ { 0, BX_IA_LAHF },
2010-05-13 09:38:24 +04:00
/* 9F /wm */ { 0, BX_IA_LAHF },
/* A0 /wr */ { BxImmediate_O, BX_IA_MOV_ALOd },
2010-05-13 09:38:24 +04:00
/* A0 /wm */ { BxImmediate_O, BX_IA_MOV_ALOd },
/* A1 /wr */ { BxImmediate_O, BX_IA_MOV_AXOd },
2010-05-13 09:38:24 +04:00
/* A1 /wm */ { BxImmediate_O, BX_IA_MOV_AXOd },
/* A2 /wr */ { BxImmediate_O, BX_IA_MOV_OdAL },
2010-05-13 09:38:24 +04:00
/* A2 /wm */ { BxImmediate_O, BX_IA_MOV_OdAL },
/* A3 /wr */ { BxImmediate_O, BX_IA_MOV_OdAX },
2010-05-13 09:38:24 +04:00
/* A3 /wm */ { BxImmediate_O, BX_IA_MOV_OdAX },
/* A4 /wr */ { 0, BX_IA_REP_MOVSB_XbYb },
2010-05-13 09:38:24 +04:00
/* A4 /wm */ { 0, BX_IA_REP_MOVSB_XbYb },
/* A5 /wr */ { 0, BX_IA_REP_MOVSW_XwYw },
2010-05-13 09:38:24 +04:00
/* A5 /wm */ { 0, BX_IA_REP_MOVSW_XwYw },
/* A6 /wr */ { 0, BX_IA_REP_CMPSB_XbYb },
2010-05-13 09:38:24 +04:00
/* A6 /wm */ { 0, BX_IA_REP_CMPSB_XbYb },
/* A7 /wr */ { 0, BX_IA_REP_CMPSW_XwYw },
2010-05-13 09:38:24 +04:00
/* A7 /wm */ { 0, BX_IA_REP_CMPSW_XwYw },
/* A8 /wr */ { BxImmediate_Ib, BX_IA_TEST_ALIb },
2010-05-13 09:38:24 +04:00
/* A8 /wm */ { BxImmediate_Ib, BX_IA_TEST_ALIb },
/* A9 /wr */ { BxImmediate_Iw, BX_IA_TEST_AXIw },
2010-05-13 09:38:24 +04:00
/* A9 /wm */ { BxImmediate_Iw, BX_IA_TEST_AXIw },
/* AA /wr */ { 0, BX_IA_REP_STOSB_YbAL },
2010-05-13 09:38:24 +04:00
/* AA /wm */ { 0, BX_IA_REP_STOSB_YbAL },
/* AB /wr */ { 0, BX_IA_REP_STOSW_YwAX },
2010-05-13 09:38:24 +04:00
/* AB /wm */ { 0, BX_IA_REP_STOSW_YwAX },
/* AC /wr */ { 0, BX_IA_REP_LODSB_ALXb },
2010-05-13 09:38:24 +04:00
/* AC /wm */ { 0, BX_IA_REP_LODSB_ALXb },
/* AD /wr */ { 0, BX_IA_REP_LODSW_AXXw },
2010-05-13 09:38:24 +04:00
/* AD /wm */ { 0, BX_IA_REP_LODSW_AXXw },
/* AE /wr */ { 0, BX_IA_REP_SCASB_ALXb },
2010-05-13 09:38:24 +04:00
/* AE /wm */ { 0, BX_IA_REP_SCASB_ALXb },
/* AF /wr */ { 0, BX_IA_REP_SCASW_AXXw },
2010-05-13 09:38:24 +04:00
/* AF /wm */ { 0, BX_IA_REP_SCASW_AXXw },
/* B0 /wr */ { BxImmediate_Ib, BX_IA_MOV_RLIb },
2010-05-13 09:38:24 +04:00
/* B0 /wm */ { BxImmediate_Ib, BX_IA_MOV_RLIb },
/* B1 /wr */ { BxImmediate_Ib, BX_IA_MOV_RLIb },
2010-05-13 09:38:24 +04:00
/* B1 /wm */ { BxImmediate_Ib, BX_IA_MOV_RLIb },
/* B2 /wr */ { BxImmediate_Ib, BX_IA_MOV_RLIb },
2010-05-13 09:38:24 +04:00
/* B2 /wm */ { BxImmediate_Ib, BX_IA_MOV_RLIb },
/* B3 /wr */ { BxImmediate_Ib, BX_IA_MOV_RLIb },
2010-05-13 09:38:24 +04:00
/* B3 /wm */ { BxImmediate_Ib, BX_IA_MOV_RLIb },
/* B4 /wr */ { BxImmediate_Ib, BX_IA_MOV_RHIb },
2010-05-13 09:38:24 +04:00
/* B4 /wm */ { BxImmediate_Ib, BX_IA_MOV_RHIb },
/* B5 /wr */ { BxImmediate_Ib, BX_IA_MOV_RHIb },
2010-05-13 09:38:24 +04:00
/* B5 /wm */ { BxImmediate_Ib, BX_IA_MOV_RHIb },
/* B6 /wr */ { BxImmediate_Ib, BX_IA_MOV_RHIb },
2010-05-13 09:38:24 +04:00
/* B6 /wm */ { BxImmediate_Ib, BX_IA_MOV_RHIb },
/* B7 /wr */ { BxImmediate_Ib, BX_IA_MOV_RHIb },
2010-05-13 09:38:24 +04:00
/* B7 /wm */ { BxImmediate_Ib, BX_IA_MOV_RHIb },
/* B8 /wr */ { BxImmediate_Iw, BX_IA_MOV_RXIw },
2010-05-13 09:38:24 +04:00
/* B8 /wm */ { BxImmediate_Iw, BX_IA_MOV_RXIw },
/* B9 /wr */ { BxImmediate_Iw, BX_IA_MOV_RXIw },
2010-05-13 09:38:24 +04:00
/* B9 /wm */ { BxImmediate_Iw, BX_IA_MOV_RXIw },
/* BA /wr */ { BxImmediate_Iw, BX_IA_MOV_RXIw },
2010-05-13 09:38:24 +04:00
/* BA /wm */ { BxImmediate_Iw, BX_IA_MOV_RXIw },
/* BB /wr */ { BxImmediate_Iw, BX_IA_MOV_RXIw },
2010-05-13 09:38:24 +04:00
/* BB /wm */ { BxImmediate_Iw, BX_IA_MOV_RXIw },
/* BC /wr */ { BxImmediate_Iw, BX_IA_MOV_RXIw },
2010-05-13 09:38:24 +04:00
/* BC /wm */ { BxImmediate_Iw, BX_IA_MOV_RXIw },
/* BD /wr */ { BxImmediate_Iw, BX_IA_MOV_RXIw },
2010-05-13 09:38:24 +04:00
/* BD /wm */ { BxImmediate_Iw, BX_IA_MOV_RXIw },
/* BE /wr */ { BxImmediate_Iw, BX_IA_MOV_RXIw },
2010-05-13 09:38:24 +04:00
/* BE /wm */ { BxImmediate_Iw, BX_IA_MOV_RXIw },
/* BF /wr */ { BxImmediate_Iw, BX_IA_MOV_RXIw },
2010-05-13 09:38:24 +04:00
/* BF /wm */ { BxImmediate_Iw, BX_IA_MOV_RXIw },
/* C0 /wr */ { BxGroup2 | BxImmediate_Ib, BX_IA_ERROR, BxOpcodeInfoG2EbR },
/* C0 /wm */ { BxGroup2 | BxImmediate_Ib, BX_IA_ERROR, BxOpcodeInfoG2EbM },
/* C1 /wr */ { BxGroup2 | BxImmediate_Ib, BX_IA_ERROR, BxOpcodeInfoG2EwR },
/* C1 /wm */ { BxGroup2 | BxImmediate_Ib, BX_IA_ERROR, BxOpcodeInfoG2EwM },
/* C2 /wr */ { BxImmediate_Iw | BxTraceEnd, BX_IA_RETnear16_Iw },
2010-05-13 09:38:24 +04:00
/* C2 /wm */ { BxImmediate_Iw | BxTraceEnd, BX_IA_RETnear16_Iw },
/* C3 /wr */ { BxTraceEnd, BX_IA_RETnear16 },
2010-05-13 09:38:24 +04:00
/* C3 /wm */ { BxTraceEnd, BX_IA_RETnear16 },
/* C4 /wr */ { 0, BX_IA_ERROR }, // LES
2010-05-13 09:38:24 +04:00
/* C4 /wm */ { 0, BX_IA_LES_GwMp },
/* C5 /wr */ { 0, BX_IA_ERROR }, // LDS
2010-05-13 09:38:24 +04:00
/* C5 /wm */ { 0, BX_IA_LDS_GwMp },
/* C6 /wr */ { BxGroup11, BX_IA_ERROR, BxOpcodeInfoG11EbR },
2010-05-13 09:38:24 +04:00
/* C6 /wm */ { BxGroup11, BX_IA_ERROR, BxOpcodeInfoG11EbM },
/* C7 /wr */ { BxGroup11, BX_IA_ERROR, BxOpcodeInfoG11EwR },
2010-05-13 09:38:24 +04:00
/* C7 /wm */ { BxGroup11, BX_IA_ERROR, BxOpcodeInfoG11EwM },
/* C8 /wr */ { BxImmediate_IwIb, BX_IA_ENTER16_IwIb },
2010-05-13 09:38:24 +04:00
/* C8 /wm */ { BxImmediate_IwIb, BX_IA_ENTER16_IwIb },
2008-08-28 01:57:40 +04:00
/* C9 /wr */ { 0, BX_IA_LEAVE16 },
2010-05-13 09:38:24 +04:00
/* C9 /wm */ { 0, BX_IA_LEAVE16 },
/* CA /wr */ { BxImmediate_Iw | BxTraceEnd, BX_IA_RETfar16_Iw },
2010-05-13 09:38:24 +04:00
/* CA /wm */ { BxImmediate_Iw | BxTraceEnd, BX_IA_RETfar16_Iw },
/* CB /wr */ { BxTraceEnd, BX_IA_RETfar16 },
2010-05-13 09:38:24 +04:00
/* CB /wm */ { BxTraceEnd, BX_IA_RETfar16 },
/* CC /wr */ { BxTraceEnd, BX_IA_INT3 },
2010-05-13 09:38:24 +04:00
/* CC /wm */ { BxTraceEnd, BX_IA_INT3 },
/* CD /wr */ { BxImmediate_Ib | BxTraceEnd, BX_IA_INT_Ib },
2010-05-13 09:38:24 +04:00
/* CD /wm */ { BxImmediate_Ib | BxTraceEnd, BX_IA_INT_Ib },
/* CE /wr */ { BxTraceEnd, BX_IA_INTO },
2010-05-13 09:38:24 +04:00
/* CE /wm */ { BxTraceEnd, BX_IA_INTO },
/* CF /wr */ { BxTraceEnd, BX_IA_IRET16 },
2010-05-13 09:38:24 +04:00
/* CF /wm */ { BxTraceEnd, BX_IA_IRET16 },
/* D0 /wr */ { BxGroup2 | BxImmediate_I1, BX_IA_ERROR, BxOpcodeInfoG2EbR },
/* D0 /wm */ { BxGroup2 | BxImmediate_I1, BX_IA_ERROR, BxOpcodeInfoG2EbM },
/* D1 /wr */ { BxGroup2 | BxImmediate_I1, BX_IA_ERROR, BxOpcodeInfoG2EwR },
/* D1 /wm */ { BxGroup2 | BxImmediate_I1, BX_IA_ERROR, BxOpcodeInfoG2EwM },
/* D2 /wr */ { BxGroup2, BX_IA_ERROR, BxOpcodeInfoG2EbR },
/* D2 /wm */ { BxGroup2, BX_IA_ERROR, BxOpcodeInfoG2EbM },
/* D3 /wr */ { BxGroup2, BX_IA_ERROR, BxOpcodeInfoG2EwR },
/* D3 /wm */ { BxGroup2, BX_IA_ERROR, BxOpcodeInfoG2EwM },
/* D4 /wr */ { BxImmediate_Ib, BX_IA_AAM },
2010-05-13 09:38:24 +04:00
/* D4 /wm */ { BxImmediate_Ib, BX_IA_AAM },
/* D5 /wr */ { BxImmediate_Ib, BX_IA_AAD },
2010-05-13 09:38:24 +04:00
/* D5 /wm */ { BxImmediate_Ib, BX_IA_AAD },
/* D6 /wr */ { 0, BX_IA_SALC },
2010-05-13 09:38:24 +04:00
/* D6 /wm */ { 0, BX_IA_SALC },
/* D7 /wr */ { 0, BX_IA_XLAT },
2010-05-13 09:38:24 +04:00
/* D7 /wm */ { 0, BX_IA_XLAT },
#if BX_SUPPORT_FPU
2010-04-16 23:52:44 +04:00
/* D8 /wr */ { BxGroupN, BX_IA_ERROR, BxOpcodeInfo_FloatingPointD8 },
2010-05-13 09:38:24 +04:00
/* D8 /wm */ { BxGroupFP, BX_IA_ERROR, BxOpcodeInfo_FPGroupD8 },
2008-09-16 22:28:53 +04:00
/* D9 /wr */ { BxFPEscape, BX_IA_ERROR, BxOpcodeInfo_FloatingPointD9 },
2010-05-13 09:38:24 +04:00
/* D9 /wm */ { BxGroupFP, BX_IA_ERROR, BxOpcodeInfo_FPGroupD9 },
2008-09-16 22:28:53 +04:00
/* DA /wr */ { BxFPEscape, BX_IA_ERROR, BxOpcodeInfo_FloatingPointDA },
2010-05-13 09:38:24 +04:00
/* DA /wm */ { BxGroupFP, BX_IA_ERROR, BxOpcodeInfo_FPGroupDA },
2008-09-16 22:28:53 +04:00
/* DB /wr */ { BxFPEscape, BX_IA_ERROR, BxOpcodeInfo_FloatingPointDB },
2010-05-13 09:38:24 +04:00
/* DB /wm */ { BxGroupFP, BX_IA_ERROR, BxOpcodeInfo_FPGroupDB },
2010-04-16 23:52:44 +04:00
/* DC /wr */ { BxGroupN, BX_IA_ERROR, BxOpcodeInfo_FloatingPointDC },
2010-05-13 09:38:24 +04:00
/* DC /wm */ { BxGroupFP, BX_IA_ERROR, BxOpcodeInfo_FPGroupDC },
2010-04-16 23:52:44 +04:00
/* DD /wr */ { BxGroupN, BX_IA_ERROR, BxOpcodeInfo_FloatingPointDD },
2010-05-13 09:38:24 +04:00
/* DD /wm */ { BxGroupFP, BX_IA_ERROR, BxOpcodeInfo_FPGroupDD },
2008-09-16 22:28:53 +04:00
/* DE /wr */ { BxFPEscape, BX_IA_ERROR, BxOpcodeInfo_FloatingPointDE },
2010-05-13 09:38:24 +04:00
/* DE /wm */ { BxGroupFP, BX_IA_ERROR, BxOpcodeInfo_FPGroupDE },
2008-09-16 22:28:53 +04:00
/* DF /wr */ { BxFPEscape, BX_IA_ERROR, BxOpcodeInfo_FloatingPointDF },
2010-05-13 09:38:24 +04:00
/* DF /wm */ { BxGroupFP, BX_IA_ERROR, BxOpcodeInfo_FPGroupDF },
#else
/* D8 /wr */ { 0, BX_IA_FPU_ESC },
2010-05-13 09:38:24 +04:00
/* D8 /wm */ { 0, BX_IA_FPU_ESC },
/* D9 /wr */ { 0, BX_IA_FPU_ESC },
2010-05-13 09:38:24 +04:00
/* D9 /wm */ { 0, BX_IA_FPU_ESC },
/* DA /wr */ { 0, BX_IA_FPU_ESC },
2010-05-13 09:38:24 +04:00
/* DA /wm */ { 0, BX_IA_FPU_ESC },
/* DB /wr */ { 0, BX_IA_FPU_ESC },
2010-05-13 09:38:24 +04:00
/* DB /wm */ { 0, BX_IA_FPU_ESC },
/* DC /wr */ { 0, BX_IA_FPU_ESC },
2010-05-13 09:38:24 +04:00
/* DC /wm */ { 0, BX_IA_FPU_ESC },
/* DD /wr */ { 0, BX_IA_FPU_ESC },
2010-05-13 09:38:24 +04:00
/* DD /wm */ { 0, BX_IA_FPU_ESC },
/* DE /wr */ { 0, BX_IA_FPU_ESC },
2010-05-13 09:38:24 +04:00
/* DE /wm */ { 0, BX_IA_FPU_ESC },
/* DF /wr */ { 0, BX_IA_FPU_ESC },
2010-05-13 09:38:24 +04:00
/* DF /wm */ { 0, BX_IA_FPU_ESC },
#endif
/* E0 /wr */ { BxImmediate_BrOff8 | BxTraceEnd, BX_IA_LOOPNE16_Jb },
2010-05-13 09:38:24 +04:00
/* E0 /wm */ { BxImmediate_BrOff8 | BxTraceEnd, BX_IA_LOOPNE16_Jb },
/* E1 /wr */ { BxImmediate_BrOff8 | BxTraceEnd, BX_IA_LOOPE16_Jb },
2010-05-13 09:38:24 +04:00
/* E1 /wm */ { BxImmediate_BrOff8 | BxTraceEnd, BX_IA_LOOPE16_Jb },
/* E2 /wr */ { BxImmediate_BrOff8 | BxTraceEnd, BX_IA_LOOP16_Jb },
2010-05-13 09:38:24 +04:00
/* E2 /wm */ { BxImmediate_BrOff8 | BxTraceEnd, BX_IA_LOOP16_Jb },
/* E3 /wr */ { BxImmediate_BrOff8 | BxTraceEnd, BX_IA_JCXZ_Jb },
2010-05-13 09:38:24 +04:00
/* E3 /wm */ { BxImmediate_BrOff8 | BxTraceEnd, BX_IA_JCXZ_Jb },
/* E4 /wr */ { BxImmediate_Ib, BX_IA_IN_ALIb },
2010-05-13 09:38:24 +04:00
/* E4 /wm */ { BxImmediate_Ib, BX_IA_IN_ALIb },
/* E5 /wr */ { BxImmediate_Ib, BX_IA_IN_AXIb },
2010-05-13 09:38:24 +04:00
/* E5 /wm */ { BxImmediate_Ib, BX_IA_IN_AXIb },
/* E6 /wr */ { BxImmediate_Ib, BX_IA_OUT_IbAL },
2010-05-13 09:38:24 +04:00
/* E6 /wm */ { BxImmediate_Ib, BX_IA_OUT_IbAL },
/* E7 /wr */ { BxImmediate_Ib, BX_IA_OUT_IbAX },
2010-05-13 09:38:24 +04:00
/* E7 /wm */ { BxImmediate_Ib, BX_IA_OUT_IbAX },
/* E8 /wr */ { BxImmediate_BrOff16 | BxTraceEnd, BX_IA_CALL_Jw },
2010-05-13 09:38:24 +04:00
/* E8 /wm */ { BxImmediate_BrOff16 | BxTraceEnd, BX_IA_CALL_Jw },
/* E9 /wr */ { BxImmediate_BrOff16 | BxTraceEnd, BX_IA_JMP_Jw },
2010-05-13 09:38:24 +04:00
/* E9 /wm */ { BxImmediate_BrOff16 | BxTraceEnd, BX_IA_JMP_Jw },
2008-08-24 02:27:58 +04:00
/* EA /wr */ { BxImmediate_IwIw | BxTraceEnd, BX_IA_JMP_Ap },
2010-05-13 09:38:24 +04:00
/* EA /wm */ { BxImmediate_IwIw | BxTraceEnd, BX_IA_JMP_Ap },
/* EB /wr */ { BxImmediate_BrOff8 | BxTraceEnd, BX_IA_JMP_Jw },
2010-05-13 09:38:24 +04:00
/* EB /wm */ { BxImmediate_BrOff8 | BxTraceEnd, BX_IA_JMP_Jw },
/* EC /wr */ { 0, BX_IA_IN_ALDX },
2010-05-13 09:38:24 +04:00
/* EC /wm */ { 0, BX_IA_IN_ALDX },
/* ED /wr */ { 0, BX_IA_IN_AXDX },
2010-05-13 09:38:24 +04:00
/* ED /wm */ { 0, BX_IA_IN_AXDX },
/* EE /wr */ { 0, BX_IA_OUT_DXAL },
2010-05-13 09:38:24 +04:00
/* EE /wm */ { 0, BX_IA_OUT_DXAL },
/* EF /wr */ { 0, BX_IA_OUT_DXAX },
2010-05-13 09:38:24 +04:00
/* EF /wm */ { 0, BX_IA_OUT_DXAX },
/* F0 /wr */ { 0, BX_IA_ERROR }, // LOCK
2010-05-13 09:38:24 +04:00
/* F0 /wm */ { 0, BX_IA_ERROR }, // LOCK
/* F1 /wr */ { BxTraceEnd, BX_IA_INT1 },
2010-05-13 09:38:24 +04:00
/* F1 /wm */ { BxTraceEnd, BX_IA_INT1 },
/* F2 /wr */ { 0, BX_IA_ERROR }, // REPNE/REPNZ
2010-05-13 09:38:24 +04:00
/* F2 /wm */ { 0, BX_IA_ERROR }, // REPNE/REPNZ
/* F3 /wr */ { 0, BX_IA_ERROR }, // REP, REPE/REPZ
2010-05-13 09:38:24 +04:00
/* F3 /wm */ { 0, BX_IA_ERROR }, // REP, REPE/REPZ
/* F4 /wr */ { BxTraceEnd, BX_IA_HLT },
2010-05-13 09:38:24 +04:00
/* F4 /wm */ { BxTraceEnd, BX_IA_HLT },
/* F5 /wr */ { 0, BX_IA_CMC },
2010-05-13 09:38:24 +04:00
/* F5 /wm */ { 0, BX_IA_CMC },
/* F6 /wr */ { BxGroup3, BX_IA_ERROR, BxOpcodeInfoG3EbR },
2010-05-13 09:38:24 +04:00
/* F6 /wm */ { BxGroup3, BX_IA_ERROR, BxOpcodeInfoG3EbM },
/* F7 /wr */ { BxGroup3, BX_IA_ERROR, BxOpcodeInfoG3EwR },
2010-05-13 09:38:24 +04:00
/* F7 /wm */ { BxGroup3, BX_IA_ERROR, BxOpcodeInfoG3EwM },
/* F8 /wr */ { 0, BX_IA_CLC },
2010-05-13 09:38:24 +04:00
/* F8 /wm */ { 0, BX_IA_CLC },
/* F9 /wr */ { 0, BX_IA_STC },
2010-05-13 09:38:24 +04:00
/* F9 /wm */ { 0, BX_IA_STC },
/* FA /wr */ { 0, BX_IA_CLI },
2010-05-13 09:38:24 +04:00
/* FA /wm */ { 0, BX_IA_CLI },
/* FB /wr */ { 0, BX_IA_STI },
2010-05-13 09:38:24 +04:00
/* FB /wm */ { 0, BX_IA_STI },
/* FC /wr */ { 0, BX_IA_CLD },
2010-05-13 09:38:24 +04:00
/* FC /wm */ { 0, BX_IA_CLD },
/* FD /wr */ { 0, BX_IA_STD },
2010-05-13 09:38:24 +04:00
/* FD /wm */ { 0, BX_IA_STD },
/* FE /wr */ { BxGroup4, BX_IA_ERROR, BxOpcodeInfoG4R },
2010-05-13 09:38:24 +04:00
/* FE /wm */ { BxGroup4, BX_IA_ERROR, BxOpcodeInfoG4M },
/* FF /wr */ { BxGroup5, BX_IA_ERROR, BxOpcodeInfoG5wR },
2010-05-13 09:38:24 +04:00
/* FF /wm */ { BxGroup5, BX_IA_ERROR, BxOpcodeInfoG5wM },
/* 0F 00 /wr */ { BxGroup6, BX_IA_ERROR, BxOpcodeInfoG6 },
2010-05-13 09:38:24 +04:00
/* 0F 00 /wm */ { BxGroup6, BX_IA_ERROR, BxOpcodeInfoG6 },
2009-01-10 19:01:55 +03:00
/* 0F 01 /wr */ { BxFPEscape, BX_IA_ERROR, BxOpcodeInfoG7R },
2010-05-13 09:38:24 +04:00
/* 0F 01 /wm */ { BxGroup7, BX_IA_ERROR, BxOpcodeInfoG7M },
/* 0F 02 /wr */ { 0, BX_IA_LAR_GvEw },
2010-05-13 09:38:24 +04:00
/* 0F 02 /wm */ { 0, BX_IA_LAR_GvEw },
/* 0F 03 /wr */ { 0, BX_IA_LSL_GvEw },
2010-05-13 09:38:24 +04:00
/* 0F 03 /wm */ { 0, BX_IA_LSL_GvEw },
/* 0F 04 /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 04 /wm */ { 0, BX_IA_ERROR },
#if BX_SUPPORT_X86_64
/* 0F 05 /wr */ { BxTraceEnd, BX_IA_SYSCALL },
2010-05-13 09:38:24 +04:00
/* 0F 05 /wm */ { BxTraceEnd, BX_IA_SYSCALL },
2004-05-11 20:44:58 +04:00
#elif BX_CPU_LEVEL == 2
/* 0F 05 /wr */ { BxTraceEnd, BX_IA_LOADALL },
2010-05-13 09:38:24 +04:00
/* 0F 05 /wm */ { BxTraceEnd, BX_IA_LOADALL },
#else
/* 0F 05 /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 05 /wm */ { 0, BX_IA_ERROR },
#endif
/* 0F 06 /wr */ { 0, BX_IA_CLTS },
2010-05-13 09:38:24 +04:00
/* 0F 06 /wm */ { 0, BX_IA_CLTS },
#if BX_SUPPORT_X86_64
/* 0F 07 /wr */ { BxTraceEnd, BX_IA_SYSRET },
2010-05-13 09:38:24 +04:00
/* 0F 07 /wm */ { BxTraceEnd, BX_IA_SYSRET },
#else
/* 0F 07 /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 07 /wm */ { 0, BX_IA_ERROR },
#endif
/* 0F 08 /wr */ { BxTraceEnd, BX_IA_INVD },
2010-05-13 09:38:24 +04:00
/* 0F 08 /wm */ { BxTraceEnd, BX_IA_INVD },
/* 0F 09 /wr */ { BxTraceEnd, BX_IA_WBINVD },
2010-05-13 09:38:24 +04:00
/* 0F 09 /wm */ { BxTraceEnd, BX_IA_WBINVD },
/* 0F 0A /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 0A /wm */ { 0, BX_IA_ERROR },
/* 0F 0B /wr */ { BxTraceEnd, BX_IA_UD2A },
2010-05-13 09:38:24 +04:00
/* 0F 0B /wm */ { BxTraceEnd, BX_IA_UD2A },
/* 0F 0C /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 0C /wm */ { 0, BX_IA_ERROR },
/* 0F 0D /wr */ { 0, BX_IA_PREFETCHW }, // 3DNow! PREFETCH on AMD, NOP on Intel
2010-05-13 09:38:24 +04:00
/* 0F 0D /wm */ { 0, BX_IA_PREFETCHW }, // 3DNow! PREFETCH on AMD, NOP on Intel
/* 0F 0E /wr */ { 0, BX_IA_FEMMS }, // 3DNow! FEMMS
2010-05-13 09:38:24 +04:00
/* 0F 0E /wm */ { 0, BX_IA_FEMMS }, // 3DNow! FEMMS
2003-05-15 20:41:17 +04:00
#if BX_SUPPORT_3DNOW
2010-04-30 01:04:23 +04:00
/* 0F 0F /wr */ { BxImmediate_Ib, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 0F /wm */ { BxImmediate_Ib, BX_IA_ERROR },
2003-05-15 20:41:17 +04:00
#else
/* 0F 0F /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 0F /wm */ { 0, BX_IA_ERROR },
2003-05-15 20:41:17 +04:00
#endif
2009-10-24 15:17:51 +04:00
/* 0F 10 /wr */ { BxPrefixSSE, BX_IA_MOVUPS_VpsWpsR, BxOpcodeGroupSSE_0f10R },
2010-05-13 09:38:24 +04:00
/* 0F 10 /wm */ { BxPrefixSSE, BX_IA_MOVUPS_VpsWpsM, BxOpcodeGroupSSE_0f10M },
2009-10-24 15:17:51 +04:00
/* 0F 11 /wr */ { BxPrefixSSE, BX_IA_MOVUPS_WpsVpsR, BxOpcodeGroupSSE_0f11R },
2010-05-13 09:38:24 +04:00
/* 0F 11 /wm */ { BxPrefixSSE, BX_IA_MOVUPS_WpsVpsM, BxOpcodeGroupSSE_0f11M },
2010-04-08 21:35:32 +04:00
/* 0F 12 /wr */ { BxPrefixSSE, BX_IA_MOVHLPS_VpsWpsR, BxOpcodeGroupSSE_0f12R },
2010-05-13 09:38:24 +04:00
/* 0F 12 /wm */ { BxPrefixSSE, BX_IA_MOVLPS_VpsMq, BxOpcodeGroupSSE_0f12M },
/* 0F 13 /wr */ { 0, BX_IA_ERROR }, // MOVLPS/PD SSE group
2010-05-13 09:38:24 +04:00
/* 0F 13 /wm */ { BxPrefixSSE, BX_IA_MOVLPS_MqVps, BxOpcodeGroupSSE_0f13M },
/* 0F 14 /wr */ { BxPrefixSSE, BX_IA_UNPCKLPS_VpsWdq, BxOpcodeGroupSSE_0f14 },
2010-05-13 09:38:24 +04:00
/* 0F 14 /wm */ { BxPrefixSSE, BX_IA_UNPCKLPS_VpsWdq, BxOpcodeGroupSSE_0f14 },
/* 0F 15 /wr */ { BxPrefixSSE, BX_IA_UNPCKHPS_VpsWdq, BxOpcodeGroupSSE_0f15 },
2010-05-13 09:38:24 +04:00
/* 0F 15 /wm */ { BxPrefixSSE, BX_IA_UNPCKHPS_VpsWdq, BxOpcodeGroupSSE_0f15 },
2010-04-08 21:35:32 +04:00
/* 0F 16 /wr */ { BxPrefixSSE, BX_IA_MOVLHPS_VpsWpsR, BxOpcodeGroupSSE_0f16R },
2010-05-13 09:38:24 +04:00
/* 0F 16 /wm */ { BxPrefixSSE, BX_IA_MOVHPS_VpsMq, BxOpcodeGroupSSE_0f16M },
/* 0F 17 /wr */ { 0, BX_IA_ERROR }, // MOHLPS/PD SSE group
2010-05-13 09:38:24 +04:00
/* 0F 17 /wm */ { BxPrefixSSE, BX_IA_MOVHPS_MqVps, BxOpcodeGroupSSE_0f17M },
#if BX_CPU_LEVEL >= 6
/* 0F 18 /wr */ { 0, BX_IA_NOP }, // PREFETCH HINT
2010-05-13 09:38:24 +04:00
/* 0F 18 /wm */ { 0, BX_IA_PREFETCH }, // opcode group G16, PREFETCH hints
/* 0F 19 /wr */ { 0, BX_IA_NOP }, // multi-byte NOP
2010-05-13 09:38:24 +04:00
/* 0F 19 /wm */ { 0, BX_IA_NOP }, // multi-byte NOP
/* 0F 1A /wr */ { 0, BX_IA_NOP }, // multi-byte NOP
2010-05-13 09:38:24 +04:00
/* 0F 1A /wm */ { 0, BX_IA_NOP }, // multi-byte NOP
/* 0F 1B /wr */ { 0, BX_IA_NOP }, // multi-byte NOP
2010-05-13 09:38:24 +04:00
/* 0F 1B /wm */ { 0, BX_IA_NOP }, // multi-byte NOP
/* 0F 1C /wr */ { 0, BX_IA_NOP }, // multi-byte NOP
2010-05-13 09:38:24 +04:00
/* 0F 1C /wm */ { 0, BX_IA_NOP }, // multi-byte NOP
/* 0F 1D /wr */ { 0, BX_IA_NOP }, // multi-byte NOP
2010-05-13 09:38:24 +04:00
/* 0F 1D /wm */ { 0, BX_IA_NOP }, // multi-byte NOP
/* 0F 1E /wr */ { 0, BX_IA_NOP }, // multi-byte NOP
2010-05-13 09:38:24 +04:00
/* 0F 1E /wm */ { 0, BX_IA_NOP }, // multi-byte NOP
/* 0F 1F /wr */ { 0, BX_IA_NOP }, // multi-byte NOP
2010-05-13 09:38:24 +04:00
/* 0F 1F /wm */ { 0, BX_IA_NOP }, // multi-byte NOP
#else
/* 0F 18 /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 18 /wm */ { 0, BX_IA_ERROR },
/* 0F 19 /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 19 /wm */ { 0, BX_IA_ERROR },
/* 0F 1A /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 1A /wm */ { 0, BX_IA_ERROR },
/* 0F 1B /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 1B /wm */ { 0, BX_IA_ERROR },
/* 0F 1C /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 1C /wm */ { 0, BX_IA_ERROR },
/* 0F 1D /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 1D /wm */ { 0, BX_IA_ERROR },
/* 0F 1E /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 1E /wm */ { 0, BX_IA_ERROR },
/* 0F 1F /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 1F /wm */ { 0, BX_IA_ERROR },
#endif
/* 0F 20 /wr */ { 0, BX_IA_MOV_RdCd },
2010-05-13 09:38:24 +04:00
/* 0F 20 /wm */ { 0, BX_IA_MOV_RdCd },
/* 0F 21 /wr */ { 0, BX_IA_MOV_RdDd },
2010-05-13 09:38:24 +04:00
/* 0F 21 /wm */ { 0, BX_IA_MOV_RdDd },
/* 0F 22 /wr */ { BxTraceEnd, BX_IA_MOV_CdRd },
2010-05-13 09:38:24 +04:00
/* 0F 22 /wm */ { BxTraceEnd, BX_IA_MOV_CdRd },
/* 0F 23 /wr */ { BxTraceEnd, BX_IA_MOV_DdRd },
2010-05-13 09:38:24 +04:00
/* 0F 23 /wm */ { BxTraceEnd, BX_IA_MOV_DdRd },
/* 0F 24 /wr */ { BxTraceEnd, BX_IA_MOV_RdTd }, // not implemented
2010-05-13 09:38:24 +04:00
/* 0F 24 /wm */ { BxTraceEnd, BX_IA_MOV_RdTd }, // not implemented
/* 0F 25 /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 25 /wm */ { 0, BX_IA_ERROR },
/* 0F 26 /wr */ { BxTraceEnd, BX_IA_MOV_TdRd }, // not implemented
2010-05-13 09:38:24 +04:00
/* 0F 26 /wm */ { BxTraceEnd, BX_IA_MOV_TdRd }, // not implemented
/* 0F 27 /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 27 /wm */ { 0, BX_IA_ERROR },
2009-10-24 15:17:51 +04:00
/* 0F 28 /wr */ { BxPrefixSSE, BX_IA_MOVAPS_VpsWpsR, BxOpcodeGroupSSE_0f28R },
2010-05-13 09:38:24 +04:00
/* 0F 28 /wm */ { BxPrefixSSE, BX_IA_MOVAPS_VpsWpsM, BxOpcodeGroupSSE_0f28M },
2009-10-24 15:17:51 +04:00
/* 0F 29 /wr */ { BxPrefixSSE, BX_IA_MOVAPS_WpsVpsR, BxOpcodeGroupSSE_0f29R },
2010-05-13 09:38:24 +04:00
/* 0F 29 /wm */ { BxPrefixSSE, BX_IA_MOVAPS_WpsVpsM, BxOpcodeGroupSSE_0f29M },
2009-08-22 15:47:42 +04:00
/* 0F 2A /wr */ { BxPrefixSSE, BX_IA_CVTPI2PS_VpsQqR, BxOpcodeGroupSSE_0f2aR },
2010-05-13 09:38:24 +04:00
/* 0F 2A /wm */ { BxPrefixSSE, BX_IA_CVTPI2PS_VpsQqM, BxOpcodeGroupSSE_0f2aM },
/* 0F 2B /wr */ { 0, BX_IA_ERROR }, // MOVNTPS/PD/SS/SD
2010-05-13 09:38:24 +04:00
/* 0F 2B /wm */ { BxPrefixSSE, BX_IA_MOVNTPS_MpsVps, BxOpcodeGroupSSE_0f2bM },
/* 0F 2C /wr */ { BxPrefixSSE, BX_IA_CVTTPS2PI_PqWps, BxOpcodeGroupSSE_0f2c },
2010-05-13 09:38:24 +04:00
/* 0F 2C /wm */ { BxPrefixSSE, BX_IA_CVTTPS2PI_PqWps, BxOpcodeGroupSSE_0f2c },
/* 0F 2D /wr */ { BxPrefixSSE, BX_IA_CVTPS2PI_PqWps, BxOpcodeGroupSSE_0f2d },
2010-05-13 09:38:24 +04:00
/* 0F 2D /wm */ { BxPrefixSSE, BX_IA_CVTPS2PI_PqWps, BxOpcodeGroupSSE_0f2d },
/* 0F 2E /wr */ { BxPrefixSSE, BX_IA_UCOMISS_VssWss, BxOpcodeGroupSSE_0f2e },
2010-05-13 09:38:24 +04:00
/* 0F 2E /wm */ { BxPrefixSSE, BX_IA_UCOMISS_VssWss, BxOpcodeGroupSSE_0f2e },
/* 0F 2F /wr */ { BxPrefixSSE, BX_IA_COMISS_VpsWps, BxOpcodeGroupSSE_0f2f },
2010-05-13 09:38:24 +04:00
/* 0F 2F /wm */ { BxPrefixSSE, BX_IA_COMISS_VpsWps, BxOpcodeGroupSSE_0f2f },
/* 0F 30 /wr */ { 0, BX_IA_WRMSR },
2010-05-13 09:38:24 +04:00
/* 0F 30 /wm */ { 0, BX_IA_WRMSR },
/* 0F 31 /wr */ { 0, BX_IA_RDTSC },
2010-05-13 09:38:24 +04:00
/* 0F 31 /wm */ { 0, BX_IA_RDTSC },
/* 0F 32 /wr */ { 0, BX_IA_RDMSR },
2010-05-13 09:38:24 +04:00
/* 0F 32 /wm */ { 0, BX_IA_RDMSR },
/* 0F 33 /wr */ { 0, BX_IA_RDPMC },
2010-05-13 09:38:24 +04:00
/* 0F 33 /wm */ { 0, BX_IA_RDPMC },
/* 0F 34 /wr */ { BxTraceEnd, BX_IA_SYSENTER },
2010-05-13 09:38:24 +04:00
/* 0F 34 /wm */ { BxTraceEnd, BX_IA_SYSENTER },
/* 0F 35 /wr */ { BxTraceEnd, BX_IA_SYSEXIT },
2010-05-13 09:38:24 +04:00
/* 0F 35 /wm */ { BxTraceEnd, BX_IA_SYSEXIT },
/* 0F 36 /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 36 /wm */ { 0, BX_IA_ERROR },
/* 0F 37 /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 37 /wm */ { 0, BX_IA_ERROR },
/* 0F 38 /wr */ { Bx3ByteOp, BX_IA_ERROR, BxOpcode3ByteTable0f38 }, // 3-byte escape
2010-05-13 09:38:24 +04:00
/* 0F 38 /wm */ { Bx3ByteOp, BX_IA_ERROR, BxOpcode3ByteTable0f38 }, // 3-byte escape
/* 0F 39 /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 39 /wm */ { 0, BX_IA_ERROR },
/* 0F 3A /wr */ { Bx3ByteOp | BxImmediate_Ib, BX_IA_ERROR, BxOpcode3ByteTable0f3a }, // 3-byte escape
2010-05-13 09:38:24 +04:00
/* 0F 3A /wm */ { Bx3ByteOp | BxImmediate_Ib, BX_IA_ERROR, BxOpcode3ByteTable0f3a }, // 3-byte escape
/* 0F 3B /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 3B /wm */ { 0, BX_IA_ERROR },
/* 0F 3C /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 3C /wm */ { 0, BX_IA_ERROR },
/* 0F 3D /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 3D /wm */ { 0, BX_IA_ERROR },
/* 0F 3E /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 3E /wm */ { 0, BX_IA_ERROR },
/* 0F 3F /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 3F /wm */ { 0, BX_IA_ERROR },
/* 0F 40 /wr */ { 0, BX_IA_CMOVO_GwEwR },
2010-05-13 09:38:24 +04:00
/* 0F 40 /wm */ { 0, BX_IA_CMOVO_GwEwM },
/* 0F 41 /wr */ { 0, BX_IA_CMOVNO_GwEwR },
2010-05-13 09:38:24 +04:00
/* 0F 41 /wm */ { 0, BX_IA_CMOVNO_GwEwM },
/* 0F 42 /wr */ { 0, BX_IA_CMOVB_GwEwR },
2010-05-13 09:38:24 +04:00
/* 0F 42 /wm */ { 0, BX_IA_CMOVB_GwEwM },
/* 0F 43 /wr */ { 0, BX_IA_CMOVNB_GwEwR },
2010-05-13 09:38:24 +04:00
/* 0F 43 /wm */ { 0, BX_IA_CMOVNB_GwEwM },
/* 0F 44 /wr */ { 0, BX_IA_CMOVZ_GwEwR },
2010-05-13 09:38:24 +04:00
/* 0F 44 /wm */ { 0, BX_IA_CMOVZ_GwEwM },
/* 0F 45 /wr */ { 0, BX_IA_CMOVNZ_GwEwR },
2010-05-13 09:38:24 +04:00
/* 0F 45 /wm */ { 0, BX_IA_CMOVNZ_GwEwM },
/* 0F 46 /wr */ { 0, BX_IA_CMOVBE_GwEwR },
2010-05-13 09:38:24 +04:00
/* 0F 46 /wm */ { 0, BX_IA_CMOVBE_GwEwM },
/* 0F 47 /wr */ { 0, BX_IA_CMOVNBE_GwEwR },
2010-05-13 09:38:24 +04:00
/* 0F 47 /wm */ { 0, BX_IA_CMOVNBE_GwEwM },
/* 0F 48 /wr */ { 0, BX_IA_CMOVS_GwEwR },
2010-05-13 09:38:24 +04:00
/* 0F 48 /wm */ { 0, BX_IA_CMOVS_GwEwM },
/* 0F 49 /wr */ { 0, BX_IA_CMOVNS_GwEwR },
2010-05-13 09:38:24 +04:00
/* 0F 49 /wm */ { 0, BX_IA_CMOVNS_GwEwM },
/* 0F 4A /wr */ { 0, BX_IA_CMOVP_GwEwR },
2010-05-13 09:38:24 +04:00
/* 0F 4A /wm */ { 0, BX_IA_CMOVP_GwEwM },
/* 0F 4B /wr */ { 0, BX_IA_CMOVNP_GwEwR },
2010-05-13 09:38:24 +04:00
/* 0F 4B /wm */ { 0, BX_IA_CMOVNP_GwEwM },
/* 0F 4C /wr */ { 0, BX_IA_CMOVL_GwEwR },
2010-05-13 09:38:24 +04:00
/* 0F 4C /wm */ { 0, BX_IA_CMOVL_GwEwM },
/* 0F 4D /wr */ { 0, BX_IA_CMOVNL_GwEwR },
2010-05-13 09:38:24 +04:00
/* 0F 4D /wm */ { 0, BX_IA_CMOVNL_GwEwM },
/* 0F 4E /wr */ { 0, BX_IA_CMOVLE_GwEwR },
2010-05-13 09:38:24 +04:00
/* 0F 4E /wm */ { 0, BX_IA_CMOVLE_GwEwM },
/* 0F 4F /wr */ { 0, BX_IA_CMOVNLE_GwEwR },
2010-05-13 09:38:24 +04:00
/* 0F 4F /wm */ { 0, BX_IA_CMOVNLE_GwEwM },
/* 0F 50 /wr */ { BxPrefixSSE, BX_IA_MOVMSKPS_GdVRps, BxOpcodeGroupSSE_0f50 },
2010-05-13 09:38:24 +04:00
/* 0F 50 /wm */ { 0, BX_IA_ERROR }, // MOVMSKPS/PD
/* 0F 51 /wr */ { BxPrefixSSE, BX_IA_SQRTPS_VpsWps, BxOpcodeGroupSSE_0f51 },
2010-05-13 09:38:24 +04:00
/* 0F 51 /wm */ { BxPrefixSSE, BX_IA_SQRTPS_VpsWps, BxOpcodeGroupSSE_0f51 },
/* 0F 52 /wr */ { BxPrefixSSE, BX_IA_RSQRTPS_VpsWps, BxOpcodeGroupSSE_0f52 },
2010-05-13 09:38:24 +04:00
/* 0F 52 /wm */ { BxPrefixSSE, BX_IA_RSQRTPS_VpsWps, BxOpcodeGroupSSE_0f52 },
/* 0F 53 /wr */ { BxPrefixSSE, BX_IA_RCPPS_VpsWps, BxOpcodeGroupSSE_0f53 },
2010-05-13 09:38:24 +04:00
/* 0F 53 /wm */ { BxPrefixSSE, BX_IA_RCPPS_VpsWps, BxOpcodeGroupSSE_0f53 },
/* 0F 54 /wr */ { BxPrefixSSE, BX_IA_ANDPS_VpsWps, BxOpcodeGroupSSE_0f54 },
2010-05-13 09:38:24 +04:00
/* 0F 54 /wm */ { BxPrefixSSE, BX_IA_ANDPS_VpsWps, BxOpcodeGroupSSE_0f54 },
/* 0F 55 /wr */ { BxPrefixSSE, BX_IA_ANDNPS_VpsWps, BxOpcodeGroupSSE_0f55 },
2010-05-13 09:38:24 +04:00
/* 0F 55 /wm */ { BxPrefixSSE, BX_IA_ANDNPS_VpsWps, BxOpcodeGroupSSE_0f55 },
/* 0F 56 /wr */ { BxPrefixSSE, BX_IA_ORPS_VpsWps, BxOpcodeGroupSSE_0f56 },
2010-05-13 09:38:24 +04:00
/* 0F 56 /wm */ { BxPrefixSSE, BX_IA_ORPS_VpsWps, BxOpcodeGroupSSE_0f56 },
/* 0F 57 /wr */ { BxPrefixSSE, BX_IA_XORPS_VpsWps, BxOpcodeGroupSSE_0f57 },
2010-05-13 09:38:24 +04:00
/* 0F 57 /wm */ { BxPrefixSSE, BX_IA_XORPS_VpsWps, BxOpcodeGroupSSE_0f57 },
/* 0F 58 /wr */ { BxPrefixSSE, BX_IA_ADDPS_VpsWps, BxOpcodeGroupSSE_0f58 },
2010-05-13 09:38:24 +04:00
/* 0F 58 /wm */ { BxPrefixSSE, BX_IA_ADDPS_VpsWps, BxOpcodeGroupSSE_0f58 },
/* 0F 59 /wr */ { BxPrefixSSE, BX_IA_MULPS_VpsWps, BxOpcodeGroupSSE_0f59 },
2010-05-13 09:38:24 +04:00
/* 0F 59 /wm */ { BxPrefixSSE, BX_IA_MULPS_VpsWps, BxOpcodeGroupSSE_0f59 },
/* 0F 5A /wr */ { BxPrefixSSE, BX_IA_CVTPS2PD_VpsWps, BxOpcodeGroupSSE_0f5a },
2010-05-13 09:38:24 +04:00
/* 0F 5A /wm */ { BxPrefixSSE, BX_IA_CVTPS2PD_VpsWps, BxOpcodeGroupSSE_0f5a },
/* 0F 5B /wr */ { BxPrefixSSE, BX_IA_CVTDQ2PS_VpsWdq, BxOpcodeGroupSSE_0f5b },
2010-05-13 09:38:24 +04:00
/* 0F 5B /wm */ { BxPrefixSSE, BX_IA_CVTDQ2PS_VpsWdq, BxOpcodeGroupSSE_0f5b },
/* 0F 5C /wr */ { BxPrefixSSE, BX_IA_SUBPS_VpsWps, BxOpcodeGroupSSE_0f5c },
2010-05-13 09:38:24 +04:00
/* 0F 5C /wm */ { BxPrefixSSE, BX_IA_SUBPS_VpsWps, BxOpcodeGroupSSE_0f5c },
/* 0F 5D /wr */ { BxPrefixSSE, BX_IA_MINPS_VpsWps, BxOpcodeGroupSSE_0f5d },
2010-05-13 09:38:24 +04:00
/* 0F 5D /wm */ { BxPrefixSSE, BX_IA_MINPS_VpsWps, BxOpcodeGroupSSE_0f5d },
/* 0F 5E /wr */ { BxPrefixSSE, BX_IA_DIVPS_VpsWps, BxOpcodeGroupSSE_0f5e },
2010-05-13 09:38:24 +04:00
/* 0F 5E /wm */ { BxPrefixSSE, BX_IA_DIVPS_VpsWps, BxOpcodeGroupSSE_0f5e },
/* 0F 5F /wr */ { BxPrefixSSE, BX_IA_MAXPS_VpsWps, BxOpcodeGroupSSE_0f5f },
2010-05-13 09:38:24 +04:00
/* 0F 5F /wm */ { BxPrefixSSE, BX_IA_MAXPS_VpsWps, BxOpcodeGroupSSE_0f5f },
/* 0F 60 /wr */ { BxPrefixSSE, BX_IA_PUNPCKLBW_PqQd, BxOpcodeGroupSSE_0f60 },
2010-05-13 09:38:24 +04:00
/* 0F 60 /wm */ { BxPrefixSSE, BX_IA_PUNPCKLBW_PqQd, BxOpcodeGroupSSE_0f60 },
/* 0F 61 /wr */ { BxPrefixSSE, BX_IA_PUNPCKLWD_PqQd, BxOpcodeGroupSSE_0f61 },
2010-05-13 09:38:24 +04:00
/* 0F 61 /wm */ { BxPrefixSSE, BX_IA_PUNPCKLWD_PqQd, BxOpcodeGroupSSE_0f61 },
/* 0F 62 /wr */ { BxPrefixSSE, BX_IA_PUNPCKLDQ_PqQd, BxOpcodeGroupSSE_0f62 },
2010-05-13 09:38:24 +04:00
/* 0F 62 /wm */ { BxPrefixSSE, BX_IA_PUNPCKLDQ_PqQd, BxOpcodeGroupSSE_0f62 },
/* 0F 63 /wr */ { BxPrefixSSE, BX_IA_PACKSSWB_PqQq, BxOpcodeGroupSSE_0f63 },
2010-05-13 09:38:24 +04:00
/* 0F 63 /wm */ { BxPrefixSSE, BX_IA_PACKSSWB_PqQq, BxOpcodeGroupSSE_0f63 },
/* 0F 64 /wr */ { BxPrefixSSE, BX_IA_PCMPGTB_PqQq, BxOpcodeGroupSSE_0f64 },
2010-05-13 09:38:24 +04:00
/* 0F 64 /wm */ { BxPrefixSSE, BX_IA_PCMPGTB_PqQq, BxOpcodeGroupSSE_0f64 },
/* 0F 65 /wr */ { BxPrefixSSE, BX_IA_PCMPGTW_PqQq, BxOpcodeGroupSSE_0f65 },
2010-05-13 09:38:24 +04:00
/* 0F 65 /wm */ { BxPrefixSSE, BX_IA_PCMPGTW_PqQq, BxOpcodeGroupSSE_0f65 },
/* 0F 66 /wr */ { BxPrefixSSE, BX_IA_PCMPGTD_PqQq, BxOpcodeGroupSSE_0f66 },
2010-05-13 09:38:24 +04:00
/* 0F 66 /wm */ { BxPrefixSSE, BX_IA_PCMPGTD_PqQq, BxOpcodeGroupSSE_0f66 },
/* 0F 67 /wr */ { BxPrefixSSE, BX_IA_PACKUSWB_PqQq, BxOpcodeGroupSSE_0f67 },
2010-05-13 09:38:24 +04:00
/* 0F 67 /wm */ { BxPrefixSSE, BX_IA_PACKUSWB_PqQq, BxOpcodeGroupSSE_0f67 },
/* 0F 68 /wr */ { BxPrefixSSE, BX_IA_PUNPCKHBW_PqQq, BxOpcodeGroupSSE_0f68 },
2010-05-13 09:38:24 +04:00
/* 0F 68 /wm */ { BxPrefixSSE, BX_IA_PUNPCKHBW_PqQq, BxOpcodeGroupSSE_0f68 },
/* 0F 69 /wr */ { BxPrefixSSE, BX_IA_PUNPCKHWD_PqQq, BxOpcodeGroupSSE_0f69 },
2010-05-13 09:38:24 +04:00
/* 0F 69 /wm */ { BxPrefixSSE, BX_IA_PUNPCKHWD_PqQq, BxOpcodeGroupSSE_0f69 },
/* 0F 6A /wr */ { BxPrefixSSE, BX_IA_PUNPCKHDQ_PqQq, BxOpcodeGroupSSE_0f6a },
2010-05-13 09:38:24 +04:00
/* 0F 6A /wm */ { BxPrefixSSE, BX_IA_PUNPCKHDQ_PqQq, BxOpcodeGroupSSE_0f6a },
/* 0F 6B /wr */ { BxPrefixSSE, BX_IA_PACKSSDW_PqQq, BxOpcodeGroupSSE_0f6b },
2010-05-13 09:38:24 +04:00
/* 0F 6B /wm */ { BxPrefixSSE, BX_IA_PACKSSDW_PqQq, BxOpcodeGroupSSE_0f6b },
2010-02-08 17:54:26 +03:00
/* 0F 6C /wr */ { BxPrefixSSE66, BX_IA_PUNPCKLQDQ_VdqWdq },
2010-05-13 09:38:24 +04:00
/* 0F 6C /wm */ { BxPrefixSSE66, BX_IA_PUNPCKLQDQ_VdqWdq },
2010-02-08 17:54:26 +03:00
/* 0F 6D /wr */ { BxPrefixSSE66, BX_IA_PUNPCKHQDQ_VdqWdq },
2010-05-13 09:38:24 +04:00
/* 0F 6D /wm */ { BxPrefixSSE66, BX_IA_PUNPCKHQDQ_VdqWdq },
2010-02-10 20:21:15 +03:00
/* 0F 6E /wr */ { BxPrefixSSE, BX_IA_MOVD_PqEdR, BxOpcodeGroupSSE_0f6eR },
2010-05-13 09:38:24 +04:00
/* 0F 6E /wm */ { BxPrefixSSE, BX_IA_MOVD_PqEdM, BxOpcodeGroupSSE_0f6eM },
2009-12-14 14:55:42 +03:00
/* 0F 6F /wr */ { BxPrefixSSE, BX_IA_MOVQ_PqQqR, BxOpcodeGroupSSE_0f6fR },
2010-05-13 09:38:24 +04:00
/* 0F 6F /wm */ { BxPrefixSSE, BX_IA_MOVQ_PqQqM, BxOpcodeGroupSSE_0f6fM },
/* 0F 70 /wr */ { BxPrefixSSE | BxImmediate_Ib, BX_IA_PSHUFW_PqQqIb, BxOpcodeGroupSSE_0f70 },
2010-05-13 09:38:24 +04:00
/* 0F 70 /wm */ { BxPrefixSSE | BxImmediate_Ib, BX_IA_PSHUFW_PqQqIb, BxOpcodeGroupSSE_0f70 },
2008-05-01 01:32:33 +04:00
/* 0F 71 /wr */ { BxGroup12, BX_IA_ERROR, BxOpcodeInfoG12R },
2010-05-13 09:38:24 +04:00
/* 0F 71 /wm */ { 0, BX_IA_ERROR }, // SSE Group G12
2008-05-01 01:32:33 +04:00
/* 0F 72 /wr */ { BxGroup13, BX_IA_ERROR, BxOpcodeInfoG13R },
2010-05-13 09:38:24 +04:00
/* 0F 72 /wm */ { 0, BX_IA_ERROR }, // SSE Group G13
2008-05-01 01:32:33 +04:00
/* 0F 73 /wr */ { BxGroup14, BX_IA_ERROR, BxOpcodeInfoG14R },
2010-05-13 09:38:24 +04:00
/* 0F 73 /wm */ { 0, BX_IA_ERROR }, // SSE Group G14
/* 0F 74 /wr */ { BxPrefixSSE, BX_IA_PCMPEQB_PqQq, BxOpcodeGroupSSE_0f74 },
2010-05-13 09:38:24 +04:00
/* 0F 74 /wm */ { BxPrefixSSE, BX_IA_PCMPEQB_PqQq, BxOpcodeGroupSSE_0f74 },
/* 0F 75 /wr */ { BxPrefixSSE, BX_IA_PCMPEQW_PqQq, BxOpcodeGroupSSE_0f75 },
2010-05-13 09:38:24 +04:00
/* 0F 75 /wm */ { BxPrefixSSE, BX_IA_PCMPEQW_PqQq, BxOpcodeGroupSSE_0f75 },
/* 0F 76 /wr */ { BxPrefixSSE, BX_IA_PCMPEQD_PqQq, BxOpcodeGroupSSE_0f76 },
2010-05-13 09:38:24 +04:00
/* 0F 76 /wm */ { BxPrefixSSE, BX_IA_PCMPEQD_PqQq, BxOpcodeGroupSSE_0f76 },
/* 0F 77 /wr */ { BxPrefixSSE, BX_IA_EMMS, BxOpcodeGroupSSE_ERR },
2010-05-13 09:38:24 +04:00
/* 0F 77 /wm */ { BxPrefixSSE, BX_IA_EMMS, BxOpcodeGroupSSE_ERR },
2009-01-31 13:43:24 +03:00
/* 0F 78 /wr */ { BxPrefixSSE, BX_IA_VMREAD_EdGd, BxOpcodeGroupSSE_ERR },
2010-05-13 09:38:24 +04:00
/* 0F 78 /wm */ { BxPrefixSSE, BX_IA_VMREAD_EdGd, BxOpcodeGroupSSE_ERR },
2009-01-31 13:43:24 +03:00
/* 0F 79 /wr */ { BxPrefixSSE, BX_IA_VMWRITE_GdEd, BxOpcodeGroupSSE_ERR },
2010-05-13 09:38:24 +04:00
/* 0F 79 /wm */ { BxPrefixSSE, BX_IA_VMWRITE_GdEd, BxOpcodeGroupSSE_ERR },
/* 0F 7A /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 7A /wm */ { 0, BX_IA_ERROR },
/* 0F 7B /wr */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 7B /wm */ { 0, BX_IA_ERROR },
/* 0F 7C /wr */ { BxPrefixSSE, BX_IA_ERROR, BxOpcodeGroupSSE_0f7c },
2010-05-13 09:38:24 +04:00
/* 0F 7C /wm */ { BxPrefixSSE, BX_IA_ERROR, BxOpcodeGroupSSE_0f7c },
/* 0F 7D /wr */ { BxPrefixSSE, BX_IA_ERROR, BxOpcodeGroupSSE_0f7d },
2010-05-13 09:38:24 +04:00
/* 0F 7D /wm */ { BxPrefixSSE, BX_IA_ERROR, BxOpcodeGroupSSE_0f7d },
2010-02-10 20:21:15 +03:00
/* 0F 7E /wr */ { BxPrefixSSE, BX_IA_MOVD_EdPdR, BxOpcodeGroupSSE_0f7eR },
2010-05-13 09:38:24 +04:00
/* 0F 7E /wm */ { BxPrefixSSE, BX_IA_MOVD_EdPdM, BxOpcodeGroupSSE_0f7eM },
2010-02-10 20:21:15 +03:00
/* 0F 7F /wr */ { BxPrefixSSE, BX_IA_MOVQ_QqPqR, BxOpcodeGroupSSE_0f7fR },
2010-05-13 09:38:24 +04:00
/* 0F 7F /wm */ { BxPrefixSSE, BX_IA_MOVQ_QqPqM, BxOpcodeGroupSSE_0f7fM },
/* 0F 80 /wr */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JO_Jw },
2010-05-13 09:38:24 +04:00
/* 0F 80 /wm */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JO_Jw },
/* 0F 81 /wr */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JNO_Jw },
2010-05-13 09:38:24 +04:00
/* 0F 81 /wm */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JNO_Jw },
/* 0F 82 /wr */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JB_Jw },
2010-05-13 09:38:24 +04:00
/* 0F 82 /wm */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JB_Jw },
/* 0F 83 /wr */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JNB_Jw },
2010-05-13 09:38:24 +04:00
/* 0F 83 /wm */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JNB_Jw },
/* 0F 84 /wr */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JZ_Jw },
2010-05-13 09:38:24 +04:00
/* 0F 84 /wm */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JZ_Jw },
/* 0F 85 /wr */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JNZ_Jw },
2010-05-13 09:38:24 +04:00
/* 0F 85 /wm */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JNZ_Jw },
/* 0F 86 /wr */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JBE_Jw },
2010-05-13 09:38:24 +04:00
/* 0F 86 /wm */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JBE_Jw },
/* 0F 87 /wr */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JNBE_Jw },
2010-05-13 09:38:24 +04:00
/* 0F 87 /wm */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JNBE_Jw },
/* 0F 88 /wr */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JS_Jw },
2010-05-13 09:38:24 +04:00
/* 0F 88 /wm */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JS_Jw },
/* 0F 89 /wr */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JNS_Jw },
2010-05-13 09:38:24 +04:00
/* 0F 89 /wm */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JNS_Jw },
/* 0F 8A /wr */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JP_Jw },
2010-05-13 09:38:24 +04:00
/* 0F 8A /wm */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JP_Jw },
/* 0F 8B /wr */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JNP_Jw },
2010-05-13 09:38:24 +04:00
/* 0F 8B /wm */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JNP_Jw },
/* 0F 8C /wr */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JL_Jw },
2010-05-13 09:38:24 +04:00
/* 0F 8C /wm */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JL_Jw },
/* 0F 8D /wr */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JNL_Jw },
2010-05-13 09:38:24 +04:00
/* 0F 8D /wm */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JNL_Jw },
/* 0F 8E /wr */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JLE_Jw },
2010-05-13 09:38:24 +04:00
/* 0F 8E /wm */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JLE_Jw },
/* 0F 8F /wr */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JNLE_Jw },
2010-05-13 09:38:24 +04:00
/* 0F 8F /wm */ { BxImmediate_BrOff16 | BxTraceJCC, BX_IA_JNLE_Jw },
/* 0F 90 /wr */ { 0, BX_IA_SETO_EbR },
2010-05-13 09:38:24 +04:00
/* 0F 90 /wm */ { 0, BX_IA_SETO_EbM },
/* 0F 91 /wr */ { 0, BX_IA_SETNO_EbR },
2010-05-13 09:38:24 +04:00
/* 0F 91 /wm */ { 0, BX_IA_SETNO_EbM },
/* 0F 92 /wr */ { 0, BX_IA_SETB_EbR },
2010-05-13 09:38:24 +04:00
/* 0F 92 /wm */ { 0, BX_IA_SETB_EbM },
/* 0F 93 /wr */ { 0, BX_IA_SETNB_EbR },
2010-05-13 09:38:24 +04:00
/* 0F 93 /wm */ { 0, BX_IA_SETNB_EbM },
/* 0F 94 /wr */ { 0, BX_IA_SETZ_EbR },
2010-05-13 09:38:24 +04:00
/* 0F 94 /wm */ { 0, BX_IA_SETZ_EbM },
/* 0F 95 /wr */ { 0, BX_IA_SETNZ_EbR },
2010-05-13 09:38:24 +04:00
/* 0F 95 /wm */ { 0, BX_IA_SETNZ_EbM },
/* 0F 96 /wr */ { 0, BX_IA_SETBE_EbR },
2010-05-13 09:38:24 +04:00
/* 0F 96 /wm */ { 0, BX_IA_SETBE_EbM },
/* 0F 97 /wr */ { 0, BX_IA_SETNBE_EbR },
2010-05-13 09:38:24 +04:00
/* 0F 97 /wm */ { 0, BX_IA_SETNBE_EbM },
/* 0F 98 /wr */ { 0, BX_IA_SETS_EbR },
2010-05-13 09:38:24 +04:00
/* 0F 98 /wm */ { 0, BX_IA_SETS_EbM },
/* 0F 99 /wr */ { 0, BX_IA_SETNS_EbR },
2010-05-13 09:38:24 +04:00
/* 0F 99 /wm */ { 0, BX_IA_SETNS_EbM },
/* 0F 9A /wr */ { 0, BX_IA_SETP_EbR },
2010-05-13 09:38:24 +04:00
/* 0F 9A /wm */ { 0, BX_IA_SETP_EbM },
/* 0F 9B /wr */ { 0, BX_IA_SETNP_EbR },
2010-05-13 09:38:24 +04:00
/* 0F 9B /wm */ { 0, BX_IA_SETNP_EbM },
/* 0F 9C /wr */ { 0, BX_IA_SETL_EbR },
2010-05-13 09:38:24 +04:00
/* 0F 9C /wm */ { 0, BX_IA_SETL_EbM },
/* 0F 9D /wr */ { 0, BX_IA_SETNL_EbR },
2010-05-13 09:38:24 +04:00
/* 0F 9D /wm */ { 0, BX_IA_SETNL_EbM },
/* 0F 9E /wr */ { 0, BX_IA_SETLE_EbR },
2010-05-13 09:38:24 +04:00
/* 0F 9E /wm */ { 0, BX_IA_SETLE_EbM },
/* 0F 9F /wr */ { 0, BX_IA_SETNLE_EbR },
2010-05-13 09:38:24 +04:00
/* 0F 9F /wm */ { 0, BX_IA_SETNLE_EbM },
/* 0F A0 /wr */ { 0, BX_IA_PUSH16_FS },
2010-05-13 09:38:24 +04:00
/* 0F A0 /wm */ { 0, BX_IA_PUSH16_FS },
/* 0F A1 /wr */ { 0, BX_IA_POP16_FS },
2010-05-13 09:38:24 +04:00
/* 0F A1 /wm */ { 0, BX_IA_POP16_FS },
/* 0F A2 /wr */ { 0, BX_IA_CPUID },
2010-05-13 09:38:24 +04:00
/* 0F A2 /wm */ { 0, BX_IA_CPUID },
/* 0F A3 /wr */ { 0, BX_IA_BT_EwGwR },
2010-05-13 09:38:24 +04:00
/* 0F A3 /wm */ { 0, BX_IA_BT_EwGwM },
2008-04-05 23:08:01 +04:00
/* 0F A4 /wr */ { BxImmediate_Ib, BX_IA_SHLD_EwGwR },
2010-05-13 09:38:24 +04:00
/* 0F A4 /wm */ { BxImmediate_Ib, BX_IA_SHLD_EwGwM },
2008-04-05 23:08:01 +04:00
/* 0F A5 /wr */ { 0, BX_IA_SHLD_EwGwR },
2010-05-13 09:38:24 +04:00
/* 0F A5 /wm */ { 0, BX_IA_SHLD_EwGwM },
/* 0F A6 /wr */ { BxTraceEnd, BX_IA_CMPXCHG_XBTS }, // not implemented
2010-05-13 09:38:24 +04:00
/* 0F A6 /wm */ { BxTraceEnd, BX_IA_CMPXCHG_XBTS }, // not implemented
/* 0F A7 /wr */ { BxTraceEnd, BX_IA_CMPXCHG_IBTS }, // not implemented
2010-05-13 09:38:24 +04:00
/* 0F A7 /wm */ { BxTraceEnd, BX_IA_CMPXCHG_IBTS }, // not implemented
/* 0F A8 /wr */ { 0, BX_IA_PUSH16_GS },
2010-05-13 09:38:24 +04:00
/* 0F A8 /wm */ { 0, BX_IA_PUSH16_GS },
/* 0F A9 /wr */ { 0, BX_IA_POP16_GS },
2010-05-13 09:38:24 +04:00
/* 0F A9 /wm */ { 0, BX_IA_POP16_GS },
/* 0F AA /wr */ { BxTraceEnd, BX_IA_RSM },
2010-05-13 09:38:24 +04:00
/* 0F AA /wm */ { BxTraceEnd, BX_IA_RSM },
/* 0F AB /wr */ { 0, BX_IA_BTS_EwGwR },
2010-05-13 09:38:24 +04:00
/* 0F AB /wm */ { BxLockable, BX_IA_BTS_EwGwM },
2008-04-05 23:08:01 +04:00
/* 0F AC /wr */ { BxImmediate_Ib, BX_IA_SHRD_EwGwR },
2010-05-13 09:38:24 +04:00
/* 0F AC /wm */ { BxImmediate_Ib, BX_IA_SHRD_EwGwM },
2008-04-05 23:08:01 +04:00
/* 0F AD /wr */ { 0, BX_IA_SHRD_EwGwR },
2010-05-13 09:38:24 +04:00
/* 0F AD /wm */ { 0, BX_IA_SHRD_EwGwM },
/* 0F AE /wr */ { BxGroup15, BX_IA_ERROR, BxOpcodeInfoG15R },
2010-05-13 09:38:24 +04:00
/* 0F AE /wm */ { BxGroup15, BX_IA_ERROR, BxOpcodeInfoG15M },
/* 0F AF /wr */ { 0, BX_IA_IMUL_GwEwR },
2010-05-13 09:38:24 +04:00
/* 0F AF /wm */ { 0, BX_IA_IMUL_GwEwM },
/* 0F B0 /wr */ { 0, BX_IA_CMPXCHG_EbGbR },
2010-05-13 09:38:24 +04:00
/* 0F B0 /wm */ { BxLockable, BX_IA_CMPXCHG_EbGbM },
/* 0F B1 /wr */ { 0, BX_IA_CMPXCHG_EwGwR },
2010-05-13 09:38:24 +04:00
/* 0F B1 /wm */ { BxLockable, BX_IA_CMPXCHG_EwGwM },
/* 0F B2 /wr */ { 0, BX_IA_ERROR }, // LSS
2010-05-13 09:38:24 +04:00
/* 0F B2 /wm */ { 0, BX_IA_LSS_GwMp },
/* 0F B3 /wr */ { 0, BX_IA_BTR_EwGwR },
2010-05-13 09:38:24 +04:00
/* 0F B3 /wm */ { BxLockable, BX_IA_BTR_EwGwM },
/* 0F B4 /wr */ { 0, BX_IA_ERROR }, // LFS
2010-05-13 09:38:24 +04:00
/* 0F B4 /wm */ { 0, BX_IA_LFS_GwMp },
/* 0F B5 /wr */ { 0, BX_IA_ERROR }, // LGS
2010-05-13 09:38:24 +04:00
/* 0F B5 /wm */ { 0, BX_IA_LGS_GwMp },
/* 0F B6 /wr */ { 0, BX_IA_MOVZX_GwEbR },
2010-05-13 09:38:24 +04:00
/* 0F B6 /wm */ { 0, BX_IA_MOVZX_GwEbM },
/* 0F B7 /wr */ { 0, BX_IA_MOV_GwEwR }, // MOVZX_GwEw
2010-05-13 09:38:24 +04:00
/* 0F B7 /wm */ { 0, BX_IA_MOV_GwEwM }, // MOVZX_GwEw
2010-02-08 17:54:26 +03:00
/* 0F B8 /wr */ { BxPrefixSSEF3, BX_IA_POPCNT_GwEwR },
2010-05-13 09:38:24 +04:00
/* 0F B8 /wm */ { BxPrefixSSEF3, BX_IA_POPCNT_GwEwM },
/* 0F B9 /wr */ { 0, BX_IA_UD2B },
2010-05-13 09:38:24 +04:00
/* 0F B9 /wm */ { BxTraceEnd, BX_IA_UD2B },
/* 0F BA /wr */ { BxGroup8, BX_IA_ERROR, BxOpcodeInfoG8EwIbR },
2010-05-13 09:38:24 +04:00
/* 0F BA /wm */ { BxGroup8, BX_IA_ERROR, BxOpcodeInfoG8EwIbM },
/* 0F BB /wr */ { 0, BX_IA_BTC_EwGwR },
2010-05-13 09:38:24 +04:00
/* 0F BB /wm */ { BxLockable, BX_IA_BTC_EwGwM },
2008-08-10 23:34:28 +04:00
/* 0F BC /wr */ { 0, BX_IA_BSF_GwEwR },
2010-05-13 09:38:24 +04:00
/* 0F BC /wm */ { 0, BX_IA_BSF_GwEwM },
2008-08-10 23:34:28 +04:00
/* 0F BD /wr */ { 0, BX_IA_BSR_GwEwR },
2010-05-13 09:38:24 +04:00
/* 0F BD /wm */ { 0, BX_IA_BSR_GwEwM },
/* 0F BE /wr */ { 0, BX_IA_MOVSX_GwEbR },
2010-05-13 09:38:24 +04:00
/* 0F BE /wm */ { 0, BX_IA_MOVSX_GwEbM },
/* 0F BF /wr */ { 0, BX_IA_MOV_GwEwR }, // MOVSX_GwEw
2010-05-13 09:38:24 +04:00
/* 0F BF /wm */ { 0, BX_IA_MOV_GwEwM }, // MOVSX_GwEw
/* 0F C0 /wr */ { 0, BX_IA_XADD_EbGbR },
2010-05-13 09:38:24 +04:00
/* 0F C0 /wm */ { BxLockable, BX_IA_XADD_EbGbM },
/* 0F C1 /wr */ { 0, BX_IA_XADD_EwGwR },
2010-05-13 09:38:24 +04:00
/* 0F C1 /wm */ { BxLockable, BX_IA_XADD_EwGwM },
/* 0F C2 /wr */ { BxPrefixSSE | BxImmediate_Ib, BX_IA_CMPPS_VpsWpsIb, BxOpcodeGroupSSE_0fc2 },
2010-05-13 09:38:24 +04:00
/* 0F C2 /wm */ { BxPrefixSSE | BxImmediate_Ib, BX_IA_CMPPS_VpsWpsIb, BxOpcodeGroupSSE_0fc2 },
/* 0F C3 /wr */ { 0, BX_IA_ERROR }, // MOVNTI SSE group
2010-05-13 09:38:24 +04:00
/* 0F C3 /wm */ { BxPrefixSSE, BX_IA_MOVNTI_MdGd, BxOpcodeGroupSSE_ERR },
/* 0F C4 /wr */ { BxPrefixSSE | BxImmediate_Ib, BX_IA_PINSRW_PqEwIb, BxOpcodeGroupSSE_0fc4 },
2010-05-13 09:38:24 +04:00
/* 0F C4 /wm */ { BxPrefixSSE | BxImmediate_Ib, BX_IA_PINSRW_PqEwIb, BxOpcodeGroupSSE_0fc4 },
/* 0F C5 /wr */ { BxPrefixSSE | BxImmediate_Ib, BX_IA_PEXTRW_GdPqIb, BxOpcodeGroupSSE_0fc5R },
2010-05-13 09:38:24 +04:00
/* 0F C5 /wm */ { 0, BX_IA_ERROR }, // PEXTRW SSE group
/* 0F C6 /wr */ { BxPrefixSSE | BxImmediate_Ib, BX_IA_SHUFPS_VpsWpsIb, BxOpcodeGroupSSE_0fc6 },
2010-05-13 09:38:24 +04:00
/* 0F C6 /wm */ { BxPrefixSSE | BxImmediate_Ib, BX_IA_SHUFPS_VpsWpsIb, BxOpcodeGroupSSE_0fc6 },
/* 0F C7 /wr */ { 0, BX_IA_ERROR }, // CMPXCHG8B G9 group
2010-05-13 09:38:24 +04:00
/* 0F C7 /wm */ { BxGroup9, BX_IA_ERROR, BxOpcodeInfoG9M },
2010-03-19 13:00:48 +03:00
/* 0F C8 /wr */ { 0, BX_IA_BSWAP_RX },
2010-05-13 09:38:24 +04:00
/* 0F C8 /wm */ { 0, BX_IA_BSWAP_RX },
2010-03-19 13:00:48 +03:00
/* 0F C9 /wr */ { 0, BX_IA_BSWAP_RX },
2010-05-13 09:38:24 +04:00
/* 0F C9 /wm */ { 0, BX_IA_BSWAP_RX },
2010-03-19 13:00:48 +03:00
/* 0F CA /wr */ { 0, BX_IA_BSWAP_RX },
2010-05-13 09:38:24 +04:00
/* 0F CA /wm */ { 0, BX_IA_BSWAP_RX },
2010-03-19 13:00:48 +03:00
/* 0F CB /wr */ { 0, BX_IA_BSWAP_RX },
2010-05-13 09:38:24 +04:00
/* 0F CB /wm */ { 0, BX_IA_BSWAP_RX },
2010-03-19 13:00:48 +03:00
/* 0F CC /wr */ { 0, BX_IA_BSWAP_RX },
2010-05-13 09:38:24 +04:00
/* 0F CC /wm */ { 0, BX_IA_BSWAP_RX },
2010-03-19 13:00:48 +03:00
/* 0F CD /wr */ { 0, BX_IA_BSWAP_RX },
2010-05-13 09:38:24 +04:00
/* 0F CD /wm */ { 0, BX_IA_BSWAP_RX },
2010-03-19 13:00:48 +03:00
/* 0F CE /wr */ { 0, BX_IA_BSWAP_RX },
2010-05-13 09:38:24 +04:00
/* 0F CE /wm */ { 0, BX_IA_BSWAP_RX },
2010-03-19 13:00:48 +03:00
/* 0F CF /wr */ { 0, BX_IA_BSWAP_RX },
2010-05-13 09:38:24 +04:00
/* 0F CF /wm */ { 0, BX_IA_BSWAP_RX },
2008-08-30 00:43:05 +04:00
/* 0F D0 /wr */ { BxPrefixSSE, BX_IA_ERROR, BxOpcodeGroupSSE_0fd0 },
2010-05-13 09:38:24 +04:00
/* 0F D0 /wm */ { BxPrefixSSE, BX_IA_ERROR, BxOpcodeGroupSSE_0fd0 },
/* 0F D1 /wr */ { BxPrefixSSE, BX_IA_PSRLW_PqQq, BxOpcodeGroupSSE_0fd1 },
2010-05-13 09:38:24 +04:00
/* 0F D1 /wm */ { BxPrefixSSE, BX_IA_PSRLW_PqQq, BxOpcodeGroupSSE_0fd1 },
/* 0F D2 /wr */ { BxPrefixSSE, BX_IA_PSRLD_PqQq, BxOpcodeGroupSSE_0fd2 },
2010-05-13 09:38:24 +04:00
/* 0F D2 /wm */ { BxPrefixSSE, BX_IA_PSRLD_PqQq, BxOpcodeGroupSSE_0fd2 },
/* 0F D3 /wr */ { BxPrefixSSE, BX_IA_PSRLQ_PqQq, BxOpcodeGroupSSE_0fd3 },
2010-05-13 09:38:24 +04:00
/* 0F D3 /wm */ { BxPrefixSSE, BX_IA_PSRLQ_PqQq, BxOpcodeGroupSSE_0fd3 },
/* 0F D4 /wr */ { BxPrefixSSE, BX_IA_PADDQ_PqQq, BxOpcodeGroupSSE_0fd4 },
2010-05-13 09:38:24 +04:00
/* 0F D4 /wm */ { BxPrefixSSE, BX_IA_PADDQ_PqQq, BxOpcodeGroupSSE_0fd4 },
/* 0F D5 /wr */ { BxPrefixSSE, BX_IA_PMULLW_PqQq, BxOpcodeGroupSSE_0fd5 },
2010-05-13 09:38:24 +04:00
/* 0F D5 /wm */ { BxPrefixSSE, BX_IA_PMULLW_PqQq, BxOpcodeGroupSSE_0fd5 },
2009-11-25 23:49:47 +03:00
/* 0F D6 /wr */ { BxPrefixSSE, BX_IA_ERROR, BxOpcodeGroupSSE_0fd6R },
2010-05-13 09:38:24 +04:00
/* 0F D6 /wm */ { BxPrefixSSE66, BX_IA_MOVQ_WqVqM },
/* 0F D7 /wr */ { BxPrefixSSE, BX_IA_PMOVMSKB_GdPRq, BxOpcodeGroupSSE_0fd7 },
2010-05-13 09:38:24 +04:00
/* 0F D7 /wm */ { 0, BX_IA_ERROR }, // PMOVMSKB is reg/reg form only
/* 0F D8 /wr */ { BxPrefixSSE, BX_IA_PSUBUSB_PqQq, BxOpcodeGroupSSE_0fd8 },
2010-05-13 09:38:24 +04:00
/* 0F D8 /wm */ { BxPrefixSSE, BX_IA_PSUBUSB_PqQq, BxOpcodeGroupSSE_0fd8 },
/* 0F D9 /wr */ { BxPrefixSSE, BX_IA_PSUBUSW_PqQq, BxOpcodeGroupSSE_0fd9 },
2010-05-13 09:38:24 +04:00
/* 0F D9 /wm */ { BxPrefixSSE, BX_IA_PSUBUSW_PqQq, BxOpcodeGroupSSE_0fd9 },
/* 0F DA /wr */ { BxPrefixSSE, BX_IA_PMINUB_PqQq, BxOpcodeGroupSSE_0fda },
2010-05-13 09:38:24 +04:00
/* 0F DA /wm */ { BxPrefixSSE, BX_IA_PMINUB_PqQq, BxOpcodeGroupSSE_0fda },
/* 0F DB /wr */ { BxPrefixSSE, BX_IA_PAND_PqQq, BxOpcodeGroupSSE_0fdb },
2010-05-13 09:38:24 +04:00
/* 0F DB /wm */ { BxPrefixSSE, BX_IA_PAND_PqQq, BxOpcodeGroupSSE_0fdb },
/* 0F DC /wr */ { BxPrefixSSE, BX_IA_PADDUSB_PqQq, BxOpcodeGroupSSE_0fdc },
2010-05-13 09:38:24 +04:00
/* 0F DC /wm */ { BxPrefixSSE, BX_IA_PADDUSB_PqQq, BxOpcodeGroupSSE_0fdc },
/* 0F DD /wr */ { BxPrefixSSE, BX_IA_PADDUSW_PqQq, BxOpcodeGroupSSE_0fdd },
2010-05-13 09:38:24 +04:00
/* 0F DD /wm */ { BxPrefixSSE, BX_IA_PADDUSW_PqQq, BxOpcodeGroupSSE_0fdd },
/* 0F DE /wr */ { BxPrefixSSE, BX_IA_PMAXUB_PqQq, BxOpcodeGroupSSE_0fde },
2010-05-13 09:38:24 +04:00
/* 0F DE /wm */ { BxPrefixSSE, BX_IA_PMAXUB_PqQq, BxOpcodeGroupSSE_0fde },
/* 0F DF /wr */ { BxPrefixSSE, BX_IA_PANDN_PqQq, BxOpcodeGroupSSE_0fdf },
2010-05-13 09:38:24 +04:00
/* 0F DF /wm */ { BxPrefixSSE, BX_IA_PANDN_PqQq, BxOpcodeGroupSSE_0fdf },
/* 0F E0 /wr */ { BxPrefixSSE, BX_IA_PAVGB_PqQq, BxOpcodeGroupSSE_0fe0 },
2010-05-13 09:38:24 +04:00
/* 0F E0 /wm */ { BxPrefixSSE, BX_IA_PAVGB_PqQq, BxOpcodeGroupSSE_0fe0 },
/* 0F E1 /wr */ { BxPrefixSSE, BX_IA_PSRAW_PqQq, BxOpcodeGroupSSE_0fe1 },
2010-05-13 09:38:24 +04:00
/* 0F E1 /wm */ { BxPrefixSSE, BX_IA_PSRAW_PqQq, BxOpcodeGroupSSE_0fe1 },
/* 0F E2 /wr */ { BxPrefixSSE, BX_IA_PSRAD_PqQq, BxOpcodeGroupSSE_0fe2 },
2010-05-13 09:38:24 +04:00
/* 0F E2 /wm */ { BxPrefixSSE, BX_IA_PSRAD_PqQq, BxOpcodeGroupSSE_0fe2 },
/* 0F E3 /wr */ { BxPrefixSSE, BX_IA_PAVGW_PqQq, BxOpcodeGroupSSE_0fe3 },
2010-05-13 09:38:24 +04:00
/* 0F E3 /wm */ { BxPrefixSSE, BX_IA_PAVGW_PqQq, BxOpcodeGroupSSE_0fe3 },
/* 0F E4 /wr */ { BxPrefixSSE, BX_IA_PMULHUW_PqQq, BxOpcodeGroupSSE_0fe4 },
2010-05-13 09:38:24 +04:00
/* 0F E4 /wm */ { BxPrefixSSE, BX_IA_PMULHUW_PqQq, BxOpcodeGroupSSE_0fe4 },
/* 0F E5 /wr */ { BxPrefixSSE, BX_IA_PMULHW_PqQq, BxOpcodeGroupSSE_0fe5 },
2010-05-13 09:38:24 +04:00
/* 0F E5 /wm */ { BxPrefixSSE, BX_IA_PMULHW_PqQq, BxOpcodeGroupSSE_0fe5 },
/* 0F E6 /wr */ { BxPrefixSSE, BX_IA_ERROR, BxOpcodeGroupSSE_0fe6 },
2010-05-13 09:38:24 +04:00
/* 0F E6 /wm */ { BxPrefixSSE, BX_IA_ERROR, BxOpcodeGroupSSE_0fe6 },
/* 0F E7 /wr */ { 0, BX_IA_ERROR }, // MOVNTQ/MOVNTDQ SSE group
2010-05-13 09:38:24 +04:00
/* 0F E7 /wm */ { BxPrefixSSE, BX_IA_MOVNTQ_MqPq, BxOpcodeGroupSSE_0fe7M },
/* 0F E8 /wr */ { BxPrefixSSE, BX_IA_PSUBSB_PqQq, BxOpcodeGroupSSE_0fe8 },
2010-05-13 09:38:24 +04:00
/* 0F E8 /wm */ { BxPrefixSSE, BX_IA_PSUBSB_PqQq, BxOpcodeGroupSSE_0fe8 },
/* 0F E9 /wr */ { BxPrefixSSE, BX_IA_PSUBSW_PqQq, BxOpcodeGroupSSE_0fe9 },
2010-05-13 09:38:24 +04:00
/* 0F E9 /wm */ { BxPrefixSSE, BX_IA_PSUBSW_PqQq, BxOpcodeGroupSSE_0fe9 },
/* 0F EA /wr */ { BxPrefixSSE, BX_IA_PMINSW_PqQq, BxOpcodeGroupSSE_0fea },
2010-05-13 09:38:24 +04:00
/* 0F EA /wm */ { BxPrefixSSE, BX_IA_PMINSW_PqQq, BxOpcodeGroupSSE_0fea },
/* 0F EB /wr */ { BxPrefixSSE, BX_IA_POR_PqQq, BxOpcodeGroupSSE_0feb },
2010-05-13 09:38:24 +04:00
/* 0F EB /wm */ { BxPrefixSSE, BX_IA_POR_PqQq, BxOpcodeGroupSSE_0feb },
/* 0F EC /wr */ { BxPrefixSSE, BX_IA_PADDSB_PqQq, BxOpcodeGroupSSE_0fec },
/* 0F EC /wm */ { BxPrefixSSE, BX_IA_PADDSB_PqQq, BxOpcodeGroupSSE_0fec },
2010-05-13 09:38:24 +04:00
/* 0F ED /wr */ { BxPrefixSSE, BX_IA_PADDSW_PqQq, BxOpcodeGroupSSE_0fed },
/* 0F ED /wm */ { BxPrefixSSE, BX_IA_PADDSW_PqQq, BxOpcodeGroupSSE_0fed },
2010-05-13 09:38:24 +04:00
/* 0F EE /wr */ { BxPrefixSSE, BX_IA_PMAXSW_PqQq, BxOpcodeGroupSSE_0fee },
/* 0F EE /wm */ { BxPrefixSSE, BX_IA_PMAXSW_PqQq, BxOpcodeGroupSSE_0fee },
2010-05-13 09:38:24 +04:00
/* 0F EF /wr */ { BxPrefixSSE, BX_IA_PXOR_PqQq, BxOpcodeGroupSSE_0fef },
/* 0F EF /wm */ { BxPrefixSSE, BX_IA_PXOR_PqQq, BxOpcodeGroupSSE_0fef },
2010-05-13 09:38:24 +04:00
/* 0F F0 /wr */ { 0, BX_IA_ERROR }, // LDDQU SSE group
/* 0F F0 /wm */ { BxPrefixSSEF2, BX_IA_LDDQU_VdqMdq },
2010-05-13 09:38:24 +04:00
/* 0F F1 /wr */ { BxPrefixSSE, BX_IA_PSLLW_PqQq, BxOpcodeGroupSSE_0ff1 },
/* 0F F1 /wm */ { BxPrefixSSE, BX_IA_PSLLW_PqQq, BxOpcodeGroupSSE_0ff1 },
2010-05-13 09:38:24 +04:00
/* 0F F2 /wr */ { BxPrefixSSE, BX_IA_PSLLD_PqQq, BxOpcodeGroupSSE_0ff2 },
/* 0F F2 /wm */ { BxPrefixSSE, BX_IA_PSLLD_PqQq, BxOpcodeGroupSSE_0ff2 },
2010-05-13 09:38:24 +04:00
/* 0F F3 /wr */ { BxPrefixSSE, BX_IA_PSLLQ_PqQq, BxOpcodeGroupSSE_0ff3 },
/* 0F F3 /wm */ { BxPrefixSSE, BX_IA_PSLLQ_PqQq, BxOpcodeGroupSSE_0ff3 },
2010-05-13 09:38:24 +04:00
/* 0F F4 /wr */ { BxPrefixSSE, BX_IA_PMULUDQ_PqQq, BxOpcodeGroupSSE_0ff4 },
/* 0F F4 /wm */ { BxPrefixSSE, BX_IA_PMULUDQ_PqQq, BxOpcodeGroupSSE_0ff4 },
2010-05-13 09:38:24 +04:00
/* 0F F5 /wr */ { BxPrefixSSE, BX_IA_PMADDWD_PqQq, BxOpcodeGroupSSE_0ff5 },
/* 0F F5 /wm */ { BxPrefixSSE, BX_IA_PMADDWD_PqQq, BxOpcodeGroupSSE_0ff5 },
2010-05-13 09:38:24 +04:00
/* 0F F6 /wr */ { BxPrefixSSE, BX_IA_PSADBW_PqQq, BxOpcodeGroupSSE_0ff6 },
/* 0F F6 /wm */ { BxPrefixSSE, BX_IA_PSADBW_PqQq, BxOpcodeGroupSSE_0ff6 },
2010-05-13 09:38:24 +04:00
/* 0F F7 /wr */ { BxPrefixSSE, BX_IA_MASKMOVQ_PqPRq, BxOpcodeGroupSSE_0ff7R },
2008-04-16 09:56:55 +04:00
/* 0F F7 /wm */ { 0, BX_IA_ERROR }, // MASKMOV SSE group
2010-05-13 09:38:24 +04:00
/* 0F F8 /wr */ { BxPrefixSSE, BX_IA_PSUBB_PqQq, BxOpcodeGroupSSE_0ff8 },
/* 0F F8 /wm */ { BxPrefixSSE, BX_IA_PSUBB_PqQq, BxOpcodeGroupSSE_0ff8 },
2010-05-13 09:38:24 +04:00
/* 0F F9 /wr */ { BxPrefixSSE, BX_IA_PSUBW_PqQq, BxOpcodeGroupSSE_0ff9 },
/* 0F F9 /wm */ { BxPrefixSSE, BX_IA_PSUBW_PqQq, BxOpcodeGroupSSE_0ff9 },
2010-05-13 09:38:24 +04:00
/* 0F FA /wr */ { BxPrefixSSE, BX_IA_PSUBD_PqQq, BxOpcodeGroupSSE_0ffa },
/* 0F FA /wm */ { BxPrefixSSE, BX_IA_PSUBD_PqQq, BxOpcodeGroupSSE_0ffa },
2010-05-13 09:38:24 +04:00
/* 0F FB /wr */ { BxPrefixSSE, BX_IA_PSUBQ_PqQq, BxOpcodeGroupSSE_0ffb },
/* 0F FB /wm */ { BxPrefixSSE, BX_IA_PSUBQ_PqQq, BxOpcodeGroupSSE_0ffb },
2010-05-13 09:38:24 +04:00
/* 0F FC /wr */ { BxPrefixSSE, BX_IA_PADDB_PqQq, BxOpcodeGroupSSE_0ffc },
/* 0F FC /wm */ { BxPrefixSSE, BX_IA_PADDB_PqQq, BxOpcodeGroupSSE_0ffc },
2010-05-13 09:38:24 +04:00
/* 0F FD /wr */ { BxPrefixSSE, BX_IA_PADDW_PqQq, BxOpcodeGroupSSE_0ffd },
/* 0F FD /wm */ { BxPrefixSSE, BX_IA_PADDW_PqQq, BxOpcodeGroupSSE_0ffd },
2010-05-13 09:38:24 +04:00
/* 0F FE /wr */ { BxPrefixSSE, BX_IA_PADDD_PqQq, BxOpcodeGroupSSE_0ffe },
/* 0F FE /wm */ { BxPrefixSSE, BX_IA_PADDD_PqQq, BxOpcodeGroupSSE_0ffe },
2010-05-13 09:38:24 +04:00
/* 0F FF /wr */ { 0, BX_IA_ERROR },
/* 0F FF /wm */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
// 512 (/r) + 512 (/m) entries for 32bit mode
/* 00 /dr */ { BxArithDstRM, BX_IA_ADD_GbEbR },
/* 00 /dm */ { BxLockable, BX_IA_ADD_EbGbM },
2010-05-13 09:38:24 +04:00
/* 01 /dr */ { BxArithDstRM, BX_IA_ADD_GdEdR },
/* 01 /dm */ { BxLockable, BX_IA_ADD_EdGdM },
2010-05-13 09:38:24 +04:00
/* 02 /dr */ { 0, BX_IA_ADD_GbEbR },
/* 02 /dm */ { 0, BX_IA_ADD_GbEbM },
2010-05-13 09:38:24 +04:00
/* 03 /dr */ { 0, BX_IA_ADD_GdEdR },
/* 03 /dm */ { 0, BX_IA_ADD_GdEdM },
2010-05-13 09:38:24 +04:00
/* 04 /dr */ { BxImmediate_Ib, BX_IA_ADD_ALIb },
/* 04 /dm */ { BxImmediate_Ib, BX_IA_ADD_ALIb },
2010-05-13 09:38:24 +04:00
/* 05 /dr */ { BxImmediate_Id, BX_IA_ADD_EAXId },
/* 05 /dm */ { BxImmediate_Id, BX_IA_ADD_EAXId },
2010-05-13 09:38:24 +04:00
/* 06 /dr */ { 0, BX_IA_PUSH32_ES },
/* 06 /dm */ { 0, BX_IA_PUSH32_ES },
2010-05-13 09:38:24 +04:00
/* 07 /dr */ { 0, BX_IA_POP32_ES },
/* 07 /dm */ { 0, BX_IA_POP32_ES },
2010-05-13 09:38:24 +04:00
/* 08 /dr */ { BxArithDstRM, BX_IA_OR_GbEbR },
/* 08 /dm */ { BxLockable, BX_IA_OR_EbGbM },
2010-05-13 09:38:24 +04:00
/* 09 /dr */ { BxArithDstRM, BX_IA_OR_GdEdR },
/* 09 /dm */ { BxLockable, BX_IA_OR_EdGdM },
2010-05-13 09:38:24 +04:00
/* 0A /dr */ { 0, BX_IA_OR_GbEbR },
/* 0A /dm */ { 0, BX_IA_OR_GbEbM },
2010-05-13 09:38:24 +04:00
/* 0B /dr */ { 0, BX_IA_OR_GdEdR },
/* 0B /dm */ { 0, BX_IA_OR_GdEdM },
2010-05-13 09:38:24 +04:00
/* 0C /dr */ { BxImmediate_Ib, BX_IA_OR_ALIb },
/* 0C /dm */ { BxImmediate_Ib, BX_IA_OR_ALIb },
2010-05-13 09:38:24 +04:00
/* 0D /dr */ { BxImmediate_Id, BX_IA_OR_EAXId },
/* 0D /dm */ { BxImmediate_Id, BX_IA_OR_EAXId },
2010-05-13 09:38:24 +04:00
/* 0E /dr */ { 0, BX_IA_PUSH32_CS },
/* 0E /dm */ { 0, BX_IA_PUSH32_CS },
2010-05-13 09:38:24 +04:00
/* 0F /dr */ { 0, BX_IA_ERROR }, // 2-byte escape
/* 0F /dm */ { 0, BX_IA_ERROR }, // 2-byte escape
2010-05-13 09:38:24 +04:00
/* 10 /dr */ { BxArithDstRM, BX_IA_ADC_GbEbR },
/* 10 /dm */ { BxLockable, BX_IA_ADC_EbGbM },
2010-05-13 09:38:24 +04:00
/* 11 /dr */ { BxArithDstRM, BX_IA_ADC_GdEdR },
/* 11 /dm */ { BxLockable, BX_IA_ADC_EdGdM },
2010-05-13 09:38:24 +04:00
/* 12 /dr */ { 0, BX_IA_ADC_GbEbR },
/* 12 /dm */ { 0, BX_IA_ADC_GbEbM },
2010-05-13 09:38:24 +04:00
/* 13 /dr */ { 0, BX_IA_ADC_GdEdR },
/* 13 /dm */ { 0, BX_IA_ADC_GdEdM },
2010-05-13 09:38:24 +04:00
/* 14 /dr */ { BxImmediate_Ib, BX_IA_ADC_ALIb },
/* 14 /dm */ { BxImmediate_Ib, BX_IA_ADC_ALIb },
2010-05-13 09:38:24 +04:00
/* 15 /dr */ { BxImmediate_Id, BX_IA_ADC_EAXId },
/* 15 /dm */ { BxImmediate_Id, BX_IA_ADC_EAXId },
2010-05-13 09:38:24 +04:00
/* 16 /dr */ { 0, BX_IA_PUSH32_SS },
/* 16 /dm */ { 0, BX_IA_PUSH32_SS },
2010-05-13 09:38:24 +04:00
/* 17 /dr */ { BxTraceEnd, BX_IA_POP32_SS }, // async_event = 1
/* 17 /dm */ { BxTraceEnd, BX_IA_POP32_SS }, // async_event = 1
2010-05-13 09:38:24 +04:00
/* 18 /dr */ { BxArithDstRM, BX_IA_SBB_GbEbR },
/* 18 /dm */ { BxLockable, BX_IA_SBB_EbGbM },
2010-05-13 09:38:24 +04:00
/* 19 /dr */ { BxArithDstRM, BX_IA_SBB_GdEdR },
/* 19 /dm */ { BxLockable, BX_IA_SBB_EdGdM },
2010-05-13 09:38:24 +04:00
/* 1A /dr */ { 0, BX_IA_SBB_GbEbR },
/* 1A /dm */ { 0, BX_IA_SBB_GbEbM },
2010-05-13 09:38:24 +04:00
/* 1B /dr */ { 0, BX_IA_SBB_GdEdR },
/* 1B /dm */ { 0, BX_IA_SBB_GdEdM },
2010-05-13 09:38:24 +04:00
/* 1C /dr */ { BxImmediate_Ib, BX_IA_SBB_ALIb },
/* 1C /dm */ { BxImmediate_Ib, BX_IA_SBB_ALIb },
2010-05-13 09:38:24 +04:00
/* 1D /dr */ { BxImmediate_Id, BX_IA_SBB_EAXId },
/* 1D /dm */ { BxImmediate_Id, BX_IA_SBB_EAXId },
2010-05-13 09:38:24 +04:00
/* 1E /dr */ { 0, BX_IA_PUSH32_DS },
/* 1E /dm */ { 0, BX_IA_PUSH32_DS },
2010-05-13 09:38:24 +04:00
/* 1F /dr */ { 0, BX_IA_POP32_DS },
/* 1F /dm */ { 0, BX_IA_POP32_DS },
2010-05-13 09:38:24 +04:00
/* 20 /dr */ { BxArithDstRM, BX_IA_AND_GbEbR },
/* 20 /dm */ { BxLockable, BX_IA_AND_EbGbM },
2010-05-13 09:38:24 +04:00
/* 21 /dr */ { BxArithDstRM, BX_IA_AND_GdEdR },
/* 21 /dm */ { BxLockable, BX_IA_AND_EdGdM },
2010-05-13 09:38:24 +04:00
/* 22 /dr */ { 0, BX_IA_AND_GbEbR },
/* 22 /dm */ { 0, BX_IA_AND_GbEbM },
2010-05-13 09:38:24 +04:00
/* 23 /dr */ { 0, BX_IA_AND_GdEdR },
/* 23 /dm */ { 0, BX_IA_AND_GdEdM },
2010-05-13 09:38:24 +04:00
/* 24 /dr */ { BxImmediate_Ib, BX_IA_AND_ALIb },
/* 24 /dm */ { BxImmediate_Ib, BX_IA_AND_ALIb },
2010-05-13 09:38:24 +04:00
/* 25 /dr */ { BxImmediate_Id, BX_IA_AND_EAXId },
/* 25 /dm */ { BxImmediate_Id, BX_IA_AND_EAXId },
2010-05-13 09:38:24 +04:00
/* 26 /dr */ { 0, BX_IA_ERROR }, // ES:
/* 26 /dm */ { 0, BX_IA_ERROR }, // ES:
2010-05-13 09:38:24 +04:00
/* 27 /dr */ { 0, BX_IA_DAA },
/* 27 /dm */ { 0, BX_IA_DAA },
2010-05-13 09:38:24 +04:00
/* 28 /dr */ { BxArithDstRM, BX_IA_SUB_GbEbR },
/* 28 /dm */ { BxLockable, BX_IA_SUB_EbGbM },
2010-05-13 09:38:24 +04:00
/* 29 /dr */ { BxArithDstRM, BX_IA_SUB_GdEdR },
/* 29 /dm */ { BxLockable, BX_IA_SUB_EdGdM },
2010-05-13 09:38:24 +04:00
/* 2A /dr */ { 0, BX_IA_SUB_GbEbR },
/* 2A /dm */ { 0, BX_IA_SUB_GbEbM },
2010-05-13 09:38:24 +04:00
/* 2B /dr */ { 0, BX_IA_SUB_GdEdR },
/* 2B /dm */ { 0, BX_IA_SUB_GdEdM },
2010-05-13 09:38:24 +04:00
/* 2C /dr */ { BxImmediate_Ib, BX_IA_SUB_ALIb },
/* 2C /dm */ { BxImmediate_Ib, BX_IA_SUB_ALIb },
2010-05-13 09:38:24 +04:00
/* 2D /dr */ { BxImmediate_Id, BX_IA_SUB_EAXId },
/* 2D /dm */ { BxImmediate_Id, BX_IA_SUB_EAXId },
2010-05-13 09:38:24 +04:00
/* 2E /dr */ { 0, BX_IA_ERROR }, // CS:
/* 2E /dm */ { 0, BX_IA_ERROR }, // CS:
2010-05-13 09:38:24 +04:00
/* 2F /dr */ { 0, BX_IA_DAS },
/* 2F /dm */ { 0, BX_IA_DAS },
2010-05-13 09:38:24 +04:00
/* 30 /dr */ { BxArithDstRM, BX_IA_XOR_GbEbR },
/* 30 /dm */ { BxLockable, BX_IA_XOR_EbGbM },
2010-05-13 09:38:24 +04:00
/* 31 /dr */ { BxArithDstRM, BX_IA_XOR_GdEdR },
/* 31 /dm */ { BxLockable, BX_IA_XOR_EdGdM },
2010-05-13 09:38:24 +04:00
/* 32 /dr */ { 0, BX_IA_XOR_GbEbR },
/* 32 /dm */ { 0, BX_IA_XOR_GbEbM },
2010-05-13 09:38:24 +04:00
/* 33 /dr */ { 0, BX_IA_XOR_GdEdR },
/* 33 /dm */ { 0, BX_IA_XOR_GdEdM },
2010-05-13 09:38:24 +04:00
/* 34 /dr */ { BxImmediate_Ib, BX_IA_XOR_ALIb },
/* 34 /dm */ { BxImmediate_Ib, BX_IA_XOR_ALIb },
2010-05-13 09:38:24 +04:00
/* 35 /dr */ { BxImmediate_Id, BX_IA_XOR_EAXId },
/* 35 /dm */ { BxImmediate_Id, BX_IA_XOR_EAXId },
2010-05-13 09:38:24 +04:00
/* 36 /dr */ { 0, BX_IA_ERROR }, // SS:
/* 36 /dm */ { 0, BX_IA_ERROR }, // SS:
2010-05-13 09:38:24 +04:00
/* 37 /dr */ { 0, BX_IA_AAA },
/* 37 /dm */ { 0, BX_IA_AAA },
2010-05-13 09:38:24 +04:00
/* 38 /dr */ { BxArithDstRM, BX_IA_CMP_GbEbR },
/* 38 /dm */ { 0, BX_IA_CMP_EbGbM },
2010-05-13 09:38:24 +04:00
/* 39 /dr */ { BxArithDstRM, BX_IA_CMP_GdEdR },
/* 39 /dm */ { 0, BX_IA_CMP_EdGdM },
2010-05-13 09:38:24 +04:00
/* 3A /dr */ { 0, BX_IA_CMP_GbEbR },
/* 3A /dm */ { 0, BX_IA_CMP_GbEbM },
2010-05-13 09:38:24 +04:00
/* 3B /dr */ { 0, BX_IA_CMP_GdEdR },
/* 3B /dm */ { 0, BX_IA_CMP_GdEdM },
2010-05-13 09:38:24 +04:00
/* 3C /dr */ { BxImmediate_Ib, BX_IA_CMP_ALIb },
/* 3C /dm */ { BxImmediate_Ib, BX_IA_CMP_ALIb },
2010-05-13 09:38:24 +04:00
/* 3D /dr */ { BxImmediate_Id, BX_IA_CMP_EAXId },
/* 3D /dm */ { BxImmediate_Id, BX_IA_CMP_EAXId },
2010-05-13 09:38:24 +04:00
/* 3E /dr */ { 0, BX_IA_ERROR }, // DS:
/* 3E /dm */ { 0, BX_IA_ERROR }, // DS:
2010-05-13 09:38:24 +04:00
/* 3F /dr */ { 0, BX_IA_AAS },
/* 3F /dm */ { 0, BX_IA_AAS },
2010-05-13 09:38:24 +04:00
/* 40 /dr */ { 0, BX_IA_INC_ERX },
/* 40 /dm */ { 0, BX_IA_INC_ERX },
2010-05-13 09:38:24 +04:00
/* 41 /dr */ { 0, BX_IA_INC_ERX },
/* 41 /dm */ { 0, BX_IA_INC_ERX },
2010-05-13 09:38:24 +04:00
/* 42 /dr */ { 0, BX_IA_INC_ERX },
/* 42 /dm */ { 0, BX_IA_INC_ERX },
2010-05-13 09:38:24 +04:00
/* 43 /dr */ { 0, BX_IA_INC_ERX },
/* 43 /dm */ { 0, BX_IA_INC_ERX },
2010-05-13 09:38:24 +04:00
/* 44 /dr */ { 0, BX_IA_INC_ERX },
/* 44 /dm */ { 0, BX_IA_INC_ERX },
2010-05-13 09:38:24 +04:00
/* 45 /dr */ { 0, BX_IA_INC_ERX },
/* 45 /dm */ { 0, BX_IA_INC_ERX },
2010-05-13 09:38:24 +04:00
/* 46 /dr */ { 0, BX_IA_INC_ERX },
/* 46 /dm */ { 0, BX_IA_INC_ERX },
2010-05-13 09:38:24 +04:00
/* 47 /dr */ { 0, BX_IA_INC_ERX },
/* 47 /dm */ { 0, BX_IA_INC_ERX },
2010-05-13 09:38:24 +04:00
/* 48 /dr */ { 0, BX_IA_DEC_ERX },
/* 48 /dm */ { 0, BX_IA_DEC_ERX },
2010-05-13 09:38:24 +04:00
/* 49 /dr */ { 0, BX_IA_DEC_ERX },
/* 49 /dm */ { 0, BX_IA_DEC_ERX },
2010-05-13 09:38:24 +04:00
/* 4A /dr */ { 0, BX_IA_DEC_ERX },
/* 4A /dm */ { 0, BX_IA_DEC_ERX },
2010-05-13 09:38:24 +04:00
/* 4B /dr */ { 0, BX_IA_DEC_ERX },
/* 4B /dm */ { 0, BX_IA_DEC_ERX },
2010-05-13 09:38:24 +04:00
/* 4C /dr */ { 0, BX_IA_DEC_ERX },
/* 4C /dm */ { 0, BX_IA_DEC_ERX },
2010-05-13 09:38:24 +04:00
/* 4D /dr */ { 0, BX_IA_DEC_ERX },
/* 4D /dm */ { 0, BX_IA_DEC_ERX },
2010-05-13 09:38:24 +04:00
/* 4E /dr */ { 0, BX_IA_DEC_ERX },
/* 4E /dm */ { 0, BX_IA_DEC_ERX },
2010-05-13 09:38:24 +04:00
/* 4F /dr */ { 0, BX_IA_DEC_ERX },
/* 4F /dm */ { 0, BX_IA_DEC_ERX },
2010-05-13 09:38:24 +04:00
/* 50 /dr */ { 0, BX_IA_PUSH_ERX },
/* 50 /dm */ { 0, BX_IA_PUSH_ERX },
2010-05-13 09:38:24 +04:00
/* 51 /dr */ { 0, BX_IA_PUSH_ERX },
/* 51 /dm */ { 0, BX_IA_PUSH_ERX },
2010-05-13 09:38:24 +04:00
/* 52 /dr */ { 0, BX_IA_PUSH_ERX },
/* 52 /dm */ { 0, BX_IA_PUSH_ERX },
2010-05-13 09:38:24 +04:00
/* 53 /dr */ { 0, BX_IA_PUSH_ERX },
/* 53 /dm */ { 0, BX_IA_PUSH_ERX },
2010-05-13 09:38:24 +04:00
/* 54 /dr */ { 0, BX_IA_PUSH_ERX },
/* 54 /dm */ { 0, BX_IA_PUSH_ERX },
2010-05-13 09:38:24 +04:00
/* 55 /dr */ { 0, BX_IA_PUSH_ERX },
/* 55 /dm */ { 0, BX_IA_PUSH_ERX },
2010-05-13 09:38:24 +04:00
/* 56 /dr */ { 0, BX_IA_PUSH_ERX },
/* 56 /dm */ { 0, BX_IA_PUSH_ERX },
2010-05-13 09:38:24 +04:00
/* 57 /dr */ { 0, BX_IA_PUSH_ERX },
/* 57 /dm */ { 0, BX_IA_PUSH_ERX },
2010-05-13 09:38:24 +04:00
/* 58 /dr */ { 0, BX_IA_POP_ERX },
/* 58 /dm */ { 0, BX_IA_POP_ERX },
2010-05-13 09:38:24 +04:00
/* 59 /dr */ { 0, BX_IA_POP_ERX },
/* 59 /dm */ { 0, BX_IA_POP_ERX },
2010-05-13 09:38:24 +04:00
/* 5A /dr */ { 0, BX_IA_POP_ERX },
/* 5A /dm */ { 0, BX_IA_POP_ERX },
2010-05-13 09:38:24 +04:00
/* 5B /dr */ { 0, BX_IA_POP_ERX },
/* 5B /dm */ { 0, BX_IA_POP_ERX },
2010-05-13 09:38:24 +04:00
/* 5C /dr */ { 0, BX_IA_POP_ERX },
/* 5C /dm */ { 0, BX_IA_POP_ERX },
2010-05-13 09:38:24 +04:00
/* 5D /dr */ { 0, BX_IA_POP_ERX },
/* 5D /dm */ { 0, BX_IA_POP_ERX },
2010-05-13 09:38:24 +04:00
/* 5E /dr */ { 0, BX_IA_POP_ERX },
/* 5E /dm */ { 0, BX_IA_POP_ERX },
2010-05-13 09:38:24 +04:00
/* 5F /dr */ { 0, BX_IA_POP_ERX },
/* 5F /dm */ { 0, BX_IA_POP_ERX },
2010-05-13 09:38:24 +04:00
/* 60 /dr */ { 0, BX_IA_PUSHAD32 },
/* 60 /dm */ { 0, BX_IA_PUSHAD32 },
2010-05-13 09:38:24 +04:00
/* 61 /dr */ { 0, BX_IA_POPAD32 },
/* 61 /dm */ { 0, BX_IA_POPAD32 },
2010-05-13 09:38:24 +04:00
/* 62 /dr */ { 0, BX_IA_ERROR }, // BOUND
/* 62 /dm */ { 0, BX_IA_BOUND_GdMa },
2010-05-13 09:38:24 +04:00
/* 63 /dr */ { 0, BX_IA_ARPL_EwGw },
/* 63 /dm */ { 0, BX_IA_ARPL_EwGw },
2010-05-13 09:38:24 +04:00
/* 64 /dr */ { 0, BX_IA_ERROR }, // FS:
/* 64 /dm */ { 0, BX_IA_ERROR }, // FS:
2010-05-13 09:38:24 +04:00
/* 65 /dr */ { 0, BX_IA_ERROR }, // GS:
/* 65 /dm */ { 0, BX_IA_ERROR }, // GS:
2010-05-13 09:38:24 +04:00
/* 66 /dr */ { 0, BX_IA_ERROR }, // OS:
/* 66 /dm */ { 0, BX_IA_ERROR }, // OS:
2010-05-13 09:38:24 +04:00
/* 67 /dr */ { 0, BX_IA_ERROR }, // AS:
/* 67 /dm */ { 0, BX_IA_ERROR }, // AS:
2010-05-13 09:38:24 +04:00
/* 68 /dr */ { BxImmediate_Id, BX_IA_PUSH_Id },
/* 68 /dm */ { BxImmediate_Id, BX_IA_PUSH_Id },
2010-05-13 09:38:24 +04:00
/* 69 /dr */ { BxImmediate_Id, BX_IA_IMUL_GdEdIdR },
/* 69 /dm */ { BxImmediate_Id, BX_IA_IMUL_GdEdIdM },
2010-05-13 09:38:24 +04:00
/* 6A /dr */ { BxImmediate_Ib_SE, BX_IA_PUSH_Id },
/* 6A /dm */ { BxImmediate_Ib_SE, BX_IA_PUSH_Id },
2010-05-13 09:38:24 +04:00
/* 6B /dr */ { BxImmediate_Ib_SE, BX_IA_IMUL_GdEdIdR },
/* 6B /dm */ { BxImmediate_Ib_SE, BX_IA_IMUL_GdEdIdM },
2010-05-13 09:38:24 +04:00
/* 6C /dr */ { 0, BX_IA_REP_INSB_YbDX },
/* 6C /dm */ { 0, BX_IA_REP_INSB_YbDX },
2010-05-13 09:38:24 +04:00
/* 6D /dr */ { 0, BX_IA_REP_INSD_YdDX },
/* 6D /dm */ { 0, BX_IA_REP_INSD_YdDX },
2010-05-13 09:38:24 +04:00
/* 6E /dr */ { 0, BX_IA_REP_OUTSB_DXXb },
/* 6E /dm */ { 0, BX_IA_REP_OUTSB_DXXb },
2010-05-13 09:38:24 +04:00
/* 6F /dr */ { 0, BX_IA_REP_OUTSD_DXXd },
/* 6F /dm */ { 0, BX_IA_REP_OUTSD_DXXd },
2010-05-13 09:38:24 +04:00
/* 70 /dr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JO_Jd },
/* 70 /dm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JO_Jd },
2010-05-13 09:38:24 +04:00
/* 71 /dr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNO_Jd },
/* 71 /dm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNO_Jd },
2010-05-13 09:38:24 +04:00
/* 72 /dr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JB_Jd },
/* 72 /dm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JB_Jd },
2010-05-13 09:38:24 +04:00
/* 73 /dr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNB_Jd },
/* 73 /dm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNB_Jd },
2010-05-13 09:38:24 +04:00
/* 74 /dr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JZ_Jd },
/* 74 /dm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JZ_Jd },
2010-05-13 09:38:24 +04:00
/* 75 /dr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNZ_Jd },
/* 75 /dm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNZ_Jd },
2010-05-13 09:38:24 +04:00
/* 76 /dr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JBE_Jd },
/* 76 /dm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JBE_Jd },
2010-05-13 09:38:24 +04:00
/* 77 /dr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNBE_Jd },
/* 77 /dm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNBE_Jd },
2010-05-13 09:38:24 +04:00
/* 78 /dr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JS_Jd },
/* 78 /dm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JS_Jd },
2010-05-13 09:38:24 +04:00
/* 79 /dr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNS_Jd },
/* 79 /dm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNS_Jd },
2010-05-13 09:38:24 +04:00
/* 7A /dr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JP_Jd },
/* 7A /dm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JP_Jd },
2010-05-13 09:38:24 +04:00
/* 7B /dr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNP_Jd },
/* 7B /dm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNP_Jd },
2010-05-13 09:38:24 +04:00
/* 7C /dr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JL_Jd },
/* 7C /dm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JL_Jd },
2010-05-13 09:38:24 +04:00
/* 7D /dr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNL_Jd },
/* 7D /dm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNL_Jd },
2010-05-13 09:38:24 +04:00
/* 7E /dr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JLE_Jd },
/* 7E /dm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JLE_Jd },
2010-05-13 09:38:24 +04:00
/* 7F /dr */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNLE_Jd },
/* 7F /dm */ { BxImmediate_BrOff8 | BxTraceJCC, BX_IA_JNLE_Jd },
2010-05-13 09:38:24 +04:00
/* 80 /dr */ { BxGroup1 | BxImmediate_Ib, BX_IA_ERROR, BxOpcodeInfoG1EbIbR },
/* 80 /dm */ { BxGroup1 | BxImmediate_Ib, BX_IA_ERROR, BxOpcodeInfoG1EbIbM },
2010-05-13 09:38:24 +04:00
/* 81 /dr */ { BxGroup1 | BxImmediate_Id, BX_IA_ERROR, BxOpcodeInfoG1EdR },
/* 81 /dm */ { BxGroup1 | BxImmediate_Id, BX_IA_ERROR, BxOpcodeInfoG1EdM },
2010-05-13 09:38:24 +04:00
/* 82 /dr */ { BxGroup1 | BxImmediate_Ib, BX_IA_ERROR, BxOpcodeInfoG1EbIbR },
/* 82 /dm */ { BxGroup1 | BxImmediate_Ib, BX_IA_ERROR, BxOpcodeInfoG1EbIbM },
2010-05-13 09:38:24 +04:00
/* 83 /dr */ { BxGroup1 | BxImmediate_Ib_SE, BX_IA_ERROR, BxOpcodeInfoG1EdR },
/* 83 /dm */ { BxGroup1 | BxImmediate_Ib_SE, BX_IA_ERROR, BxOpcodeInfoG1EdM },
2010-05-13 09:38:24 +04:00
/* 84 /dr */ { 0, BX_IA_TEST_EbGbR },
/* 84 /dm */ { 0, BX_IA_TEST_EbGbM },
2010-05-13 09:38:24 +04:00
/* 85 /dr */ { 0, BX_IA_TEST_EdGdR },
/* 85 /dm */ { 0, BX_IA_TEST_EdGdM },
2010-05-13 09:38:24 +04:00
/* 86 /dr */ { 0, BX_IA_XCHG_EbGbR },
/* 86 /dm */ { BxLockable, BX_IA_XCHG_EbGbM },
2010-05-13 09:38:24 +04:00
/* 87 /dr */ { 0, BX_IA_XCHG_EdGdR },
/* 87 /dm */ { BxLockable, BX_IA_XCHG_EdGdM },
2010-05-13 09:38:24 +04:00
/* 88 /dr */ { BxArithDstRM, BX_IA_MOV_GbEbR },
/* 88 /dm */ { 0, BX_IA_MOV_EbGbM },
2010-05-13 09:38:24 +04:00
/* 89 /dr */ { BxArithDstRM, BX_IA_MOV_GdEdR },
2009-04-06 22:44:28 +04:00
/* 89 /dm */ { 0, BX_IA_MOV32_EdGdM },
2010-05-13 09:38:24 +04:00
/* 8A /dr */ { 0, BX_IA_MOV_GbEbR },
/* 8A /dm */ { 0, BX_IA_MOV_GbEbM },
2010-05-13 09:38:24 +04:00
/* 8B /dr */ { 0, BX_IA_MOV_GdEdR },
2008-09-07 01:10:40 +04:00
/* 8B /dm */ { 0, BX_IA_MOV32_GdEdM },
2010-05-13 09:38:24 +04:00
/* 8C /dr */ { 0, BX_IA_MOV_EwSwR },
/* 8C /dm */ { 0, BX_IA_MOV_EwSwM },
2010-05-13 09:38:24 +04:00
/* 8D /dr */ { 0, BX_IA_ERROR }, // LEA
/* 8D /dm */ { 0, BX_IA_LEA_GdM },
2010-05-13 09:38:24 +04:00
/* 8E /dr */ { 0, BX_IA_MOV_SwEw },
/* 8E /dm */ { 0, BX_IA_MOV_SwEw },
2010-05-13 09:38:24 +04:00
/* 8F /dr */ { BxGroup1A, BX_IA_ERROR, BxOpcodeInfoG1AEdR },
2008-05-01 01:32:33 +04:00
/* 8F /dm */ { BxGroup1A, BX_IA_ERROR, BxOpcodeInfoG1AEdM },
2010-05-13 09:38:24 +04:00
/* 90 /dr */ { BxPrefixSSE, BX_IA_NOP, BxOpcodeGroupSSE_PAUSE },
/* 90 /dm */ { BxPrefixSSE, BX_IA_NOP, BxOpcodeGroupSSE_PAUSE },
2010-05-13 09:38:24 +04:00
/* 91 /dr */ { 0, BX_IA_XCHG_ERXEAX },
/* 91 /dm */ { 0, BX_IA_XCHG_ERXEAX },
2010-05-13 09:38:24 +04:00
/* 92 /dr */ { 0, BX_IA_XCHG_ERXEAX },
/* 92 /dm */ { 0, BX_IA_XCHG_ERXEAX },
2010-05-13 09:38:24 +04:00
/* 93 /dr */ { 0, BX_IA_XCHG_ERXEAX },
/* 93 /dm */ { 0, BX_IA_XCHG_ERXEAX },
2010-05-13 09:38:24 +04:00
/* 94 /dr */ { 0, BX_IA_XCHG_ERXEAX },
/* 94 /dm */ { 0, BX_IA_XCHG_ERXEAX },
2010-05-13 09:38:24 +04:00
/* 95 /dr */ { 0, BX_IA_XCHG_ERXEAX },
/* 95 /dm */ { 0, BX_IA_XCHG_ERXEAX },
2010-05-13 09:38:24 +04:00
/* 96 /dr */ { 0, BX_IA_XCHG_ERXEAX },
/* 96 /dm */ { 0, BX_IA_XCHG_ERXEAX },
2010-05-13 09:38:24 +04:00
/* 97 /dr */ { 0, BX_IA_XCHG_ERXEAX },
/* 97 /dm */ { 0, BX_IA_XCHG_ERXEAX },
2010-05-13 09:38:24 +04:00
/* 98 /dr */ { 0, BX_IA_CWDE },
/* 98 /dm */ { 0, BX_IA_CWDE },
2010-05-13 09:38:24 +04:00
/* 99 /dr */ { 0, BX_IA_CDQ },
/* 99 /dm */ { 0, BX_IA_CDQ },
2010-05-13 09:38:24 +04:00
/* 9A /dr */ { BxImmediate_IdIw | BxTraceEnd, BX_IA_CALL32_Ap },
2008-08-24 02:27:58 +04:00
/* 9A /dm */ { BxImmediate_IdIw | BxTraceEnd, BX_IA_CALL32_Ap },
2010-05-13 09:38:24 +04:00
/* 9B /dr */ { 0, BX_IA_FWAIT },
/* 9B /dm */ { 0, BX_IA_FWAIT },
2010-05-13 09:38:24 +04:00
/* 9C /dr */ { 0, BX_IA_PUSHF_Fd },
/* 9C /dm */ { 0, BX_IA_PUSHF_Fd },
2010-05-13 09:38:24 +04:00
/* 9D /dr */ { 0, BX_IA_POPF_Fd },
/* 9D /dm */ { 0, BX_IA_POPF_Fd },
2010-05-13 09:38:24 +04:00
/* 9E /dr */ { 0, BX_IA_SAHF },
/* 9E /dm */ { 0, BX_IA_SAHF },
2010-05-13 09:38:24 +04:00
/* 9F /dr */ { 0, BX_IA_LAHF },
/* 9F /dm */ { 0, BX_IA_LAHF },
2010-05-13 09:38:24 +04:00
/* A0 /dr */ { BxImmediate_O, BX_IA_MOV_ALOd },
/* A0 /dm */ { BxImmediate_O, BX_IA_MOV_ALOd },
2010-05-13 09:38:24 +04:00
/* A1 /dr */ { BxImmediate_O, BX_IA_MOV_EAXOd },
/* A1 /dm */ { BxImmediate_O, BX_IA_MOV_EAXOd },
2010-05-13 09:38:24 +04:00
/* A2 /dr */ { BxImmediate_O, BX_IA_MOV_OdAL },
/* A2 /dm */ { BxImmediate_O, BX_IA_MOV_OdAL },
2010-05-13 09:38:24 +04:00
/* A3 /dr */ { BxImmediate_O, BX_IA_MOV_OdEAX },
/* A3 /dm */ { BxImmediate_O, BX_IA_MOV_OdEAX },
2010-05-13 09:38:24 +04:00
/* A4 /dr */ { 0, BX_IA_REP_MOVSB_XbYb },
/* A4 /dm */ { 0, BX_IA_REP_MOVSB_XbYb },
2010-05-13 09:38:24 +04:00
/* A5 /dr */ { 0, BX_IA_REP_MOVSD_XdYd },
/* A5 /dm */ { 0, BX_IA_REP_MOVSD_XdYd },
2010-05-13 09:38:24 +04:00
/* A6 /dr */ { 0, BX_IA_REP_CMPSB_XbYb },
/* A6 /dm */ { 0, BX_IA_REP_CMPSB_XbYb },
2010-05-13 09:38:24 +04:00
/* A7 /dr */ { 0, BX_IA_REP_CMPSD_XdYd },
/* A7 /dm */ { 0, BX_IA_REP_CMPSD_XdYd },
2010-05-13 09:38:24 +04:00
/* A8 /dr */ { BxImmediate_Ib, BX_IA_TEST_ALIb },
/* A8 /dm */ { BxImmediate_Ib, BX_IA_TEST_ALIb },
2010-05-13 09:38:24 +04:00
/* A9 /dr */ { BxImmediate_Id, BX_IA_TEST_EAXId },
/* A9 /dm */ { BxImmediate_Id, BX_IA_TEST_EAXId },
2010-05-13 09:38:24 +04:00
/* AA /dr */ { 0, BX_IA_REP_STOSB_YbAL },
/* AA /dm */ { 0, BX_IA_REP_STOSB_YbAL },
2010-05-13 09:38:24 +04:00
/* AB /dr */ { 0, BX_IA_REP_STOSD_YdEAX },
/* AB /dm */ { 0, BX_IA_REP_STOSD_YdEAX },
2010-05-13 09:38:24 +04:00
/* AC /dr */ { 0, BX_IA_REP_LODSB_ALXb },
/* AC /dm */ { 0, BX_IA_REP_LODSB_ALXb },
2010-05-13 09:38:24 +04:00
/* AD /dr */ { 0, BX_IA_REP_LODSD_EAXXd },
/* AD /dm */ { 0, BX_IA_REP_LODSD_EAXXd },
2010-05-13 09:38:24 +04:00
/* AE /dr */ { 0, BX_IA_REP_SCASB_ALXb },
/* AE /dm */ { 0, BX_IA_REP_SCASB_ALXb },
2010-05-13 09:38:24 +04:00
/* AF /dr */ { 0, BX_IA_REP_SCASD_EAXXd },
/* AF /dm */ { 0, BX_IA_REP_SCASD_EAXXd },
2010-05-13 09:38:24 +04:00
/* B0 /dr */ { BxImmediate_Ib, BX_IA_MOV_RLIb },
/* B0 /dm */ { BxImmediate_Ib, BX_IA_MOV_RLIb },
2010-05-13 09:38:24 +04:00
/* B1 /dr */ { BxImmediate_Ib, BX_IA_MOV_RLIb },
/* B1 /dm */ { BxImmediate_Ib, BX_IA_MOV_RLIb },
2010-05-13 09:38:24 +04:00
/* B2 /dr */ { BxImmediate_Ib, BX_IA_MOV_RLIb },
/* B2 /dm */ { BxImmediate_Ib, BX_IA_MOV_RLIb },
2010-05-13 09:38:24 +04:00
/* B3 /dr */ { BxImmediate_Ib, BX_IA_MOV_RLIb },
/* B3 /dm */ { BxImmediate_Ib, BX_IA_MOV_RLIb },
2010-05-13 09:38:24 +04:00
/* B4 /dr */ { BxImmediate_Ib, BX_IA_MOV_RHIb },
/* B4 /dm */ { BxImmediate_Ib, BX_IA_MOV_RHIb },
2010-05-13 09:38:24 +04:00
/* B5 /dr */ { BxImmediate_Ib, BX_IA_MOV_RHIb },
/* B5 /dm */ { BxImmediate_Ib, BX_IA_MOV_RHIb },
2010-05-13 09:38:24 +04:00
/* B6 /dr */ { BxImmediate_Ib, BX_IA_MOV_RHIb },
/* B6 /dm */ { BxImmediate_Ib, BX_IA_MOV_RHIb },
2010-05-13 09:38:24 +04:00
/* B7 /dr */ { BxImmediate_Ib, BX_IA_MOV_RHIb },
/* B7 /dm */ { BxImmediate_Ib, BX_IA_MOV_RHIb },
2010-05-13 09:38:24 +04:00
/* B8 /dr */ { BxImmediate_Id, BX_IA_MOV_ERXId },
/* B8 /dm */ { BxImmediate_Id, BX_IA_MOV_ERXId },
2010-05-13 09:38:24 +04:00
/* B9 /dr */ { BxImmediate_Id, BX_IA_MOV_ERXId },
/* B9 /dm */ { BxImmediate_Id, BX_IA_MOV_ERXId },
2010-05-13 09:38:24 +04:00
/* BA /dr */ { BxImmediate_Id, BX_IA_MOV_ERXId },
/* BA /dm */ { BxImmediate_Id, BX_IA_MOV_ERXId },
2010-05-13 09:38:24 +04:00
/* BB /dr */ { BxImmediate_Id, BX_IA_MOV_ERXId },
/* BB /dm */ { BxImmediate_Id, BX_IA_MOV_ERXId },
2010-05-13 09:38:24 +04:00
/* BC /dr */ { BxImmediate_Id, BX_IA_MOV_ERXId },
/* BC /dm */ { BxImmediate_Id, BX_IA_MOV_ERXId },
2010-05-13 09:38:24 +04:00
/* BD /dr */ { BxImmediate_Id, BX_IA_MOV_ERXId },
/* BD /dm */ { BxImmediate_Id, BX_IA_MOV_ERXId },
2010-05-13 09:38:24 +04:00
/* BE /dr */ { BxImmediate_Id, BX_IA_MOV_ERXId },
/* BE /dm */ { BxImmediate_Id, BX_IA_MOV_ERXId },
2010-05-13 09:38:24 +04:00
/* BF /dr */ { BxImmediate_Id, BX_IA_MOV_ERXId },
/* BF /dm */ { BxImmediate_Id, BX_IA_MOV_ERXId },
/* C0 /dr */ { BxGroup2 | BxImmediate_Ib, BX_IA_ERROR, BxOpcodeInfoG2EbR },
/* C0 /dm */ { BxGroup2 | BxImmediate_Ib, BX_IA_ERROR, BxOpcodeInfoG2EbM },
2010-05-13 09:38:24 +04:00
/* C1 /dr */ { BxGroup2 | BxImmediate_Ib, BX_IA_ERROR, BxOpcodeInfoG2EdR },
/* C1 /dm */ { BxGroup2 | BxImmediate_Ib, BX_IA_ERROR, BxOpcodeInfoG2EdM },
2010-05-13 09:38:24 +04:00
/* C2 /dr */ { BxImmediate_Iw | BxTraceEnd, BX_IA_RETnear32_Iw },
/* C2 /dm */ { BxImmediate_Iw | BxTraceEnd, BX_IA_RETnear32_Iw },
2010-05-13 09:38:24 +04:00
/* C3 /dr */ { BxTraceEnd, BX_IA_RETnear32 },
/* C3 /dm */ { BxTraceEnd, BX_IA_RETnear32 },
2010-05-13 09:38:24 +04:00
/* C4 /dr */ { 0, BX_IA_ERROR }, // LES
/* C4 /dm */ { 0, BX_IA_LES_GdMp },
2010-05-13 09:38:24 +04:00
/* C5 /dr */ { 0, BX_IA_ERROR }, // LDS
/* C5 /dm */ { 0, BX_IA_LDS_GdMp },
2010-05-13 09:38:24 +04:00
/* C6 /dr */ { BxGroup11, BX_IA_ERROR, BxOpcodeInfoG11EbR },
/* C6 /dm */ { BxGroup11, BX_IA_ERROR, BxOpcodeInfoG11EbM },
2010-05-13 09:38:24 +04:00
/* C7 /dr */ { BxGroup11, BX_IA_ERROR, BxOpcodeInfoG11EdR },
/* C7 /dm */ { BxGroup11, BX_IA_ERROR, BxOpcodeInfoG11EdM },
2010-05-13 09:38:24 +04:00
/* C8 /dr */ { BxImmediate_IwIb, BX_IA_ENTER32_IwIb },
/* C8 /dm */ { BxImmediate_IwIb, BX_IA_ENTER32_IwIb },
2010-05-13 09:38:24 +04:00
/* C9 /dr */ { 0, BX_IA_LEAVE32 },
2008-08-28 01:57:40 +04:00
/* C9 /dm */ { 0, BX_IA_LEAVE32 },
2010-05-13 09:38:24 +04:00
/* CA /dr */ { BxImmediate_Iw | BxTraceEnd, BX_IA_RETfar32_Iw },
/* CA /dm */ { BxImmediate_Iw | BxTraceEnd, BX_IA_RETfar32_Iw },
2010-05-13 09:38:24 +04:00
/* CB /dr */ { BxTraceEnd, BX_IA_RETfar32 },
/* CB /dm */ { BxTraceEnd, BX_IA_RETfar32 },
2010-05-13 09:38:24 +04:00
/* CC /dr */ { BxTraceEnd, BX_IA_INT3 },
/* CC /dm */ { BxTraceEnd, BX_IA_INT3 },
2010-05-13 09:38:24 +04:00
/* CD /dr */ { BxImmediate_Ib | BxTraceEnd, BX_IA_INT_Ib },
/* CD /dm */ { BxImmediate_Ib | BxTraceEnd, BX_IA_INT_Ib },
2010-05-13 09:38:24 +04:00
/* CE /dr */ { BxTraceEnd, BX_IA_INTO },
/* CE /dm */ { BxTraceEnd, BX_IA_INTO },
2010-05-13 09:38:24 +04:00
/* CF /dr */ { BxTraceEnd, BX_IA_IRET32 },
/* CF /dm */ { BxTraceEnd, BX_IA_IRET32 },
/* D0 /dr */ { BxGroup2 | BxImmediate_I1, BX_IA_ERROR, BxOpcodeInfoG2EbR },
/* D0 /dm */ { BxGroup2 | BxImmediate_I1, BX_IA_ERROR, BxOpcodeInfoG2EbM },
2010-05-13 09:38:24 +04:00
/* D1 /dr */ { BxGroup2 | BxImmediate_I1, BX_IA_ERROR, BxOpcodeInfoG2EdR },
/* D1 /dm */ { BxGroup2 | BxImmediate_I1, BX_IA_ERROR, BxOpcodeInfoG2EdM },
/* D2 /dr */ { BxGroup2, BX_IA_ERROR, BxOpcodeInfoG2EbR },
/* D2 /dm */ { BxGroup2, BX_IA_ERROR, BxOpcodeInfoG2EbM },
2010-05-13 09:38:24 +04:00
/* D3 /dr */ { BxGroup2, BX_IA_ERROR, BxOpcodeInfoG2EdR },
/* D3 /dm */ { BxGroup2, BX_IA_ERROR, BxOpcodeInfoG2EdM },
2010-05-13 09:38:24 +04:00
/* D4 /dr */ { BxImmediate_Ib, BX_IA_AAM },
/* D4 /dm */ { BxImmediate_Ib, BX_IA_AAM },
2010-05-13 09:38:24 +04:00
/* D5 /dr */ { BxImmediate_Ib, BX_IA_AAD },
/* D5 /dm */ { BxImmediate_Ib, BX_IA_AAD },
2010-05-13 09:38:24 +04:00
/* D6 /dr */ { 0, BX_IA_SALC },
/* D6 /dm */ { 0, BX_IA_SALC },
2010-05-13 09:38:24 +04:00
/* D7 /dr */ { 0, BX_IA_XLAT },
/* D7 /dm */ { 0, BX_IA_XLAT },
#if BX_SUPPORT_FPU
2010-05-13 09:38:24 +04:00
/* D8 /dr */ { BxGroupN, BX_IA_ERROR, BxOpcodeInfo_FloatingPointD8 },
2008-09-16 22:28:53 +04:00
/* D8 /dm */ { BxGroupFP, BX_IA_ERROR, BxOpcodeInfo_FPGroupD8 },
2010-05-13 09:38:24 +04:00
/* D9 /dr */ { BxFPEscape, BX_IA_ERROR, BxOpcodeInfo_FloatingPointD9 },
2008-09-16 22:28:53 +04:00
/* D9 /dm */ { BxGroupFP, BX_IA_ERROR, BxOpcodeInfo_FPGroupD9 },
2010-05-13 09:38:24 +04:00
/* DA /dr */ { BxFPEscape, BX_IA_ERROR, BxOpcodeInfo_FloatingPointDA },
2008-09-16 22:28:53 +04:00
/* DA /dm */ { BxGroupFP, BX_IA_ERROR, BxOpcodeInfo_FPGroupDA },
2010-05-13 09:38:24 +04:00
/* DB /dr */ { BxFPEscape, BX_IA_ERROR, BxOpcodeInfo_FloatingPointDB },
2008-09-16 22:28:53 +04:00
/* DB /dm */ { BxGroupFP, BX_IA_ERROR, BxOpcodeInfo_FPGroupDB },
2010-05-13 09:38:24 +04:00
/* DC /dr */ { BxGroupN, BX_IA_ERROR, BxOpcodeInfo_FloatingPointDC },
2008-09-16 22:28:53 +04:00
/* DC /dm */ { BxGroupFP, BX_IA_ERROR, BxOpcodeInfo_FPGroupDC },
2010-05-13 09:38:24 +04:00
/* DD /dr */ { BxGroupN, BX_IA_ERROR, BxOpcodeInfo_FloatingPointDD },
2008-09-16 22:28:53 +04:00
/* DD /dm */ { BxGroupFP, BX_IA_ERROR, BxOpcodeInfo_FPGroupDD },
2010-05-13 09:38:24 +04:00
/* DE /dr */ { BxFPEscape, BX_IA_ERROR, BxOpcodeInfo_FloatingPointDE },
2008-09-16 22:28:53 +04:00
/* DE /dm */ { BxGroupFP, BX_IA_ERROR, BxOpcodeInfo_FPGroupDE },
2010-05-13 09:38:24 +04:00
/* DF /dr */ { BxFPEscape, BX_IA_ERROR, BxOpcodeInfo_FloatingPointDF },
2008-09-16 22:28:53 +04:00
/* DF /dm */ { BxGroupFP, BX_IA_ERROR, BxOpcodeInfo_FPGroupDF },
#else
2010-05-13 09:38:24 +04:00
/* D8 /dr */ { 0, BX_IA_FPU_ESC },
/* D8 /dm */ { 0, BX_IA_FPU_ESC },
2010-05-13 09:38:24 +04:00
/* D9 /dr */ { 0, BX_IA_FPU_ESC },
/* D9 /dm */ { 0, BX_IA_FPU_ESC },
2010-05-13 09:38:24 +04:00
/* DA /dr */ { 0, BX_IA_FPU_ESC },
/* DA /dm */ { 0, BX_IA_FPU_ESC },
2010-05-13 09:38:24 +04:00
/* DB /dr */ { 0, BX_IA_FPU_ESC },
/* DB /dm */ { 0, BX_IA_FPU_ESC },
2010-05-13 09:38:24 +04:00
/* DC /dr */ { 0, BX_IA_FPU_ESC },
/* DC /dm */ { 0, BX_IA_FPU_ESC },
2010-05-13 09:38:24 +04:00
/* DD /dr */ { 0, BX_IA_FPU_ESC },
/* DD /dm */ { 0, BX_IA_FPU_ESC },
2010-05-13 09:38:24 +04:00
/* DE /dr */ { 0, BX_IA_FPU_ESC },
/* DE /dm */ { 0, BX_IA_FPU_ESC },
2010-05-13 09:38:24 +04:00
/* DF /dr */ { 0, BX_IA_FPU_ESC },
/* DF /dm */ { 0, BX_IA_FPU_ESC },
#endif
2010-05-13 09:38:24 +04:00
/* E0 /dr */ { BxImmediate_BrOff8 | BxTraceEnd, BX_IA_LOOPNE32_Jb },
/* E0 /dm */ { BxImmediate_BrOff8 | BxTraceEnd, BX_IA_LOOPNE32_Jb },
2010-05-13 09:38:24 +04:00
/* E1 /dr */ { BxImmediate_BrOff8 | BxTraceEnd, BX_IA_LOOPE32_Jb },
/* E1 /dm */ { BxImmediate_BrOff8 | BxTraceEnd, BX_IA_LOOPE32_Jb },
2010-05-13 09:38:24 +04:00
/* E2 /dr */ { BxImmediate_BrOff8 | BxTraceEnd, BX_IA_LOOP32_Jb },
/* E2 /dm */ { BxImmediate_BrOff8 | BxTraceEnd, BX_IA_LOOP32_Jb },
2010-05-13 09:38:24 +04:00
/* E3 /dr */ { BxImmediate_BrOff8 | BxTraceEnd, BX_IA_JECXZ_Jb },
/* E3 /dm */ { BxImmediate_BrOff8 | BxTraceEnd, BX_IA_JECXZ_Jb },
2010-05-13 09:38:24 +04:00
/* E4 /dr */ { BxImmediate_Ib, BX_IA_IN_ALIb },
/* E4 /dm */ { BxImmediate_Ib, BX_IA_IN_ALIb },
2010-05-13 09:38:24 +04:00
/* E5 /dr */ { BxImmediate_Ib, BX_IA_IN_EAXIb },
/* E5 /dm */ { BxImmediate_Ib, BX_IA_IN_EAXIb },
2010-05-13 09:38:24 +04:00
/* E6 /dr */ { BxImmediate_Ib, BX_IA_OUT_IbAL },
/* E6 /dm */ { BxImmediate_Ib, BX_IA_OUT_IbAL },
2010-05-13 09:38:24 +04:00
/* E7 /dr */ { BxImmediate_Ib, BX_IA_OUT_IbEAX },
/* E7 /dm */ { BxImmediate_Ib, BX_IA_OUT_IbEAX },
2010-05-13 09:38:24 +04:00
/* E8 /dr */ { BxImmediate_BrOff32 | BxTraceEnd, BX_IA_CALL_Jd },
/* E8 /dm */ { BxImmediate_BrOff32 | BxTraceEnd, BX_IA_CALL_Jd },
2010-05-13 09:38:24 +04:00
/* E9 /dr */ { BxImmediate_BrOff32 | BxTraceEnd, BX_IA_JMP_Jd },
/* E9 /dm */ { BxImmediate_BrOff32 | BxTraceEnd, BX_IA_JMP_Jd },
2010-05-13 09:38:24 +04:00
/* EA /dr */ { BxImmediate_IdIw | BxTraceEnd, BX_IA_JMP_Ap },
2008-08-24 02:27:58 +04:00
/* EA /dm */ { BxImmediate_IdIw | BxTraceEnd, BX_IA_JMP_Ap },
2010-05-13 09:38:24 +04:00
/* EB /dr */ { BxImmediate_BrOff8 | BxTraceEnd, BX_IA_JMP_Jd },
/* EB /dm */ { BxImmediate_BrOff8 | BxTraceEnd, BX_IA_JMP_Jd },
2010-05-13 09:38:24 +04:00
/* EC /dr */ { 0, BX_IA_IN_ALDX },
/* EC /dm */ { 0, BX_IA_IN_ALDX },
2010-05-13 09:38:24 +04:00
/* ED /dr */ { 0, BX_IA_IN_EAXDX },
/* ED /dm */ { 0, BX_IA_IN_EAXDX },
2010-05-13 09:38:24 +04:00
/* EE /dr */ { 0, BX_IA_OUT_DXAL },
/* EE /dm */ { 0, BX_IA_OUT_DXAL },
2010-05-13 09:38:24 +04:00
/* EF /dr */ { 0, BX_IA_OUT_DXEAX },
/* EF /dm */ { 0, BX_IA_OUT_DXEAX },
2010-05-13 09:38:24 +04:00
/* F0 /dr */ { 0, BX_IA_ERROR }, // LOCK:
/* F0 /dm */ { 0, BX_IA_ERROR }, // LOCK:
2010-05-13 09:38:24 +04:00
/* F1 /dr */ { BxTraceEnd, BX_IA_INT1 },
/* F1 /dm */ { BxTraceEnd, BX_IA_INT1 },
2010-05-13 09:38:24 +04:00
/* F2 /dr */ { 0, BX_IA_ERROR }, // REPNE/REPNZ
/* F2 /dm */ { 0, BX_IA_ERROR }, // REPNE/REPNZ
2010-05-13 09:38:24 +04:00
/* F3 /dr */ { 0, BX_IA_ERROR }, // REP,REPE/REPZ
/* F3 /dm */ { 0, BX_IA_ERROR }, // REP,REPE/REPZ
2010-05-13 09:38:24 +04:00
/* F4 /dr */ { BxTraceEnd, BX_IA_HLT },
/* F4 /dm */ { BxTraceEnd, BX_IA_HLT },
2010-05-13 09:38:24 +04:00
/* F5 /dr */ { 0, BX_IA_CMC },
/* F5 /dm */ { 0, BX_IA_CMC },
2010-05-13 09:38:24 +04:00
/* F6 /dr */ { BxGroup3, BX_IA_ERROR, BxOpcodeInfoG3EbR },
/* F6 /dm */ { BxGroup3, BX_IA_ERROR, BxOpcodeInfoG3EbM },
2010-05-13 09:38:24 +04:00
/* F7 /dr */ { BxGroup3, BX_IA_ERROR, BxOpcodeInfoG3EdR },
/* F7 /dm */ { BxGroup3, BX_IA_ERROR, BxOpcodeInfoG3EdM },
2010-05-13 09:38:24 +04:00
/* F8 /dr */ { 0, BX_IA_CLC },
/* F8 /dm */ { 0, BX_IA_CLC },
2010-05-13 09:38:24 +04:00
/* F9 /dr */ { 0, BX_IA_STC },
/* F9 /dm */ { 0, BX_IA_STC },
2010-05-13 09:38:24 +04:00
/* FA /dr */ { 0, BX_IA_CLI },
/* FA /dm */ { 0, BX_IA_CLI },
2010-05-13 09:38:24 +04:00
/* FB /dr */ { 0, BX_IA_STI },
/* FB /dm */ { 0, BX_IA_STI },
2010-05-13 09:38:24 +04:00
/* FC /dr */ { 0, BX_IA_CLD },
/* FC /dm */ { 0, BX_IA_CLD },
2010-05-13 09:38:24 +04:00
/* FD /dr */ { 0, BX_IA_STD },
/* FD /dm */ { 0, BX_IA_STD },
2010-05-13 09:38:24 +04:00
/* FE /dr */ { BxGroup5, BX_IA_ERROR, BxOpcodeInfoG4R },
/* FE /dm */ { BxGroup4, BX_IA_ERROR, BxOpcodeInfoG4M },
2010-05-13 09:38:24 +04:00
/* FF /dr */ { BxGroup5, BX_IA_ERROR, BxOpcodeInfoG5dR },
/* FF /dm */ { BxGroup5, BX_IA_ERROR, BxOpcodeInfoG5dM },
2010-05-13 09:38:24 +04:00
/* 0F 00 /dr */ { BxGroup6, BX_IA_ERROR, BxOpcodeInfoG6 },
/* 0F 00 /dm */ { BxGroup6, BX_IA_ERROR, BxOpcodeInfoG6 },
2010-05-13 09:38:24 +04:00
/* 0F 01 /dr */ { BxFPEscape, BX_IA_ERROR, BxOpcodeInfoG7R },
/* 0F 01 /dm */ { BxGroup7, BX_IA_ERROR, BxOpcodeInfoG7M },
2010-05-13 09:38:24 +04:00
/* 0F 02 /dr */ { 0, BX_IA_LAR_GvEw },
/* 0F 02 /dm */ { 0, BX_IA_LAR_GvEw },
2010-05-13 09:38:24 +04:00
/* 0F 03 /dr */ { 0, BX_IA_LSL_GvEw },
/* 0F 03 /dm */ { 0, BX_IA_LSL_GvEw },
2010-05-13 09:38:24 +04:00
/* 0F 04 /dr */ { 0, BX_IA_ERROR },
/* 0F 04 /dm */ { 0, BX_IA_ERROR },
#if BX_SUPPORT_X86_64
2010-05-13 09:38:24 +04:00
/* 0F 05 /dr */ { BxTraceEnd, BX_IA_SYSCALL },
/* 0F 05 /dm */ { BxTraceEnd, BX_IA_SYSCALL },
#elif BX_CPU_LEVEL == 2
2010-05-13 09:38:24 +04:00
/* 0F 05 /dr */ { BxTraceEnd, BX_IA_LOADALL },
/* 0F 05 /dm */ { BxTraceEnd, BX_IA_LOADALL },
#else
2010-05-13 09:38:24 +04:00
/* 0F 05 /dr */ { 0, BX_IA_ERROR },
/* 0F 05 /dm */ { 0, BX_IA_ERROR },
#endif
2010-05-13 09:38:24 +04:00
/* 0F 06 /dr */ { 0, BX_IA_CLTS },
/* 0F 06 /dm */ { 0, BX_IA_CLTS },
#if BX_SUPPORT_X86_64
2010-05-13 09:38:24 +04:00
/* 0F 07 /dr */ { BxTraceEnd, BX_IA_SYSRET },
/* 0F 07 /dm */ { BxTraceEnd, BX_IA_SYSRET },
#else
2010-05-13 09:38:24 +04:00
/* 0F 07 /dr */ { 0, BX_IA_ERROR },
/* 0F 07 /dm */ { 0, BX_IA_ERROR },
#endif
2010-05-13 09:38:24 +04:00
/* 0F 08 /dr */ { BxTraceEnd, BX_IA_INVD },
/* 0F 08 /dm */ { BxTraceEnd, BX_IA_INVD },
2010-05-13 09:38:24 +04:00
/* 0F 09 /dr */ { BxTraceEnd, BX_IA_WBINVD },
/* 0F 09 /dm */ { BxTraceEnd, BX_IA_WBINVD },
2010-05-13 09:38:24 +04:00
/* 0F 0A /dr */ { 0, BX_IA_ERROR },
/* 0F 0A /dm */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 0B /dr */ { BxTraceEnd, BX_IA_UD2A },
/* 0F 0B /dm */ { BxTraceEnd, BX_IA_UD2A },
2010-05-13 09:38:24 +04:00
/* 0F 0C /dr */ { 0, BX_IA_ERROR },
/* 0F 0C /dm */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 0D /dr */ { 0, BX_IA_PREFETCHW }, // 3DNow! PREFETCH on AMD, NOP on Intel
/* 0F 0D /dm */ { 0, BX_IA_PREFETCHW }, // 3DNow! PREFETCH on AMD, NOP on Intel
2010-05-13 09:38:24 +04:00
/* 0F 0E /dr */ { 0, BX_IA_FEMMS }, // 3DNow! FEMMS
/* 0F 0E /dm */ { 0, BX_IA_FEMMS }, // 3DNow! FEMMS
#if BX_SUPPORT_3DNOW
2010-05-13 09:38:24 +04:00
/* 0F 0F /dr */ { BxImmediate_Ib, BX_IA_ERROR },
2010-04-30 01:04:23 +04:00
/* 0F 0F /dm */ { BxImmediate_Ib, BX_IA_ERROR },
#else
2010-05-13 09:38:24 +04:00
/* 0F 0F /dr */ { 0, BX_IA_ERROR },
/* 0F 0F /dm */ { 0, BX_IA_ERROR },
#endif
2010-05-13 09:38:24 +04:00
/* 0F 10 /dr */ { BxPrefixSSE, BX_IA_MOVUPS_VpsWpsR, BxOpcodeGroupSSE_0f10R },
2009-10-24 15:17:51 +04:00
/* 0F 10 /dm */ { BxPrefixSSE, BX_IA_MOVUPS_VpsWpsM, BxOpcodeGroupSSE_0f10M },
2010-05-13 09:38:24 +04:00
/* 0F 11 /dr */ { BxPrefixSSE, BX_IA_MOVUPS_WpsVpsR, BxOpcodeGroupSSE_0f11R },
2009-10-24 15:17:51 +04:00
/* 0F 11 /dm */ { BxPrefixSSE, BX_IA_MOVUPS_WpsVpsM, BxOpcodeGroupSSE_0f11M },
2010-05-13 09:38:24 +04:00
/* 0F 12 /dr */ { BxPrefixSSE, BX_IA_MOVHLPS_VpsWpsR, BxOpcodeGroupSSE_0f12R },
2010-03-31 18:03:07 +04:00
/* 0F 12 /dm */ { BxPrefixSSE, BX_IA_MOVLPS_VpsMq, BxOpcodeGroupSSE_0f12M },
2010-05-13 09:38:24 +04:00
/* 0F 13 /dr */ { 0, BX_IA_ERROR }, // MOVLPS/PD SSE group
/* 0F 13 /dm */ { BxPrefixSSE, BX_IA_MOVLPS_MqVps, BxOpcodeGroupSSE_0f13M },
2010-05-13 09:38:24 +04:00
/* 0F 14 /dr */ { BxPrefixSSE, BX_IA_UNPCKLPS_VpsWdq, BxOpcodeGroupSSE_0f14 },
/* 0F 14 /dm */ { BxPrefixSSE, BX_IA_UNPCKLPS_VpsWdq, BxOpcodeGroupSSE_0f14 },
2010-05-13 09:38:24 +04:00
/* 0F 15 /dr */ { BxPrefixSSE, BX_IA_UNPCKHPS_VpsWdq, BxOpcodeGroupSSE_0f15 },
/* 0F 15 /dm */ { BxPrefixSSE, BX_IA_UNPCKHPS_VpsWdq, BxOpcodeGroupSSE_0f15 },
2010-05-13 09:38:24 +04:00
/* 0F 16 /dr */ { BxPrefixSSE, BX_IA_MOVLHPS_VpsWpsR, BxOpcodeGroupSSE_0f16R },
2010-03-30 20:39:57 +04:00
/* 0F 16 /dm */ { BxPrefixSSE, BX_IA_MOVHPS_VpsMq, BxOpcodeGroupSSE_0f16M },
2010-05-13 09:38:24 +04:00
/* 0F 17 /dr */ { 0, BX_IA_ERROR }, // MOHLPS/PD SSE group
/* 0F 17 /dm */ { BxPrefixSSE, BX_IA_MOVHPS_MqVps, BxOpcodeGroupSSE_0f17M },
2010-05-13 09:38:24 +04:00
#if BX_CPU_LEVEL >= 6
/* 0F 18 /dr */ { 0, BX_IA_NOP }, // PREFETCH HINT
/* 0F 18 /dm */ { 0, BX_IA_PREFETCH }, // opcode group G16, PREFETCH hints
2010-05-13 09:38:24 +04:00
/* 0F 19 /dr */ { 0, BX_IA_NOP }, // multi-byte NOP
/* 0F 19 /dm */ { 0, BX_IA_NOP }, // multi-byte NOP
2010-05-13 09:38:24 +04:00
/* 0F 1A /dr */ { 0, BX_IA_NOP }, // multi-byte NOP
/* 0F 1A /dm */ { 0, BX_IA_NOP }, // multi-byte NOP
2010-05-13 09:38:24 +04:00
/* 0F 1B /dr */ { 0, BX_IA_NOP }, // multi-byte NOP
/* 0F 1B /dm */ { 0, BX_IA_NOP }, // multi-byte NOP
2010-05-13 09:38:24 +04:00
/* 0F 1C /dr */ { 0, BX_IA_NOP }, // multi-byte NOP
/* 0F 1C /dm */ { 0, BX_IA_NOP }, // multi-byte NOP
2010-05-13 09:38:24 +04:00
/* 0F 1D /dr */ { 0, BX_IA_NOP }, // multi-byte NOP
/* 0F 1D /dm */ { 0, BX_IA_NOP }, // multi-byte NOP
2010-05-13 09:38:24 +04:00
/* 0F 1E /dr */ { 0, BX_IA_NOP }, // multi-byte NOP
/* 0F 1E /dm */ { 0, BX_IA_NOP }, // multi-byte NOP
2010-05-13 09:38:24 +04:00
/* 0F 1F /dr */ { 0, BX_IA_NOP }, // multi-byte NOP
/* 0F 1F /dm */ { 0, BX_IA_NOP }, // multi-byte NOP
#else
2010-05-13 09:38:24 +04:00
/* 0F 18 /dr */ { 0, BX_IA_ERROR },
/* 0F 18 /dm */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 19 /dr */ { 0, BX_IA_ERROR },
/* 0F 19 /dm */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 1A /dr */ { 0, BX_IA_ERROR },
/* 0F 1A /dm */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 1B /dr */ { 0, BX_IA_ERROR },
/* 0F 1B /dm */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 1C /dr */ { 0, BX_IA_ERROR },
/* 0F 1C /dm */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 1D /dr */ { 0, BX_IA_ERROR },
/* 0F 1D /dm */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 1E /dr */ { 0, BX_IA_ERROR },
/* 0F 1E /dm */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 1F /dr */ { 0, BX_IA_ERROR },
/* 0F 1F /dm */ { 0, BX_IA_ERROR },
#endif
2010-05-13 09:38:24 +04:00
/* 0F 20 /dr */ { 0, BX_IA_MOV_RdCd },
/* 0F 20 /dm */ { 0, BX_IA_MOV_RdCd },
2010-05-13 09:38:24 +04:00
/* 0F 21 /dr */ { 0, BX_IA_MOV_RdDd },
/* 0F 21 /dm */ { 0, BX_IA_MOV_RdDd },
2010-05-13 09:38:24 +04:00
/* 0F 22 /dr */ { BxTraceEnd, BX_IA_MOV_CdRd },
/* 0F 22 /dm */ { BxTraceEnd, BX_IA_MOV_CdRd },
2010-05-13 09:38:24 +04:00
/* 0F 23 /dr */ { BxTraceEnd, BX_IA_MOV_DdRd },
/* 0F 23 /dm */ { BxTraceEnd, BX_IA_MOV_DdRd },
2010-05-13 09:38:24 +04:00
/* 0F 24 /dr */ { BxTraceEnd, BX_IA_MOV_RdTd }, // not implemented
/* 0F 24 /dm */ { BxTraceEnd, BX_IA_MOV_RdTd }, // not implemented
2010-05-13 09:38:24 +04:00
/* 0F 25 /dr */ { 0, BX_IA_ERROR },
/* 0F 25 /dm */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 26 /dr */ { BxTraceEnd, BX_IA_MOV_TdRd }, // not implemented
/* 0F 26 /dm */ { BxTraceEnd, BX_IA_MOV_TdRd }, // not implemented
2010-05-13 09:38:24 +04:00
/* 0F 27 /dr */ { 0, BX_IA_ERROR },
/* 0F 27 /dm */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 28 /dr */ { BxPrefixSSE, BX_IA_MOVAPS_VpsWpsR, BxOpcodeGroupSSE_0f28R },
2009-10-24 15:17:51 +04:00
/* 0F 28 /dm */ { BxPrefixSSE, BX_IA_MOVAPS_VpsWpsM, BxOpcodeGroupSSE_0f28M },
2010-05-13 09:38:24 +04:00
/* 0F 29 /dr */ { BxPrefixSSE, BX_IA_MOVAPS_WpsVpsR, BxOpcodeGroupSSE_0f29R },
2009-10-24 15:17:51 +04:00
/* 0F 29 /dm */ { BxPrefixSSE, BX_IA_MOVAPS_WpsVpsM, BxOpcodeGroupSSE_0f29M },
2010-05-13 09:38:24 +04:00
/* 0F 2A /dr */ { BxPrefixSSE, BX_IA_CVTPI2PS_VpsQqR, BxOpcodeGroupSSE_0f2aR },
2009-08-22 15:47:42 +04:00
/* 0F 2A /dm */ { BxPrefixSSE, BX_IA_CVTPI2PS_VpsQqM, BxOpcodeGroupSSE_0f2aM },
2010-05-13 09:38:24 +04:00
/* 0F 2B /dr */ { 0, BX_IA_ERROR }, // MOVNTPS/PD/SS/SD
/* 0F 2B /dm */ { BxPrefixSSE, BX_IA_MOVNTPS_MpsVps, BxOpcodeGroupSSE_0f2bM },
2010-05-13 09:38:24 +04:00
/* 0F 2C /dr */ { BxPrefixSSE, BX_IA_CVTTPS2PI_PqWps, BxOpcodeGroupSSE_0f2c },
/* 0F 2C /dm */ { BxPrefixSSE, BX_IA_CVTTPS2PI_PqWps, BxOpcodeGroupSSE_0f2c },
2010-05-13 09:38:24 +04:00
/* 0F 2D /dr */ { BxPrefixSSE, BX_IA_CVTPS2PI_PqWps, BxOpcodeGroupSSE_0f2d },
/* 0F 2D /dm */ { BxPrefixSSE, BX_IA_CVTPS2PI_PqWps, BxOpcodeGroupSSE_0f2d },
2010-05-13 09:38:24 +04:00
/* 0F 2E /dr */ { BxPrefixSSE, BX_IA_UCOMISS_VssWss, BxOpcodeGroupSSE_0f2e },
/* 0F 2E /dm */ { BxPrefixSSE, BX_IA_UCOMISS_VssWss, BxOpcodeGroupSSE_0f2e },
2010-05-13 09:38:24 +04:00
/* 0F 2F /dr */ { BxPrefixSSE, BX_IA_COMISS_VpsWps, BxOpcodeGroupSSE_0f2f },
/* 0F 2F /dm */ { BxPrefixSSE, BX_IA_COMISS_VpsWps, BxOpcodeGroupSSE_0f2f },
2010-05-13 09:38:24 +04:00
/* 0F 30 /dr */ { 0, BX_IA_WRMSR },
/* 0F 30 /dm */ { 0, BX_IA_WRMSR },
2010-05-13 09:38:24 +04:00
/* 0F 31 /dr */ { 0, BX_IA_RDTSC },
/* 0F 31 /dm */ { 0, BX_IA_RDTSC },
2010-05-13 09:38:24 +04:00
/* 0F 32 /dr */ { 0, BX_IA_RDMSR },
/* 0F 32 /dm */ { 0, BX_IA_RDMSR },
2010-05-13 09:38:24 +04:00
/* 0F 33 /dr */ { 0, BX_IA_RDPMC },
/* 0F 33 /dm */ { 0, BX_IA_RDPMC },
2010-05-13 09:38:24 +04:00
/* 0F 34 /dr */ { BxTraceEnd, BX_IA_SYSENTER },
/* 0F 34 /dm */ { BxTraceEnd, BX_IA_SYSENTER },
2010-05-13 09:38:24 +04:00
/* 0F 35 /dr */ { BxTraceEnd, BX_IA_SYSEXIT },
/* 0F 35 /dm */ { BxTraceEnd, BX_IA_SYSEXIT },
2010-05-13 09:38:24 +04:00
/* 0F 36 /dr */ { 0, BX_IA_ERROR },
/* 0F 36 /dm */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 37 /dr */ { 0, BX_IA_ERROR },
/* 0F 37 /dm */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 38 /dr */ { Bx3ByteOp, BX_IA_ERROR, BxOpcode3ByteTable0f38 }, // 3-byte escape
/* 0F 38 /dm */ { Bx3ByteOp, BX_IA_ERROR, BxOpcode3ByteTable0f38 }, // 3-byte escape
2010-05-13 09:38:24 +04:00
/* 0F 39 /dr */ { 0, BX_IA_ERROR },
/* 0F 39 /dm */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 3A /dr */ { Bx3ByteOp | BxImmediate_Ib, BX_IA_ERROR, BxOpcode3ByteTable0f3a }, // 3-byte escape
/* 0F 3A /dm */ { Bx3ByteOp | BxImmediate_Ib, BX_IA_ERROR, BxOpcode3ByteTable0f3a }, // 3-byte escape
2010-05-13 09:38:24 +04:00
/* 0F 3B /dr */ { 0, BX_IA_ERROR },
/* 0F 3B /dm */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 3C /dr */ { 0, BX_IA_ERROR },
/* 0F 3C /dm */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 3D /dr */ { 0, BX_IA_ERROR },
/* 0F 3D /dm */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 3E /dr */ { 0, BX_IA_ERROR },
/* 0F 3E /dm */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 3F /dr */ { 0, BX_IA_ERROR },
/* 0F 3F /dm */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 40 /dr */ { 0, BX_IA_CMOVO_GdEdR },
/* 0F 40 /dm */ { 0, BX_IA_CMOVO_GdEdM },
2010-05-13 09:38:24 +04:00
/* 0F 41 /dr */ { 0, BX_IA_CMOVNO_GdEdR },
/* 0F 41 /dm */ { 0, BX_IA_CMOVNO_GdEdM },
2010-05-13 09:38:24 +04:00
/* 0F 42 /dr */ { 0, BX_IA_CMOVB_GdEdR },
/* 0F 42 /dm */ { 0, BX_IA_CMOVB_GdEdM },
2010-05-13 09:38:24 +04:00
/* 0F 43 /dr */ { 0, BX_IA_CMOVNB_GdEdR },
/* 0F 43 /dm */ { 0, BX_IA_CMOVNB_GdEdM },
2010-05-13 09:38:24 +04:00
/* 0F 44 /dr */ { 0, BX_IA_CMOVZ_GdEdR },
/* 0F 44 /dm */ { 0, BX_IA_CMOVZ_GdEdM },
2010-05-13 09:38:24 +04:00
/* 0F 45 /dr */ { 0, BX_IA_CMOVNZ_GdEdR },
/* 0F 45 /dm */ { 0, BX_IA_CMOVNZ_GdEdM },
2010-05-13 09:38:24 +04:00
/* 0F 46 /dr */ { 0, BX_IA_CMOVBE_GdEdR },
/* 0F 46 /dm */ { 0, BX_IA_CMOVBE_GdEdM },
2010-05-13 09:38:24 +04:00
/* 0F 47 /dr */ { 0, BX_IA_CMOVNBE_GdEdR },
/* 0F 47 /dm */ { 0, BX_IA_CMOVNBE_GdEdM },
2010-05-13 09:38:24 +04:00
/* 0F 48 /dr */ { 0, BX_IA_CMOVS_GdEdR },
/* 0F 48 /dm */ { 0, BX_IA_CMOVS_GdEdM },
2010-05-13 09:38:24 +04:00
/* 0F 49 /dr */ { 0, BX_IA_CMOVNS_GdEdR },
/* 0F 49 /dm */ { 0, BX_IA_CMOVNS_GdEdM },
2010-05-13 09:38:24 +04:00
/* 0F 4A /dr */ { 0, BX_IA_CMOVP_GdEdR },
/* 0F 4A /dm */ { 0, BX_IA_CMOVP_GdEdM },
2010-05-13 09:38:24 +04:00
/* 0F 4B /dr */ { 0, BX_IA_CMOVNP_GdEdR },
/* 0F 4B /dm */ { 0, BX_IA_CMOVNP_GdEdM },
2010-05-13 09:38:24 +04:00
/* 0F 4C /dr */ { 0, BX_IA_CMOVL_GdEdR },
/* 0F 4C /dm */ { 0, BX_IA_CMOVL_GdEdM },
2010-05-13 09:38:24 +04:00
/* 0F 4D /dr */ { 0, BX_IA_CMOVNL_GdEdR },
/* 0F 4D /dm */ { 0, BX_IA_CMOVNL_GdEdM },
2010-05-13 09:38:24 +04:00
/* 0F 4E /dr */ { 0, BX_IA_CMOVLE_GdEdR },
/* 0F 4E /dm */ { 0, BX_IA_CMOVLE_GdEdM },
2010-05-13 09:38:24 +04:00
/* 0F 4F /dr */ { 0, BX_IA_CMOVNLE_GdEdR },
/* 0F 4F /dm */ { 0, BX_IA_CMOVNLE_GdEdM },
2010-05-13 09:38:24 +04:00
/* 0F 50 /dr */ { BxPrefixSSE, BX_IA_MOVMSKPS_GdVRps, BxOpcodeGroupSSE_0f50 },
2010-03-30 19:01:09 +04:00
/* 0F 50 /dm */ { 0, BX_IA_ERROR }, // MOVMSKPS/PD
2010-05-13 09:38:24 +04:00
/* 0F 51 /dr */ { BxPrefixSSE, BX_IA_SQRTPS_VpsWps, BxOpcodeGroupSSE_0f51 },
/* 0F 51 /dm */ { BxPrefixSSE, BX_IA_SQRTPS_VpsWps, BxOpcodeGroupSSE_0f51 },
2010-05-13 09:38:24 +04:00
/* 0F 52 /dr */ { BxPrefixSSE, BX_IA_RSQRTPS_VpsWps, BxOpcodeGroupSSE_0f52 },
/* 0F 52 /dm */ { BxPrefixSSE, BX_IA_RSQRTPS_VpsWps, BxOpcodeGroupSSE_0f52 },
2010-05-13 09:38:24 +04:00
/* 0F 53 /dr */ { BxPrefixSSE, BX_IA_RCPPS_VpsWps, BxOpcodeGroupSSE_0f53 },
/* 0F 53 /dm */ { BxPrefixSSE, BX_IA_RCPPS_VpsWps, BxOpcodeGroupSSE_0f53 },
2010-05-13 09:38:24 +04:00
/* 0F 54 /dr */ { BxPrefixSSE, BX_IA_ANDPS_VpsWps, BxOpcodeGroupSSE_0f54 },
/* 0F 54 /dm */ { BxPrefixSSE, BX_IA_ANDPS_VpsWps, BxOpcodeGroupSSE_0f54 },
2010-05-13 09:38:24 +04:00
/* 0F 55 /dr */ { BxPrefixSSE, BX_IA_ANDNPS_VpsWps, BxOpcodeGroupSSE_0f55 },
/* 0F 55 /dm */ { BxPrefixSSE, BX_IA_ANDNPS_VpsWps, BxOpcodeGroupSSE_0f55 },
2010-05-13 09:38:24 +04:00
/* 0F 56 /dr */ { BxPrefixSSE, BX_IA_ORPS_VpsWps, BxOpcodeGroupSSE_0f56 },
/* 0F 56 /dm */ { BxPrefixSSE, BX_IA_ORPS_VpsWps, BxOpcodeGroupSSE_0f56 },
2010-05-13 09:38:24 +04:00
/* 0F 57 /dr */ { BxPrefixSSE, BX_IA_XORPS_VpsWps, BxOpcodeGroupSSE_0f57 },
/* 0F 57 /dm */ { BxPrefixSSE, BX_IA_XORPS_VpsWps, BxOpcodeGroupSSE_0f57 },
2010-05-13 09:38:24 +04:00
/* 0F 58 /dr */ { BxPrefixSSE, BX_IA_ADDPS_VpsWps, BxOpcodeGroupSSE_0f58 },
/* 0F 58 /dm */ { BxPrefixSSE, BX_IA_ADDPS_VpsWps, BxOpcodeGroupSSE_0f58 },
2010-05-13 09:38:24 +04:00
/* 0F 59 /dr */ { BxPrefixSSE, BX_IA_MULPS_VpsWps, BxOpcodeGroupSSE_0f59 },
/* 0F 59 /dm */ { BxPrefixSSE, BX_IA_MULPS_VpsWps, BxOpcodeGroupSSE_0f59 },
2010-05-13 09:38:24 +04:00
/* 0F 5A /dr */ { BxPrefixSSE, BX_IA_CVTPS2PD_VpsWps, BxOpcodeGroupSSE_0f5a },
/* 0F 5A /dm */ { BxPrefixSSE, BX_IA_CVTPS2PD_VpsWps, BxOpcodeGroupSSE_0f5a },
2010-05-13 09:38:24 +04:00
/* 0F 5B /dr */ { BxPrefixSSE, BX_IA_CVTDQ2PS_VpsWdq, BxOpcodeGroupSSE_0f5b },
/* 0F 5B /dm */ { BxPrefixSSE, BX_IA_CVTDQ2PS_VpsWdq, BxOpcodeGroupSSE_0f5b },
2010-05-13 09:38:24 +04:00
/* 0F 5C /dr */ { BxPrefixSSE, BX_IA_SUBPS_VpsWps, BxOpcodeGroupSSE_0f5c },
/* 0F 5C /dm */ { BxPrefixSSE, BX_IA_SUBPS_VpsWps, BxOpcodeGroupSSE_0f5c },
2010-05-13 09:38:24 +04:00
/* 0F 5D /dr */ { BxPrefixSSE, BX_IA_MINPS_VpsWps, BxOpcodeGroupSSE_0f5d },
/* 0F 5D /dm */ { BxPrefixSSE, BX_IA_MINPS_VpsWps, BxOpcodeGroupSSE_0f5d },
2010-05-13 09:38:24 +04:00
/* 0F 5E /dr */ { BxPrefixSSE, BX_IA_DIVPS_VpsWps, BxOpcodeGroupSSE_0f5e },
/* 0F 5E /dm */ { BxPrefixSSE, BX_IA_DIVPS_VpsWps, BxOpcodeGroupSSE_0f5e },
2010-05-13 09:38:24 +04:00
/* 0F 5F /dr */ { BxPrefixSSE, BX_IA_MAXPS_VpsWps, BxOpcodeGroupSSE_0f5f },
/* 0F 5F /dm */ { BxPrefixSSE, BX_IA_MAXPS_VpsWps, BxOpcodeGroupSSE_0f5f },
2010-05-13 09:38:24 +04:00
/* 0F 60 /dr */ { BxPrefixSSE, BX_IA_PUNPCKLBW_PqQd, BxOpcodeGroupSSE_0f60 },
/* 0F 60 /dm */ { BxPrefixSSE, BX_IA_PUNPCKLBW_PqQd, BxOpcodeGroupSSE_0f60 },
2010-05-13 09:38:24 +04:00
/* 0F 61 /dr */ { BxPrefixSSE, BX_IA_PUNPCKLWD_PqQd, BxOpcodeGroupSSE_0f61 },
/* 0F 61 /dm */ { BxPrefixSSE, BX_IA_PUNPCKLWD_PqQd, BxOpcodeGroupSSE_0f61 },
2010-05-13 09:38:24 +04:00
/* 0F 62 /dr */ { BxPrefixSSE, BX_IA_PUNPCKLDQ_PqQd, BxOpcodeGroupSSE_0f62 },
/* 0F 62 /dm */ { BxPrefixSSE, BX_IA_PUNPCKLDQ_PqQd, BxOpcodeGroupSSE_0f62 },
2010-05-13 09:38:24 +04:00
/* 0F 63 /dr */ { BxPrefixSSE, BX_IA_PACKSSWB_PqQq, BxOpcodeGroupSSE_0f63 },
/* 0F 63 /dm */ { BxPrefixSSE, BX_IA_PACKSSWB_PqQq, BxOpcodeGroupSSE_0f63 },
2010-05-13 09:38:24 +04:00
/* 0F 64 /dr */ { BxPrefixSSE, BX_IA_PCMPGTB_PqQq, BxOpcodeGroupSSE_0f64 },
/* 0F 64 /dm */ { BxPrefixSSE, BX_IA_PCMPGTB_PqQq, BxOpcodeGroupSSE_0f64 },
2010-05-13 09:38:24 +04:00
/* 0F 65 /dr */ { BxPrefixSSE, BX_IA_PCMPGTW_PqQq, BxOpcodeGroupSSE_0f65 },
/* 0F 65 /dm */ { BxPrefixSSE, BX_IA_PCMPGTW_PqQq, BxOpcodeGroupSSE_0f65 },
2010-05-13 09:38:24 +04:00
/* 0F 66 /dr */ { BxPrefixSSE, BX_IA_PCMPGTD_PqQq, BxOpcodeGroupSSE_0f66 },
/* 0F 66 /dm */ { BxPrefixSSE, BX_IA_PCMPGTD_PqQq, BxOpcodeGroupSSE_0f66 },
2010-05-13 09:38:24 +04:00
/* 0F 67 /dr */ { BxPrefixSSE, BX_IA_PACKUSWB_PqQq, BxOpcodeGroupSSE_0f67 },
/* 0F 67 /dm */ { BxPrefixSSE, BX_IA_PACKUSWB_PqQq, BxOpcodeGroupSSE_0f67 },
2010-05-13 09:38:24 +04:00
/* 0F 68 /dr */ { BxPrefixSSE, BX_IA_PUNPCKHBW_PqQq, BxOpcodeGroupSSE_0f68 },
/* 0F 68 /dm */ { BxPrefixSSE, BX_IA_PUNPCKHBW_PqQq, BxOpcodeGroupSSE_0f68 },
2010-05-13 09:38:24 +04:00
/* 0F 69 /dr */ { BxPrefixSSE, BX_IA_PUNPCKHWD_PqQq, BxOpcodeGroupSSE_0f69 },
/* 0F 69 /dm */ { BxPrefixSSE, BX_IA_PUNPCKHWD_PqQq, BxOpcodeGroupSSE_0f69 },
2010-05-13 09:38:24 +04:00
/* 0F 6A /dr */ { BxPrefixSSE, BX_IA_PUNPCKHDQ_PqQq, BxOpcodeGroupSSE_0f6a },
/* 0F 6A /dm */ { BxPrefixSSE, BX_IA_PUNPCKHDQ_PqQq, BxOpcodeGroupSSE_0f6a },
2010-05-13 09:38:24 +04:00
/* 0F 6B /dr */ { BxPrefixSSE, BX_IA_PACKSSDW_PqQq, BxOpcodeGroupSSE_0f6b },
/* 0F 6B /dm */ { BxPrefixSSE, BX_IA_PACKSSDW_PqQq, BxOpcodeGroupSSE_0f6b },
2010-05-13 09:38:24 +04:00
/* 0F 6C /dr */ { BxPrefixSSE66, BX_IA_PUNPCKLQDQ_VdqWdq },
2010-02-08 17:54:26 +03:00
/* 0F 6C /dm */ { BxPrefixSSE66, BX_IA_PUNPCKLQDQ_VdqWdq },
2010-05-13 09:38:24 +04:00
/* 0F 6D /dr */ { BxPrefixSSE66, BX_IA_PUNPCKHQDQ_VdqWdq },
2010-02-08 17:54:26 +03:00
/* 0F 6D /dm */ { BxPrefixSSE66, BX_IA_PUNPCKHQDQ_VdqWdq },
2010-05-13 09:38:24 +04:00
/* 0F 6E /dr */ { BxPrefixSSE, BX_IA_MOVD_PqEdR, BxOpcodeGroupSSE_0f6eR },
2010-02-10 20:21:15 +03:00
/* 0F 6E /dm */ { BxPrefixSSE, BX_IA_MOVD_PqEdM, BxOpcodeGroupSSE_0f6eM },
2010-05-13 09:38:24 +04:00
/* 0F 6F /dr */ { BxPrefixSSE, BX_IA_MOVQ_PqQqR, BxOpcodeGroupSSE_0f6fR },
2009-12-14 14:55:42 +03:00
/* 0F 6F /dm */ { BxPrefixSSE, BX_IA_MOVQ_PqQqM, BxOpcodeGroupSSE_0f6fM },
2010-05-13 09:38:24 +04:00
/* 0F 70 /dr */ { BxPrefixSSE | BxImmediate_Ib, BX_IA_PSHUFW_PqQqIb, BxOpcodeGroupSSE_0f70 },
/* 0F 70 /dm */ { BxPrefixSSE | BxImmediate_Ib, BX_IA_PSHUFW_PqQqIb, BxOpcodeGroupSSE_0f70 },
2010-05-13 09:38:24 +04:00
/* 0F 71 /dr */ { BxGroup12, BX_IA_ERROR, BxOpcodeInfoG12R },
2008-05-01 01:32:33 +04:00
/* 0F 71 /dm */ { 0, BX_IA_ERROR }, // SSE Group G12
2010-05-13 09:38:24 +04:00
/* 0F 72 /dr */ { BxGroup13, BX_IA_ERROR, BxOpcodeInfoG13R },
2008-05-01 01:32:33 +04:00
/* 0F 72 /dm */ { 0, BX_IA_ERROR }, // SSE Group G13
2010-05-13 09:38:24 +04:00
/* 0F 73 /dr */ { BxGroup14, BX_IA_ERROR, BxOpcodeInfoG14R },
2008-05-01 01:32:33 +04:00
/* 0F 73 /dm */ { 0, BX_IA_ERROR }, // SSE Group G14
2010-05-13 09:38:24 +04:00
/* 0F 74 /dr */ { BxPrefixSSE, BX_IA_PCMPEQB_PqQq, BxOpcodeGroupSSE_0f74 },
/* 0F 74 /dm */ { BxPrefixSSE, BX_IA_PCMPEQB_PqQq, BxOpcodeGroupSSE_0f74 },
2010-05-13 09:38:24 +04:00
/* 0F 75 /dr */ { BxPrefixSSE, BX_IA_PCMPEQW_PqQq, BxOpcodeGroupSSE_0f75 },
/* 0F 75 /dm */ { BxPrefixSSE, BX_IA_PCMPEQW_PqQq, BxOpcodeGroupSSE_0f75 },
2010-05-13 09:38:24 +04:00
/* 0F 76 /dr */ { BxPrefixSSE, BX_IA_PCMPEQD_PqQq, BxOpcodeGroupSSE_0f76 },
/* 0F 76 /dm */ { BxPrefixSSE, BX_IA_PCMPEQD_PqQq, BxOpcodeGroupSSE_0f76 },
2010-05-13 09:38:24 +04:00
/* 0F 77 /dr */ { BxPrefixSSE, BX_IA_EMMS, BxOpcodeGroupSSE_ERR },
/* 0F 77 /dm */ { BxPrefixSSE, BX_IA_EMMS, BxOpcodeGroupSSE_ERR },
2010-05-13 09:38:24 +04:00
/* 0F 78 /dr */ { BxPrefixSSE, BX_IA_VMREAD_EdGd, BxOpcodeGroupSSE_ERR },
2009-01-31 13:43:24 +03:00
/* 0F 78 /dm */ { BxPrefixSSE, BX_IA_VMREAD_EdGd, BxOpcodeGroupSSE_ERR },
2010-05-13 09:38:24 +04:00
/* 0F 79 /dr */ { BxPrefixSSE, BX_IA_VMWRITE_GdEd, BxOpcodeGroupSSE_ERR },
2009-01-31 13:43:24 +03:00
/* 0F 79 /dm */ { BxPrefixSSE, BX_IA_VMWRITE_GdEd, BxOpcodeGroupSSE_ERR },
2010-05-13 09:38:24 +04:00
/* 0F 7A /dr */ { 0, BX_IA_ERROR },
/* 0F 7A /dm */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 7B /dr */ { 0, BX_IA_ERROR },
/* 0F 7B /dm */ { 0, BX_IA_ERROR },
2010-05-13 09:38:24 +04:00
/* 0F 7C /dr */ { BxPrefixSSE, BX_IA_ERROR, BxOpcodeGroupSSE_0f7c },
/* 0F 7C /dm */ { BxPrefixSSE, BX_IA_ERROR, BxOpcodeGroupSSE_0f7c },
2010-05-13 09:38:24 +04:00
/* 0F 7D /dr */ { BxPrefixSSE, BX_IA_ERROR, BxOpcodeGroupSSE_0f7d },
/* 0F 7D /dm */ { BxPrefixSSE, BX_IA_ERROR, BxOpcodeGroupSSE_0f7d },
2010-05-13 09:38:24 +04:00
/* 0F 7E /dr */ { BxPrefixSSE, BX_IA_MOVD_EdPdR, BxOpcodeGroupSSE_0f7eR },
2010-02-10 20:21:15 +03:00
/* 0F 7E /dm */ { BxPrefixSSE, BX_IA_MOVD_EdPdM, BxOpcodeGroupSSE_0f7eM },
2010-05-13 09:38:24 +04:00
/* 0F 7F /dr */ { BxPrefixSSE, BX_IA_MOVQ_QqPqR, BxOpcodeGroupSSE_0f7fR },
2010-02-10 20:21:15 +03:00
/* 0F 7F /dm */ { BxPrefixSSE, BX_IA_MOVQ_QqPqM, BxOpcodeGroupSSE_0f7fM },
2010-05-13 09:38:24 +04:00
/* 0F 80 /dr */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JO_Jd },
/* 0F 80 /dm */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JO_Jd },
2010-05-13 09:38:24 +04:00
/* 0F 81 /dr */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JNO_Jd },
/* 0F 81 /dm */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JNO_Jd },
2010-05-13 09:38:24 +04:00
/* 0F 82 /dr */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JB_Jd },
/* 0F 82 /dm */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JB_Jd },
2010-05-13 09:38:24 +04:00
/* 0F 83 /dr */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JNB_Jd },
/* 0F 83 /dm */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JNB_Jd },
2010-05-13 09:38:24 +04:00
/* 0F 84 /dr */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JZ_Jd },
/* 0F 84 /dm */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JZ_Jd },
2010-05-13 09:38:24 +04:00
/* 0F 85 /dr */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JNZ_Jd },
/* 0F 85 /dm */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JNZ_Jd },
2010-05-13 09:38:24 +04:00
/* 0F 86 /dr */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JBE_Jd },
/* 0F 86 /dm */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JBE_Jd },
2010-05-13 09:38:24 +04:00
/* 0F 87 /dr */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JNBE_Jd },
/* 0F 87 /dm */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JNBE_Jd },
2010-05-13 09:38:24 +04:00
/* 0F 88 /dr */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JS_Jd },
/* 0F 88 /dm */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JS_Jd },
2010-05-13 09:38:24 +04:00
/* 0F 89 /dr */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JNS_Jd },
/* 0F 89 /dm */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JNS_Jd },
2010-05-13 09:38:24 +04:00
/* 0F 8A /dr */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JP_Jd },
/* 0F 8A /dm */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JP_Jd },
2010-05-13 09:38:24 +04:00
/* 0F 8B /dr */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JNP_Jd },
/* 0F 8B /dm */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JNP_Jd },
2010-05-13 09:38:24 +04:00
/* 0F 8C /dr */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JL_Jd },
/* 0F 8C /dm */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JL_Jd },
2010-05-13 09:38:24 +04:00
/* 0F 8D /dr */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JNL_Jd },
/* 0F 8D /dm */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JNL_Jd },
2010-05-13 09:38:24 +04:00
/* 0F 8E /dr */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JLE_Jd },
/* 0F 8E /dm */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JLE_Jd },
2010-05-13 09:38:24 +04:00
/* 0F 8F /dr */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JNLE_Jd },
/* 0F 8F /dm */ { BxImmediate_BrOff32 | BxTraceJCC, BX_IA_JNLE_Jd },
2010-05-13 09:38:24 +04:00
/* 0F 90 /dr */ { 0, BX_IA_SETO_EbR },
/* 0F 90 /dm */ { 0, BX_IA_SETO_EbM },
2010-05-13 09:38:24 +04:00
/* 0F 91 /dr */ { 0, BX_IA_SETNO_EbR },
/* 0F 91 /dm */ { 0, BX_IA_SETNO_EbM },
2010-05-13 09:38:24 +04:00
/* 0F 92 /dr */ { 0, BX_IA_SETB_EbR },
/* 0F 92 /dm */ { 0, BX_IA_SETB_EbM },
2010-05-13 09:38:24 +04:00
/* 0F 93 /dr */ { 0, BX_IA_SETNB_EbR },
/* 0F 93 /dm */ { 0, BX_IA_SETNB_EbM },
2010-05-13 09:38:24 +04:00
/* 0F 94 /dr */ { 0, BX_IA_SETZ_EbR },
/* 0F 94 /dm */ { 0, BX_IA_SETZ_EbM },
2010-05-13 09:38:24 +04:00
/* 0F 95 /dr */ { 0, BX_IA_SETNZ_EbR },
/* 0F 95 /dm */ { 0, BX_IA_SETNZ_EbM },
2010-05-13 09:38:24 +04:00
/* 0F 96 /dr */ { 0, BX_IA_SETBE_EbR },
/* 0F 96 /dm */ { 0, BX_IA_SETBE_EbM },
2010-05-13 09:38:24 +04:00
/* 0F 97 /dr */ { 0, BX_IA_SETNBE_EbR },
/* 0F 97 /dm */ { 0, BX_IA_SETNBE_EbM },
2010-05-13 09:38:24 +04:00
/* 0F 98 /dr */ { 0, BX_IA_SETS_EbR },
/* 0F 98 /dm */ { 0, BX_IA_SETS_EbM },
2010-05-13 09:38:24 +04:00
/* 0F 99 /dr */ { 0, BX_IA_SETNS_EbR },
/* 0F 99 /dm */ { 0, BX_IA_SETNS_EbM },
2010-05-13 09:38:24 +04:00
/* 0F 9A /dr */ { 0, BX_IA_SETP_EbR },
/* 0F 9A /dm */ { 0, BX_IA_SETP_EbM },
2010-05-13 09:38:24 +04:00
/* 0F 9B /dr */ { 0, BX_IA_SETNP_EbR },
/* 0F 9B /dm */ { 0, BX_IA_SETNP_EbM },
2010-05-13 09:38:24 +04:00
/* 0F 9C /dr */ { 0, BX_IA_SETL_EbR },
/* 0F 9C /dm */ { 0, BX_IA_SETL_EbM },
2010-05-13 09:38:24 +04:00
/* 0F 9D /dr */ { 0, BX_IA_SETNL_EbR },
/* 0F 9D /dm */ { 0, BX_IA_SETNL_EbM },
2010-05-13 09:38:24 +04:00
/* 0F 9E /dr */ { 0, BX_IA_SETLE_EbR },
/* 0F 9E /dm */ { 0, BX_IA_SETLE_EbM },
2010-05-13 09:38:24 +04:00
/* 0F 9F /dr */ { 0, BX_IA_SETNLE_EbR },
/* 0F 9F /dm */ { 0, BX_IA_SETNLE_EbM },
2010-05-13 09:38:24 +04:00
/* 0F A0 /dr */ { 0, BX_IA_PUSH32_FS },
/* 0F A0 /dm */ { 0, BX_IA_PUSH32_FS },
2010-05-13 09:38:24 +04:00
/* 0F A1 /dr */ { 0, BX_IA_POP32_FS },
/* 0F A1 /dm */ { 0, BX_IA_POP32_FS },
2010-05-13 09:38:24 +04:00
/* 0F A2 /dr */ { 0, BX_IA_CPUID },
/* 0F A2 /dm */ { 0, BX_IA_CPUID },
2010-05-13 09:38:24 +04:00
/* 0F A3 /dr */ { 0, BX_IA_BT_EdGdR },
/* 0F A3 /dm */ { 0, BX_IA_BT_EdGdM },
2010-05-13 09:38:24 +04:00
/* 0F A4 /dr */ { BxImmediate_Ib, BX_IA_SHLD_EdGdR },
2008-04-05 23:08:01 +04:00
/* 0F A4 /dm */ { BxImmediate_Ib, BX_IA_SHLD_EdGdM },
2010-05-13 09:38:24 +04:00
/* 0F A5 /dr */ { 0, BX_IA_SHLD_EdGdR },
2008-04-05 23:08:01 +04:00
/* 0F A5 /dm */ { 0, BX_IA_SHLD_EdGdM },
2010-05-13 09:38:24 +04:00
/* 0F A6 /dr */ { BxTraceEnd, BX_IA_CMPXCHG_XBTS }, // not implemented
/* 0F A6 /dm */ { BxTraceEnd, BX_IA_CMPXCHG_XBTS }, // not implemented
2010-05-13 09:38:24 +04:00
/* 0F A7 /dr */ { BxTraceEnd, BX_IA_CMPXCHG_IBTS }, // not implemented
/* 0F A7 /dm */ { BxTraceEnd, BX_IA_CMPXCHG_IBTS }, // not implemented
2010-05-13 09:38:24 +04:00
/* 0F A8 /dr */ { 0, BX_IA_PUSH32_GS },
/* 0F A8 /dm */ { 0, BX_IA_PUSH32_GS },
2010-05-13 09:38:24 +04:00
/* 0F A9 /dr */ { 0, BX_IA_POP32_GS },
/* 0F A9 /dm */ { 0, BX_IA_POP32_GS },
2010-05-13 09:38:24 +04:00
/* 0F AA /dr */ { BxTraceEnd, BX_IA_RSM },
/* 0F AA /dm */ { BxTraceEnd, BX_IA_RSM },
2010-05-13 09:38:24 +04:00
/* 0F AB /dr */ { 0, BX_IA_BTS_EdGdR },
/* 0F AB /dm */ { BxLockable, BX_IA_BTS_EdGdM },
2010-05-13 09:38:24 +04:00
/* 0F AC /dr */ { BxImmediate_Ib, BX_IA_SHRD_EdGdR },
2008-04-05 23:08:01 +04:00
/* 0F AC /dm */ { BxImmediate_Ib, BX_IA_SHRD_EdGdM },
2010-05-13 09:38:24 +04:00
/* 0F AD /dr */ { 0, BX_IA_SHRD_EdGdR },
2008-04-05 23:08:01 +04:00
/* 0F AD /dm */ { 0, BX_IA_SHRD_EdGdM },
2010-05-13 09:38:24 +04:00
/* 0F AE /dr */ { BxGroup15, BX_IA_ERROR, BxOpcodeInfoG15R },
/* 0F AE /dm */ { BxGroup15, BX_IA_ERROR, BxOpcodeInfoG15M },
2010-05-13 09:38:24 +04:00
/* 0F AF /dr */ { 0, BX_IA_IMUL_GdEdR },
/* 0F AF /dm */ { 0, BX_IA_IMUL_GdEdM },
2010-05-13 09:38:24 +04:00
/* 0F B0 /dr */ { 0, BX_IA_CMPXCHG_EbGbR },
/* 0F B0 /dm */ { BxLockable, BX_IA_CMPXCHG_EbGbM },
2010-05-13 09:38:24 +04:00
/* 0F B1 /dr */ { 0, BX_IA_CMPXCHG_EdGdR },
/* 0F B1 /dm */ { BxLockable, BX_IA_CMPXCHG_EdGdM },
2010-05-13 09:38:24 +04:00
/* 0F B2 /dr */ { 0, BX_IA_ERROR }, // LSS
/* 0F B2 /dm */ { 0, BX_IA_LSS_GdMp },
2010-05-13 09:38:24 +04:00
/* 0F B3 /dr */ { 0, BX_IA_BTR_EdGdR },
/* 0F B3 /dm */ { BxLockable, BX_IA_BTR_EdGdM },
2010-05-13 09:38:24 +04:00
/* 0F B4 /dr */ { 0, BX_IA_ERROR }, // LFS
/* 0F B4 /dm */ { 0, BX_IA_LFS_GdMp },
2010-05-13 09:38:24 +04:00
/* 0F B5 /dr */ { 0, BX_IA_ERROR }, // LGS
/* 0F B5 /dm */ { 0, BX_IA_LGS_GdMp },
2010-05-13 09:38:24 +04:00
/* 0F B6 /dr */ { 0, BX_IA_MOVZX_GdEbR },
/* 0F B6 /dm */ { 0, BX_IA_MOVZX_GdEbM },
2010-05-13 09:38:24 +04:00
/* 0F B7 /dr */ { 0, BX_IA_MOVZX_GdEwR },
/* 0F B7 /dm */ { 0, BX_IA_MOVZX_GdEwM },
2010-05-13 09:38:24 +04:00
/* 0F B8 /dr */ { BxPrefixSSEF3, BX_IA_POPCNT_GdEdR },
2010-02-08 17:54:26 +03:00
/* 0F B8 /dm */ { BxPrefixSSEF3, BX_IA_POPCNT_GdEdM },
2010-05-13 09:38:24 +04:00
/* 0F B9 /dr */ { BxTraceEnd, BX_IA_UD2B },
/* 0F B9 /dm */ { BxTraceEnd, BX_IA_UD2B },
2010-05-13 09:38:24 +04:00
/* 0F BA /dr */ { BxGroup8, BX_IA_ERROR, BxOpcodeInfoG8EdIbR },
/* 0F BA /dm */ { BxGroup8, BX_IA_ERROR, BxOpcodeInfoG8EdIbM },
2010-05-13 09:38:24 +04:00
/* 0F BB /dr */ { 0, BX_IA_BTC_EdGdR },
/* 0F BB /dm */ { BxLockable, BX_IA_BTC_EdGdM },
2010-05-13 09:38:24 +04:00
/* 0F BC /dr */ { 0, BX_IA_BSF_GdEdR },
2008-08-10 23:34:28 +04:00
/* 0F BC /dm */ { 0, BX_IA_BSF_GdEdM },
2010-05-13 09:38:24 +04:00
/* 0F BD /dr */ { 0, BX_IA_BSR_GdEdR },
2008-08-10 23:34:28 +04:00
/* 0F BD /dm */ { 0, BX_IA_BSR_GdEdM },
2010-05-13 09:38:24 +04:00
/* 0F BE /dr */ { 0, BX_IA_MOVSX_GdEbR },
/* 0F BE /dm */ { 0, BX_IA_MOVSX_GdEbM },
2010-05-13 09:38:24 +04:00
/* 0F BF /dr */ { 0, BX_IA_MOVSX_GdEwR },
/* 0F BF /dm */ { 0, BX_IA_MOVSX_GdEwM },
2010-05-13 09:38:24 +04:00
/* 0F C0 /dr */ { 0, BX_IA_XADD_EbGbR },
/* 0F C0 /dm */ { BxLockable, BX_IA_XADD_EbGbM },
2010-05-13 09:38:24 +04:00
/* 0F C1 /dr */ { 0, BX_IA_XADD_EdGdR },
/* 0F C1 /dm */ { BxLockable, BX_IA_XADD_EdGdM },
2010-05-13 09:38:24 +04:00
/* 0F C2 /dr */ { BxPrefixSSE | BxImmediate_Ib, BX_IA_CMPPS_VpsWpsIb, BxOpcodeGroupSSE_0fc2 },
/* 0F C2 /dm */ { BxPrefixSSE | BxImmediate_Ib, BX_IA_CMPPS_VpsWpsIb, BxOpcodeGroupSSE_0fc2 },
2010-05-13 09:38:24 +04:00
/* 0F C3 /dr */ { 0, BX_IA_ERROR }, // MOVNTI SSE group
/* 0F C3 /dm */ { BxPrefixSSE, BX_IA_MOVNTI_MdGd, BxOpcodeGroupSSE_ERR },
2010-05-13 09:38:24 +04:00
/* 0F C4 /dr */ { BxPrefixSSE | BxImmediate_Ib, BX_IA_PINSRW_PqEwIb, BxOpcodeGroupSSE_0fc4 },
/* 0F C4 /dm */ { BxPrefixSSE | BxImmediate_Ib, BX_IA_PINSRW_PqEwIb, BxOpcodeGroupSSE_0fc4 },
2010-05-13 09:38:24 +04:00
/* 0F C5 /dr */ { BxPrefixSSE | BxImmediate_Ib, BX_IA_PEXTRW_GdPqIb, BxOpcodeGroupSSE_0fc5R },
2008-05-01 01:07:12 +04:00
/* 0F C5 /dm */ { 0, BX_IA_ERROR }, // PEXTRW SSE group
2010-05-13 09:38:24 +04:00
/* 0F C6 /dr */ { BxPrefixSSE | BxImmediate_Ib, BX_IA_SHUFPS_VpsWpsIb, BxOpcodeGroupSSE_0fc6 },
/* 0F C6 /dm */ { BxPrefixSSE | BxImmediate_Ib, BX_IA_SHUFPS_VpsWpsIb, BxOpcodeGroupSSE_0fc6 },
2010-05-13 09:38:24 +04:00
/* 0F C7 /dr */ { 0, BX_IA_ERROR }, // CMPXCHG8B G9 group
/* 0F C7 /dm */ { BxGroup9, BX_IA_ERROR, BxOpcodeInfoG9M },
2010-05-13 09:38:24 +04:00
/* 0F C8 /dr */ { 0, BX_IA_BSWAP_ERX },
/* 0F C8 /dm */ { 0, BX_IA_BSWAP_ERX },
2010-05-13 09:38:24 +04:00
/* 0F C9 /dr */ { 0, BX_IA_BSWAP_ERX },
/* 0F C9 /dm */ { 0, BX_IA_BSWAP_ERX },
2010-05-13 09:38:24 +04:00
/* 0F CA /dr */ { 0, BX_IA_BSWAP_ERX },
/* 0F CA /dm */ { 0, BX_IA_BSWAP_ERX },
2010-05-13 09:38:24 +04:00
/* 0F CB /dr */ { 0, BX_IA_BSWAP_ERX },
/* 0F CB /dm */ { 0, BX_IA_BSWAP_ERX },
2010-05-13 09:38:24 +04:00
/* 0F CC /dr */ { 0, BX_IA_BSWAP_ERX },
/* 0F CC /dm */ { 0, BX_IA_BSWAP_ERX },
2010-05-13 09:38:24 +04:00
/* 0F CD /dr */ { 0, BX_IA_BSWAP_ERX },
/* 0F CD /dm */ { 0, BX_IA_BSWAP_ERX },
2010-05-13 09:38:24 +04:00
/* 0F CE /dr */ { 0, BX_IA_BSWAP_ERX },
/* 0F CE /dm */ { 0, BX_IA_BSWAP_ERX },
2010-05-13 09:38:24 +04:00
/* 0F CF /dr */ { 0, BX_IA_BSWAP_ERX },
/* 0F CF /dm */ { 0, BX_IA_BSWAP_ERX },
2010-05-13 09:38:24 +04:00
/* 0F D0 /dr */ { BxPrefixSSE, BX_IA_ERROR, BxOpcodeGroupSSE_0fd0 },
2008-08-30 00:43:05 +04:00
/* 0F D0 /dm */ { BxPrefixSSE, BX_IA_ERROR, BxOpcodeGroupSSE_0fd0 },
2010-05-13 09:38:24 +04:00
/* 0F D1 /dr */ { BxPrefixSSE, BX_IA_PSRLW_PqQq, BxOpcodeGroupSSE_0fd1 },
/* 0F D1 /dm */ { BxPrefixSSE, BX_IA_PSRLW_PqQq, BxOpcodeGroupSSE_0fd1 },
2010-05-13 09:38:24 +04:00
/* 0F D2 /dr */ { BxPrefixSSE, BX_IA_PSRLD_PqQq, BxOpcodeGroupSSE_0fd2 },
/* 0F D2 /dm */ { BxPrefixSSE, BX_IA_PSRLD_PqQq, BxOpcodeGroupSSE_0fd2 },
2010-05-13 09:38:24 +04:00
/* 0F D3 /dr */ { BxPrefixSSE, BX_IA_PSRLQ_PqQq, BxOpcodeGroupSSE_0fd3 },
/* 0F D3 /dm */ { BxPrefixSSE, BX_IA_PSRLQ_PqQq, BxOpcodeGroupSSE_0fd3 },
2010-05-13 09:38:24 +04:00
/* 0F D4 /dr */ { BxPrefixSSE, BX_IA_PADDQ_PqQq, BxOpcodeGroupSSE_0fd4 },
/* 0F D4 /dm */ { BxPrefixSSE, BX_IA_PADDQ_PqQq, BxOpcodeGroupSSE_0fd4 },
2010-05-13 09:38:24 +04:00
/* 0F D5 /dr */ { BxPrefixSSE, BX_IA_PMULLW_PqQq, BxOpcodeGroupSSE_0fd5 },
/* 0F D5 /dm */ { BxPrefixSSE, BX_IA_PMULLW_PqQq, BxOpcodeGroupSSE_0fd5 },
2010-05-13 09:38:24 +04:00
/* 0F D6 /dr */ { BxPrefixSSE, BX_IA_ERROR, BxOpcodeGroupSSE_0fd6R },
2010-03-30 19:01:09 +04:00
/* 0F D6 /dm */ { BxPrefixSSE66, BX_IA_MOVQ_WqVqM },
2010-05-13 09:38:24 +04:00
/* 0F D7 /dr */ { BxPrefixSSE, BX_IA_PMOVMSKB_GdPRq, BxOpcodeGroupSSE_0fd7 },
2010-03-30 19:01:09 +04:00
/* 0F D7 /dm */ { 0, BX_IA_ERROR }, // PMOVMSKB is reg/reg form only
2010-05-13 09:38:24 +04:00
/* 0F D8 /dr */ { BxPrefixSSE, BX_IA_PSUBUSB_PqQq, BxOpcodeGroupSSE_0fd8 },
/* 0F D8 /dm */ { BxPrefixSSE, BX_IA_PSUBUSB_PqQq, BxOpcodeGroupSSE_0fd8 },
2010-05-13 09:38:24 +04:00
/* 0F D9 /dr */ { BxPrefixSSE, BX_IA_PSUBUSW_PqQq, BxOpcodeGroupSSE_0fd9 },
/* 0F D9 /dm */ { BxPrefixSSE, BX_IA_PSUBUSW_PqQq, BxOpcodeGroupSSE_0fd9 },
2010-05-13 09:38:24 +04:00
/* 0F DA /dr */ { BxPrefixSSE, BX_IA_PMINUB_PqQq, BxOpcodeGroupSSE_0fda },
/* 0F DA /dm */ { BxPrefixSSE, BX_IA_PMINUB_PqQq, BxOpcodeGroupSSE_0fda },
2010-05-13 09:38:24 +04:00
/* 0F DB /dr */ { BxPrefixSSE, BX_IA_PAND_PqQq, BxOpcodeGroupSSE_0fdb },
/* 0F DB /dm */ { BxPrefixSSE, BX_IA_PAND_PqQq, BxOpcodeGroupSSE_0fdb },
2010-05-13 09:38:24 +04:00
/* 0F DC /dr */ { BxPrefixSSE, BX_IA_PADDUSB_PqQq, BxOpcodeGroupSSE_0fdc },
/* 0F DC /dm */ { BxPrefixSSE, BX_IA_PADDUSB_PqQq, BxOpcodeGroupSSE_0fdc },
2010-05-13 09:38:24 +04:00
/* 0F DD /dr */ { BxPrefixSSE, BX_IA_PADDUSW_PqQq, BxOpcodeGroupSSE_0fdd },
/* 0F DD /dm */ { BxPrefixSSE, BX_IA_PADDUSW_PqQq, BxOpcodeGroupSSE_0fdd },
2010-05-13 09:38:24 +04:00
/* 0F DE /dr */ { BxPrefixSSE, BX_IA_PMAXUB_PqQq, BxOpcodeGroupSSE_0fde },
/* 0F DE /dm */ { BxPrefixSSE, BX_IA_PMAXUB_PqQq, BxOpcodeGroupSSE_0fde },
2010-05-13 09:38:24 +04:00
/* 0F DF /dr */ { BxPrefixSSE, BX_IA_PANDN_PqQq, BxOpcodeGroupSSE_0fdf },
/* 0F DF /dm */ { BxPrefixSSE, BX_IA_PANDN_PqQq, BxOpcodeGroupSSE_0fdf },
2010-05-13 09:38:24 +04:00
/* 0F E0 /dr */ { BxPrefixSSE, BX_IA_PAVGB_PqQq, BxOpcodeGroupSSE_0fe0 },
/* 0F E0 /dm */ { BxPrefixSSE, BX_IA_PAVGB_PqQq, BxOpcodeGroupSSE_0fe0 },
2010-05-13 09:38:24 +04:00
/* 0F E1 /dr */ { BxPrefixSSE, BX_IA_PSRAW_PqQq, BxOpcodeGroupSSE_0fe1 },
/* 0F E1 /dm */ { BxPrefixSSE, BX_IA_PSRAW_PqQq, BxOpcodeGroupSSE_0fe1 },
2010-05-13 09:38:24 +04:00
/* 0F E2 /dr */ { BxPrefixSSE, BX_IA_PSRAD_PqQq, BxOpcodeGroupSSE_0fe2 },
/* 0F E2 /dm */ { BxPrefixSSE, BX_IA_PSRAD_PqQq, BxOpcodeGroupSSE_0fe2 },
2010-05-13 09:38:24 +04:00
/* 0F E3 /dr */ { BxPrefixSSE, BX_IA_PAVGW_PqQq, BxOpcodeGroupSSE_0fe3 },
/* 0F E3 /dm */ { BxPrefixSSE, BX_IA_PAVGW_PqQq, BxOpcodeGroupSSE_0fe3 },
2010-05-13 09:38:24 +04:00
/* 0F E4 /dr */ { BxPrefixSSE, BX_IA_PMULHUW_PqQq, BxOpcodeGroupSSE_0fe4 },
/* 0F E4 /dm */ { BxPrefixSSE, BX_IA_PMULHUW_PqQq, BxOpcodeGroupSSE_0fe4 },
2010-05-13 09:38:24 +04:00
/* 0F E5 /dr */ { BxPrefixSSE, BX_IA_PMULHW_PqQq, BxOpcodeGroupSSE_0fe5 },
/* 0F E5 /dm */ { BxPrefixSSE, BX_IA_PMULHW_PqQq, BxOpcodeGroupSSE_0fe5 },
2010-05-13 09:38:24 +04:00
/* 0F E6 /dr */ { BxPrefixSSE, BX_IA_ERROR, BxOpcodeGroupSSE_0fe6 },
/* 0F E6 /dm */ { BxPrefixSSE, BX_IA_ERROR, BxOpcodeGroupSSE_0fe6 },
2010-05-13 09:38:24 +04:00
/* 0F E7 /dr */ { 0, BX_IA_ERROR }, // MOVNTQ/MOVNTDQ SSE group
/* 0F E7 /dm */ { BxPrefixSSE, BX_IA_MOVNTQ_MqPq, BxOpcodeGroupSSE_0fe7M },
2010-05-13 09:38:24 +04:00
/* 0F E8 /dr */ { BxPrefixSSE, BX_IA_PSUBSB_PqQq, BxOpcodeGroupSSE_0fe8 },
/* 0F E8 /dm */ { BxPrefixSSE, BX_IA_PSUBSB_PqQq, BxOpcodeGroupSSE_0fe8 },
2010-05-13 09:38:24 +04:00
/* 0F E9 /dr */ { BxPrefixSSE, BX_IA_PSUBSW_PqQq, BxOpcodeGroupSSE_0fe9 },
/* 0F E9 /dm */ { BxPrefixSSE, BX_IA_PSUBSW_PqQq, BxOpcodeGroupSSE_0fe9 },
2010-05-13 09:38:24 +04:00
/* 0F EA /dr */ { BxPrefixSSE, BX_IA_PMINSW_PqQq, BxOpcodeGroupSSE_0fea },
/* 0F EA /dm */ { BxPrefixSSE, BX_IA_PMINSW_PqQq, BxOpcodeGroupSSE_0fea },
2010-05-13 09:38:24 +04:00
/* 0F EB /dr */ { BxPrefixSSE, BX_IA_POR_PqQq, BxOpcodeGroupSSE_0feb },
/* 0F EB /dm */ { BxPrefixSSE, BX_IA_POR_PqQq, BxOpcodeGroupSSE_0feb },
2010-05-13 09:38:24 +04:00
/* 0F EC /dr */ { BxPrefixSSE, BX_IA_PADDSB_PqQq, BxOpcodeGroupSSE_0fec },
/* 0F EC /dm */ { BxPrefixSSE, BX_IA_PADDSB_PqQq, BxOpcodeGroupSSE_0fec },
2010-05-13 09:38:24 +04:00
/* 0F ED /dr */ { BxPrefixSSE, BX_IA_PADDSW_PqQq, BxOpcodeGroupSSE_0fed },
/* 0F ED /dm */ { BxPrefixSSE, BX_IA_PADDSW_PqQq, BxOpcodeGroupSSE_0fed },
2010-05-13 09:38:24 +04:00
/* 0F EE /dr */ { BxPrefixSSE, BX_IA_PMAXSW_PqQq, BxOpcodeGroupSSE_0fee },
/* 0F EE /dm */ { BxPrefixSSE, BX_IA_PMAXSW_PqQq, BxOpcodeGroupSSE_0fee },
2010-05-13 09:38:24 +04:00
/* 0F EF /dr */ { BxPrefixSSE, BX_IA_PXOR_PqQq, BxOpcodeGroupSSE_0fef },
/* 0F EF /dm */ { BxPrefixSSE, BX_IA_PXOR_PqQq, BxOpcodeGroupSSE_0fef },
2010-05-13 09:38:24 +04:00
/* 0F F0 /dr */ { 0, BX_IA_ERROR }, // LDDQU SSE group
/* 0F F0 /wm */ { BxPrefixSSEF2, BX_IA_LDDQU_VdqMdq },
2010-05-13 09:38:24 +04:00
/* 0F F1 /dr */ { BxPrefixSSE, BX_IA_PSLLW_PqQq, BxOpcodeGroupSSE_0ff1 },
/* 0F F1 /dm */ { BxPrefixSSE, BX_IA_PSLLW_PqQq, BxOpcodeGroupSSE_0ff1 },
2010-05-13 09:38:24 +04:00
/* 0F F2 /dr */ { BxPrefixSSE, BX_IA_PSLLD_PqQq, BxOpcodeGroupSSE_0ff2 },
/* 0F F2 /dm */ { BxPrefixSSE, BX_IA_PSLLD_PqQq, BxOpcodeGroupSSE_0ff2 },
2010-05-13 09:38:24 +04:00
/* 0F F3 /dr */ { BxPrefixSSE, BX_IA_PSLLQ_PqQq, BxOpcodeGroupSSE_0ff3 },
/* 0F F3 /dm */ { BxPrefixSSE, BX_IA_PSLLQ_PqQq, BxOpcodeGroupSSE_0ff3 },
2010-05-13 09:38:24 +04:00
/* 0F F4 /dr */ { BxPrefixSSE, BX_IA_PMULUDQ_PqQq, BxOpcodeGroupSSE_0ff4 },
/* 0F F4 /dm */ { BxPrefixSSE, BX_IA_PMULUDQ_PqQq, BxOpcodeGroupSSE_0ff4 },
2010-05-13 09:38:24 +04:00
/* 0F F5 /dr */ { BxPrefixSSE, BX_IA_PMADDWD_PqQq, BxOpcodeGroupSSE_0ff5 },
/* 0F F5 /dm */ { BxPrefixSSE, BX_IA_PMADDWD_PqQq, BxOpcodeGroupSSE_0ff5 },
2010-05-13 09:38:24 +04:00
/* 0F F6 /dr */ { BxPrefixSSE, BX_IA_PSADBW_PqQq, BxOpcodeGroupSSE_0ff6 },
/* 0F F6 /dm */ { BxPrefixSSE, BX_IA_PSADBW_PqQq, BxOpcodeGroupSSE_0ff6 },
2010-05-13 09:38:24 +04:00
/* 0F F7 /dr */ { BxPrefixSSE, BX_IA_MASKMOVQ_PqPRq, BxOpcodeGroupSSE_0ff7R },
2008-04-16 09:56:55 +04:00
/* 0F F7 /dm */ { 0, BX_IA_ERROR }, // MASKMOV SSE group
2010-05-13 09:38:24 +04:00
/* 0F F8 /dr */ { BxPrefixSSE, BX_IA_PSUBB_PqQq, BxOpcodeGroupSSE_0ff8 },
/* 0F F8 /dm */ { BxPrefixSSE, BX_IA_PSUBB_PqQq, BxOpcodeGroupSSE_0ff8 },
2010-05-13 09:38:24 +04:00
/* 0F F9 /dr */ { BxPrefixSSE, BX_IA_PSUBW_PqQq, BxOpcodeGroupSSE_0ff9 },
/* 0F F9 /dm */ { BxPrefixSSE, BX_IA_PSUBW_PqQq, BxOpcodeGroupSSE_0ff9 },
2010-05-13 09:38:24 +04:00
/* 0F FA /dr */ { BxPrefixSSE, BX_IA_PSUBD_PqQq, BxOpcodeGroupSSE_0ffa },
/* 0F FA /dm */ { BxPrefixSSE, BX_IA_PSUBD_PqQq, BxOpcodeGroupSSE_0ffa },
2010-05-13 09:38:24 +04:00
/* 0F FB /dr */ { BxPrefixSSE, BX_IA_PSUBQ_PqQq, BxOpcodeGroupSSE_0ffb },
/* 0F FB /dm */ { BxPrefixSSE, BX_IA_PSUBQ_PqQq, BxOpcodeGroupSSE_0ffb },
2010-05-13 09:38:24 +04:00
/* 0F FC /dr */ { BxPrefixSSE, BX_IA_PADDB_PqQq, BxOpcodeGroupSSE_0ffc },
/* 0F FC /dm */ { BxPrefixSSE, BX_IA_PADDB_PqQq, BxOpcodeGroupSSE_0ffc },
2010-05-13 09:38:24 +04:00
/* 0F FD /dr */ { BxPrefixSSE, BX_IA_PADDW_PqQq, BxOpcodeGroupSSE_0ffd },
/* 0F FD /dm */ { BxPrefixSSE, BX_IA_PADDW_PqQq, BxOpcodeGroupSSE_0ffd },
2010-05-13 09:38:24 +04:00
/* 0F FE /dr */ { BxPrefixSSE, BX_IA_PADDD_PqQq, BxOpcodeGroupSSE_0ffe },
/* 0F FE /dm */ { BxPrefixSSE, BX_IA_PADDD_PqQq, BxOpcodeGroupSSE_0ffe },
2010-05-13 09:38:24 +04:00
/* 0F FF /dr */ { 0, BX_IA_ERROR },
/* 0F FF /dm */ { 0, BX_IA_ERROR }
};
2009-12-21 16:38:06 +03:00
int BX_CPP_AttrRegparmN(3)
BX_CPU_C::fetchDecode32(const Bit8u *iptr, bxInstruction_c *i, unsigned remainingInPage)
{
// remain must be at least 1
unsigned remain = (remainingInPage < 15) ? remainingInPage : 15;
bx_bool is_32, lock=0;
unsigned b1, b2, ilen=0, attr, os_32, ia_opcode = 0;
2010-05-13 09:38:24 +04:00
unsigned imm_mode, offset, index = 0;
unsigned rm = 0, mod=0, nnn=0;
2008-09-08 20:15:59 +04:00
unsigned seg = BX_SEG_REG_DS, seg_override = BX_SEG_REG_NULL;
2002-10-16 21:37:35 +04:00
#define SSE_PREFIX_NONE 0
#define SSE_PREFIX_66 1
#define SSE_PREFIX_F2 2
#define SSE_PREFIX_F3 3
unsigned sse_prefix = SSE_PREFIX_NONE;
os_32 = is_32 =
BX_CPU_THIS_PTR sregs[BX_SEG_REG_CS].cache.u.segment.d_b;
i->ResolveModrm = 0;
i->init(/*os32*/ is_32, /*as32*/ is_32,
/*os64*/ 0, /*as64*/ 0);
offset = os_32 << 9; // * 512
fetch_b1:
b1 = *iptr++;
ilen++;
switch (b1) {
2008-06-09 23:35:59 +04:00
case 0x0f: // 2-byte escape
if (ilen < remain) {
ilen++;
b1 = 0x100 | *iptr++;
break;
}
2009-12-21 16:38:06 +03:00
return(-1);
case 0x66: // OpSize
os_32 = !is_32;
offset = os_32 << 9;
if(!sse_prefix) sse_prefix = SSE_PREFIX_66;
i->setOs32B(os_32);
if (ilen < remain) {
goto fetch_b1;
}
2009-12-21 16:38:06 +03:00
return(-1);
case 0x67: // AddrSize
i->setAs32B(!is_32);
if (ilen < remain) {
goto fetch_b1;
}
2009-12-21 16:38:06 +03:00
return(-1);
case 0xf2: // REPNE/REPNZ
case 0xf3: // REP/REPE/REPZ
2009-11-06 21:19:01 +03:00
sse_prefix = b1 & 3;
i->setRepUsed(b1 & 3);
if (ilen < remain) {
goto fetch_b1;
}
2009-12-21 16:38:06 +03:00
return(-1);
case 0x26: // ES:
case 0x2e: // CS:
case 0x36: // SS:
case 0x3e: // DS:
2008-09-08 20:15:59 +04:00
seg_override = (b1 >> 3) & 3;
if (ilen < remain) {
goto fetch_b1;
}
2009-12-21 16:38:06 +03:00
return(-1);
case 0x64: // FS:
case 0x65: // GS:
2008-09-08 20:15:59 +04:00
seg_override = (b1 & 0xf);
if (ilen < remain) {
goto fetch_b1;
}
2009-12-21 16:38:06 +03:00
return(-1);
case 0xf0: // LOCK:
lock = 1;
if (ilen < remain) {
goto fetch_b1;
}
2009-12-21 16:38:06 +03:00
return(-1);
default:
break;
}
2010-05-13 09:38:24 +04:00
index = (b1+offset) << 1;
attr = BxOpcodeInfo32[index].Attr;
if (BxOpcodeHasModrm32[b1]) {
unsigned b3 = 0;
// handle 3-byte escape
if ((attr & BxGroupX) == Bx3ByteOp) {
if (ilen < remain) {
ilen++;
b3 = *iptr++;
}
else
2009-12-21 16:38:06 +03:00
return(-1);
}
// opcode requires modrm byte
if (ilen < remain) {
ilen++;
b2 = *iptr++;
}
else
2009-12-21 16:38:06 +03:00
return(-1);
// Parse mod-nnn-rm and related bytes
mod = b2 & 0xc0; // leave unshifted
2007-11-19 00:38:58 +03:00
nnn = (b2 >> 3) & 0x7;
rm = b2 & 0x7;
2005-02-17 00:27:21 +03:00
// MOVs with CRx and DRx always use register ops and ignore the mod field.
if ((b1 & ~3) == 0x120)
2005-02-17 00:27:21 +03:00
mod = 0xc0;
i->setModRM(b2);
i->setNnn(nnn);
if (mod == 0xc0) { // mod == 11b
i->assertModC0();
i->setRm(rm);
goto modrm_done;
}
2010-05-13 09:38:24 +04:00
index++; // /m form
i->setRm(BX_TMP_REGISTER);
i->setSibBase(rm); // initialize with rm to use BxResolve32Base
i->setSibIndex(BX_NIL_REGISTER);
// initialize displ32 with zero to include cases with no diplacement
i->modRMForm.displ32u = 0;
if (i->as32L()) {
// 32-bit addressing modes; note that mod==11b handled above
i->ResolveModrm = &BX_CPU_C::BxResolve32Base;
if (rm != 4) { // no s-i-b byte
if (mod == 0x00) { // mod == 00b
if (rm == 5) {
i->setSibBase(BX_NIL_REGISTER);
if ((ilen+3) < remain) {
i->modRMForm.displ32u = FetchDWORD(iptr);
2003-08-15 17:08:24 +04:00
iptr += 4;
ilen += 4;
}
2009-12-21 16:38:06 +03:00
else return(-1);
}
// mod==00b, rm!=4, rm!=5
goto modrm_done;
}
2010-02-01 10:59:22 +03:00
seg = sreg_mod1or2_base32[rm];
}
else { // mod!=11b, rm==4, s-i-b byte follows
unsigned sib, base, index, scale;
if (ilen < remain) {
sib = *iptr++;
ilen++;
}
else {
2009-12-21 16:38:06 +03:00
return(-1);
}
2007-11-19 00:38:58 +03:00
base = sib & 0x7; sib >>= 3;
index = sib & 0x7; sib >>= 3;
scale = sib;
i->setSibScale(scale);
i->setSibBase(base);
if (index != 4) {
i->ResolveModrm = &BX_CPU_C::BxResolve32BaseIndex;
i->setSibIndex(index);
}
if (mod == 0x00) { // mod==00b, rm==4
2008-09-08 20:15:59 +04:00
seg = sreg_mod0_base32[base];
2010-02-06 20:14:07 +03:00
if (base == 5) {
i->setSibBase(BX_NIL_REGISTER);
2008-08-12 01:06:27 +04:00
if ((ilen+3) < remain) {
i->modRMForm.displ32u = FetchDWORD(iptr);
iptr += 4;
ilen += 4;
}
else {
2009-12-21 16:38:06 +03:00
return(-1);
2008-08-12 01:06:27 +04:00
}
2007-11-19 01:14:39 +03:00
}
// mod==00b, rm==4, base!=5
goto modrm_done;
}
2008-09-08 20:15:59 +04:00
seg = sreg_mod1or2_base32[base];
2010-02-06 20:14:07 +03:00
}
if (mod == 0x40) { // mod==01b
if (ilen < remain) {
// 8 sign extended to 32
i->modRMForm.displ32u = (Bit8s) *iptr++;
ilen++;
2008-08-12 01:06:27 +04:00
goto modrm_done;
}
else {
2009-12-21 16:38:06 +03:00
return(-1);
2008-08-12 01:06:27 +04:00
}
2010-02-06 20:14:07 +03:00
}
// (mod == 0x80), mod==10b
if ((ilen+3) < remain) {
i->modRMForm.displ32u = FetchDWORD(iptr);
iptr += 4;
ilen += 4;
}
else {
return(-1);
}
}
else {
// 16-bit addressing modes, mod==11b handled above
i->ResolveModrm = &BX_CPU_C::BxResolve16BaseIndex;
i->setSibBase(Resolve16BaseReg[rm]);
i->setSibIndex(Resolve16IndexReg[rm]);
2007-11-19 00:38:58 +03:00
if (mod == 0x00) { // mod == 00b
2008-09-08 20:15:59 +04:00
seg = sreg_mod00_rm16[rm];
2010-02-06 20:14:07 +03:00
if (rm == 6) {
i->setSibBase(BX_NIL_REGISTER);
2007-11-19 00:38:58 +03:00
if ((ilen+1) < remain) {
i->modRMForm.displ16u = FetchWORD(iptr);
2007-11-19 00:38:58 +03:00
iptr += 2;
ilen += 2;
goto modrm_done;
}
2009-12-21 16:38:06 +03:00
else return(-1);
2007-11-19 00:38:58 +03:00
}
goto modrm_done;
}
2008-09-08 20:15:59 +04:00
seg = sreg_mod01or10_rm16[rm];
2007-11-19 00:38:58 +03:00
if (mod == 0x40) { // mod == 01b
if (ilen < remain) {
// 8 sign extended to 16
i->modRMForm.displ16u = (Bit8s) *iptr++;
ilen++;
goto modrm_done;
}
2010-02-06 20:14:07 +03:00
else {
return(-1);
}
}
2007-11-19 00:38:58 +03:00
// (mod == 0x80) mod == 10b
2008-08-12 01:06:27 +04:00
if ((ilen+1) < remain) {
i->modRMForm.displ16u = FetchWORD(iptr);
iptr += 2;
ilen += 2;
}
2010-02-06 20:14:07 +03:00
else {
return(-1);
}
}
modrm_done:
// Resolve ExecutePtr and additional opcode Attr
2010-05-13 09:38:24 +04:00
const BxOpcodeInfo_t *OpcodeInfoPtr = &(BxOpcodeInfo32[index]);
attr = BxOpcodeInfo32[index].Attr;
2008-03-29 12:58:23 +03:00
while(attr & BxGroupX) {
Bit32u group = attr & BxGroupX;
2008-03-29 12:58:23 +03:00
attr &= ~BxGroupX;
2008-02-03 00:46:54 +03:00
2010-05-22 01:17:32 +04:00
if (group < BxPrefixSSE) {
/* For opcodes with only one allowed SSE prefix */
if (sse_prefix != (group >> 4)) {
OpcodeInfoPtr = &BxOpcodeGroupSSE_ERR[0]; // BX_IA_ERROR
}
/* get additional attributes from group table */
attr |= OpcodeInfoPtr->Attr;
break;
}
switch(group) {
2008-03-29 12:58:23 +03:00
case BxGroupN:
OpcodeInfoPtr = &(OpcodeInfoPtr->AnotherArray[nnn]);
break;
case Bx3ByteOp:
OpcodeInfoPtr = &(OpcodeInfoPtr->AnotherArray[b3]);
break;
case BxOSizeGrp:
OpcodeInfoPtr = &(OpcodeInfoPtr->AnotherArray[os_32]);
break;
2008-03-29 12:58:23 +03:00
case BxPrefixSSE:
/* For SSE opcodes look into another table
2008-03-29 12:58:23 +03:00
with the opcode prefixes (NONE, 0x66, 0xF2, 0xF3) */
if (sse_prefix) {
OpcodeInfoPtr = &(OpcodeInfoPtr->AnotherArray[sse_prefix-1]);
break;
}
continue;
2008-03-29 12:58:23 +03:00
case BxFPEscape:
2008-09-16 22:28:53 +04:00
OpcodeInfoPtr = &(OpcodeInfoPtr->AnotherArray[b2 & 0x3f]);
2008-03-29 12:58:23 +03:00
break;
default:
BX_PANIC(("fetchdecode: Unknown opcode group"));
}
2008-03-29 12:58:23 +03:00
/* get additional attributes from group table */
attr |= OpcodeInfoPtr->Attr;
}
ia_opcode = OpcodeInfoPtr->IA;
}
else {
// Opcode does not require a MODRM byte.
// Note that a 2-byte opcode (0F XX) will jump to before
// the if() above after fetching the 2nd byte, so this path is
// taken in all cases if a modrm byte is NOT required.
2010-05-13 09:38:24 +04:00
const BxOpcodeInfo_t *OpcodeInfoPtr = &(BxOpcodeInfo32[index]);
unsigned group = attr & BxGroupX;
BX_ASSERT(group == BxPrefixSSE || group == 0);
if (group == BxPrefixSSE && sse_prefix)
OpcodeInfoPtr = &(OpcodeInfoPtr->AnotherArray[sse_prefix-1]);
ia_opcode = OpcodeInfoPtr->IA;
i->setOpcodeReg(b1 & 7);
2002-10-16 21:37:35 +04:00
}
if (lock) { // lock prefix invalid opcode
// lock prefix not allowed or destination operand is not memory
// mod == 0xc0 can't be BxLockable in fetchdecode tables
if (/*(mod == 0xc0) ||*/ !(attr & BxLockable)) {
BX_INFO(("LOCK prefix unallowed (op1=0x%x, attr=0x%x, mod=0x%x, nnn=%u)", b1, attr, mod, nnn));
2007-12-09 21:36:05 +03:00
// replace execution function with undefined-opcode
ia_opcode = BX_IA_ERROR;
}
}
i->modRMForm.Id = 0;
imm_mode = attr & BxImmediate;
if (imm_mode) {
switch (imm_mode) {
case BxImmediate_I1:
i->modRMForm.Ib = 1;
break;
case BxImmediate_Ib:
if (ilen < remain) {
i->modRMForm.Ib = *iptr;
ilen++;
}
else {
2009-12-21 16:38:06 +03:00
return(-1);
}
break;
case BxImmediate_Ib_SE: // Sign extend to OS size
if (ilen < remain) {
2004-08-28 12:41:46 +04:00
Bit8s temp8s = *iptr;
if (i->os32L())
i->modRMForm.Id = (Bit32s) temp8s;
else
i->modRMForm.Iw = (Bit16s) temp8s;
ilen++;
}
else {
2009-12-21 16:38:06 +03:00
return(-1);
}
break;
case BxImmediate_Iw:
if ((ilen+1) < remain) {
i->modRMForm.Iw = FetchWORD(iptr);
ilen += 2;
}
else {
2009-12-21 16:38:06 +03:00
return(-1);
}
break;
case BxImmediate_Id:
if ((ilen+3) < remain) {
i->modRMForm.Id = FetchDWORD(iptr);
ilen += 4;
}
else {
2009-12-21 16:38:06 +03:00
return(-1);
}
break;
case BxImmediate_BrOff8:
if (ilen < remain) {
i->modRMForm.Id = (Bit8s) (*iptr);
ilen++;
}
else {
2009-12-21 16:38:06 +03:00
return(-1);
}
break;
2008-08-24 02:27:58 +04:00
case BxImmediate_IwIb:
2009-11-06 00:07:18 +03:00
if ((ilen+2) < remain) {
i->IxIxForm.Iw = FetchWORD(iptr);
2008-08-24 02:27:58 +04:00
iptr += 2;
i->IxIxForm.Ib2 = *iptr;
2009-11-06 00:07:18 +03:00
ilen += 3;
}
else {
2009-12-21 16:38:06 +03:00
return(-1);
}
break;
2008-08-24 02:27:58 +04:00
case BxImmediate_IwIw: // CALL_Ap
2009-11-06 00:07:18 +03:00
if ((ilen+3) < remain) {
i->IxIxForm.Iw = FetchWORD(iptr);
iptr += 2;
2008-08-24 02:27:58 +04:00
i->IxIxForm.Iw2 = FetchWORD(iptr);
2009-11-06 00:07:18 +03:00
ilen += 4;
}
else {
2009-12-21 16:38:06 +03:00
return(-1);
}
break;
2008-08-24 02:27:58 +04:00
case BxImmediate_IdIw: // CALL_Ap
2009-11-06 00:07:18 +03:00
if ((ilen+5) < remain) {
2008-08-24 02:27:58 +04:00
i->IxIxForm.Id = FetchDWORD(iptr);
iptr += 4;
i->IxIxForm.Iw2 = FetchWORD(iptr);
2009-11-06 00:07:18 +03:00
ilen += 6;
}
else {
2009-12-21 16:38:06 +03:00
return(-1);
}
break;
case BxImmediate_O:
// For is which embed the address in the opcode.
if (i->as32L()) {
// fetch 32bit address into Id
if ((ilen+3) < remain) {
i->modRMForm.Id = FetchDWORD(iptr);
ilen += 4;
}
2009-12-21 16:38:06 +03:00
else return(-1);
}
else {
// fetch 16bit address into Id
if ((ilen+1) < remain) {
i->modRMForm.Id = (Bit32u) FetchWORD(iptr);
ilen += 2;
}
2009-12-21 16:38:06 +03:00
else return(-1);
}
break;
default:
BX_INFO(("b1 was %x", b1));
BX_PANIC(("fetchdecode: imm_mode = %u", imm_mode));
}
}
2003-05-15 20:41:17 +04:00
#if BX_SUPPORT_3DNOW
if(b1 == 0x10f)
2010-01-31 12:45:27 +03:00
ia_opcode = Bx3DNowOpcode[i->modRMForm.Ib];
2003-05-15 20:41:17 +04:00
#endif
2008-09-08 20:15:59 +04:00
if (! BX_NULL_SEG_REG(seg_override))
seg = seg_override;
i->setSeg(seg);
if (attr & BxArithDstRM) {
i->setRm(nnn);
i->setNnn(rm);
}
i->execute = BxOpcodesTable[ia_opcode].execute1;
i->execute2 = BxOpcodesTable[ia_opcode].execute2;
i->setB1(b1);
i->setILen(ilen);
i->setIaOpcode(ia_opcode);
2009-12-21 16:38:06 +03:00
#if BX_SUPPORT_TRACE_CACHE
if ((attr & BxTraceEnd) || ia_opcode == BX_IA_ERROR)
return(1);
#endif
return(0);
}
void BX_CPP_AttrRegparmN(1) BX_CPU_C::BxError(bxInstruction_c *i)
{
unsigned ia_opcode = i->getIaOpcode();
if (ia_opcode == BX_IA_ERROR) {
BX_DEBUG(("BxError: Encountered an unknown instruction b1=0x%02x (signalling #UD)", i->b1()));
BX_DEBUG(("modrm was 0x%02x, nnn was %u, rm was %u", i->modrm(), i->nnn(), i->rm()));
#if BX_DISASM && BX_DEBUGGER == 0 // with debugger it easy to see the #UD
if (LOG_THIS getonoff(LOGLEV_DEBUG))
debug_disasm_instruction(BX_CPU_THIS_PTR prev_rip);
#endif
}
else {
BX_INFO(("%s: instruction not supported - signalling #UD (features bitmask: 0x%08x)",
2010-04-03 09:59:07 +04:00
get_bx_opcode_name(ia_opcode), BX_CPU_THIS_PTR isa_extensions_bitmask));
}
exception(BX_UD_EXCEPTION, 0);
}
const char *get_bx_opcode_name(Bit16u ia_opcode)
{
static const char* BxOpcodeNamesTable[BX_IA_LAST] =
{
#define bx_define_opcode(a, b, c, d) #a,
#include "ia_opcodes.h"
};
#undef bx_define_opcode
return (ia_opcode < BX_IA_LAST) ? BxOpcodeNamesTable[ia_opcode] : 0;
}
void BX_CPU_C::init_FetchDecodeTables(void)
{
static Bit32u BxOpcodeFeatures[BX_IA_LAST] =
{
#define bx_define_opcode(a, b, c, d) d,
#include "ia_opcodes.h"
};
#undef bx_define_opcode
2010-04-03 09:59:07 +04:00
Bit32u features = BX_CPU_THIS_PTR isa_extensions_bitmask;
2010-04-07 20:02:52 +04:00
#if BX_CPU_LEVEL > 3
if (! features)
BX_PANIC(("init_FetchDecodeTables: CPU features bitmask is empty !"));
2010-04-07 20:02:52 +04:00
#endif
2010-03-05 22:49:22 +03:00
if (BX_IA_LAST > 0xffff)
BX_PANIC(("init_FetchDecodeTables: too many opcodes defined !"));
for (unsigned n=0; n < BX_IA_LAST; n++) {
Bit32u ia_opcode_features = BxOpcodeFeatures[n];
if (ia_opcode_features) {
if ((ia_opcode_features & features) == 0)
BxOpcodesTable[n].execute1 = &BX_CPU_C::BxError;
}
}
}