/* $Id$ */
/** @file
* VBox disassembler - Internal header.
*/
/*
* Copyright (C) 2006-2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef ___DisasmInternal_h___
#define ___DisasmInternal_h___
/** @defgroup grp_dis_int Internals.
* @ingroup grp_dis
* @{
*/
/** @name Index into g_apfnCalcSize and g_apfnFullDisasm.
* @{ */
enum IDX_Parse
{
IDX_ParseNop = 0,
};
/** @} */
/** @name Opcode maps.
* @{ */
/** Two byte opcode map with prefix 0x66 */
/** Two byte opcode map with prefix 0xF2 */
/** Two byte opcode map with prefix 0xF3 */
/** Three byte opcode map (0xF 0x38) */
/** Three byte opcode map with prefix 0x66 (0xF 0x38) */
/** Three byte opcode map with prefix 0xF2 (0xF 0x38) */
/** Three byte opcode map with prefix 0xF3 (0xF 0x38) */
/** Three byte opcode map with prefix 0x66 (0xF 0x3A) */
/** Three byte opcode map with prefixes 0x66 0xF2 (0xF 0x38) */
/** VEX opcodes table defined by [VEX.m-mmmm - 1].
* 0Fh, 0F38h, 0F3Ah correspondingly, VEX.pp = 00b */
/** VEX opcodes table defined by [VEX.m-mmmm - 1].
* 0Fh, 0F38h, 0F3Ah correspondingly, VEX.pp = 01b (66h) */
/** 0Fh, 0F38h, 0F3Ah correspondingly, VEX.pp = 10b (F3h) */
/** 0Fh, 0F38h, 0F3Ah correspondingly, VEX.pp = 11b (F2h) */
/** @} */
/** @name Opcode extensions (Group tables)
* @{ */
/** @} */
/** 3DNow! map (0x0F 0x0F prefix) */
/** Floating point opcodes starting with escape byte 0xDF
* @{ */
/** @} */
/** @def OP
* Wrapper which initializes an DISOPCODE.
* We must use this so that we can exclude unused fields in order
* to save precious bytes in the GC version.
*
* @internal
*/
#ifndef DIS_CORE_ONLY
# define OPVEX(pszOpcode, idxParse1, idxParse2, idxParse3, idxParse4, opcode, param1, param2, param3, param4, optype) \
{ pszOpcode, idxParse1, idxParse2, idxParse3, idxParse4, opcode, param1, param2, param3, param4, 0, optype | DISOPTYPE_SSE }
#else
# define OPVEX(pszOpcode, idxParse1, idxParse2, idxParse3, idxParse4, opcode, param1, param2, param3, param4, optype) \
{ idxParse1, idxParse2, idxParse3, idxParse4, opcode, param1, param2, param3, param4, 0, optype | DISOPTYPE_SSE}
#endif
/** @} */
#endif