Sha256: 9bcd5236fd85f65f602677c8ac1be9cb4c21c00a8c96b329603e4d698a4626f3

Contents?: true

Size: 1.92 KB

Versions: 80

Compression:

Stored size: 1.92 KB

Contents

/*
insts.h

diStorm3 - Powerful disassembler for X86/AMD64
http://ragestorm.net/distorm/
distorm at gmail dot com
Copyright (C) 2003-2016 Gil Dabah
This library is licensed under the BSD license. See the file COPYING.
*/


#ifndef INSTS_H
#define INSTS_H

#include "instructions.h"


/* Flags Table */
extern _iflags FlagsTable[];

/* Root Trie DB */
extern _InstSharedInfo InstSharedInfoTable[];
extern _InstInfo InstInfos[];
extern _InstInfoEx InstInfosEx[];
extern _InstNode InstructionsTree[];

/* 3DNow! Trie DB */
extern _InstNode Table_0F_0F;
/* AVX related: */
extern _InstNode Table_0F, Table_0F_38, Table_0F_3A;

/*
 * The inst_lookup will return on of these two instructions according to the specified decoding mode.
 * ARPL or MOVSXD on 64 bits is one byte instruction at index 0x63.
 */
extern _InstInfo II_MOVSXD;

/*
 * The NOP instruction can be prefixed by REX in 64bits, therefore we have to decide in runtime whether it's an XCHG or NOP instruction.
 * If 0x90 is prefixed by a usable REX it will become XCHG, otherwise it will become a NOP.
 * Also note that if it's prefixed by 0xf3, it becomes a Pause.
 */
extern _InstInfo II_NOP;
extern _InstInfo II_PAUSE;

/*
 * RDRAND and VMPTRLD share same 2.3 bytes opcode, and then alternates on the MOD bits,
 * RDRAND is OT_FULL_REG while VMPTRLD is OT_MEM, and there's no such mixed type.
 * So a hack into the inst_lookup was added for this decision, the DB isn't flexible enough. :(
 */
extern _InstInfo II_RDRAND;

/*
 * Used for letting the extract operand know the type of operands without knowing the
 * instruction itself yet, because of the way those instructions work.
 * See function instructions.c!inst_lookup_3dnow.
 */
extern _InstInfo II_3DNOW;

/* Helper tables for pseudo compare mnemonics. */
extern uint16_t CmpMnemonicOffsets[8]; /* SSE */
extern uint16_t VCmpMnemonicOffsets[32]; /* AVX */

#endif /* INSTS_H */

Version data entries

80 entries across 80 versions & 1 rubygems

Version Path
contrast-agent-5.1.0 funchook/distorm/src/insts.h
contrast-agent-5.0.0 funchook/distorm/src/insts.h
contrast-agent-4.14.1 funchook/distorm/src/insts.h
contrast-agent-4.14.0 funchook/distorm/src/insts.h
contrast-agent-4.13.1 funchook/distorm/src/insts.h
contrast-agent-4.13.0 funchook/distorm/src/insts.h
contrast-agent-4.12.0 funchook/distorm/src/insts.h
contrast-agent-4.11.0 funchook/distorm/src/insts.h
contrast-agent-4.10.0 funchook/distorm/src/insts.h
contrast-agent-4.9.1 funchook/distorm/src/insts.h
contrast-agent-4.9.0 funchook/distorm/src/insts.h
contrast-agent-4.8.0 funchook/distorm/src/insts.h
contrast-agent-4.7.0 funchook/distorm/src/insts.h
contrast-agent-4.6.0 funchook/distorm/src/insts.h
contrast-agent-4.5.0 funchook/distorm/src/insts.h
contrast-agent-4.4.1 funchook/distorm/src/insts.h
contrast-agent-4.4.0 funchook/distorm/src/insts.h
contrast-agent-4.3.2 funchook/distorm/src/insts.h
contrast-agent-4.3.1 funchook/distorm/src/insts.h
contrast-agent-4.3.0 funchook/distorm/src/insts.h