Rizin
unix-like reverse engineering framework and cli tools
X86BaseInfo.h
Go to the documentation of this file.
1
//===-- X86BaseInfo.h - Top level definitions for X86 -------- --*- C++ -*-===//
2
//
3
// The LLVM Compiler Infrastructure
4
//
5
// This file is distributed under the University of Illinois Open Source
6
// License. See LICENSE.TXT for details.
7
//
8
//===----------------------------------------------------------------------===//
9
//
10
// This file contains small standalone helper functions and enum definitions for
11
// the X86 target useful for the compiler back-end and the MC libraries.
12
// As such, it deliberately does not include references to LLVM core
13
// code gen types, passes, etc..
14
//
15
//===----------------------------------------------------------------------===//
16
17
#ifndef CS_X86_BASEINFO_H
18
#define CS_X86_BASEINFO_H
19
20
/* Capstone Disassembly Engine */
21
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2015 */
22
23
// Enums for memory operand decoding. Each memory operand is represented with
24
// a 5 operand sequence in the form:
25
// [BaseReg, ScaleAmt, IndexReg, Disp, Segment]
26
// These enums help decode this.
27
enum
{
28
X86_AddrBaseReg
= 0,
29
X86_AddrScaleAmt
= 1,
30
X86_AddrIndexReg
= 2,
31
X86_AddrDisp
= 3,
32
34
X86_AddrSegmentReg
= 4,
35
37
X86_AddrNumOperands
= 5
38
};
39
40
#endif
X86_AddrIndexReg
@ X86_AddrIndexReg
Definition:
X86BaseInfo.h:30
X86_AddrBaseReg
@ X86_AddrBaseReg
Definition:
X86BaseInfo.h:28
X86_AddrSegmentReg
@ X86_AddrSegmentReg
AddrSegmentReg - The operand # of the segment in the memory operand.
Definition:
X86BaseInfo.h:34
X86_AddrScaleAmt
@ X86_AddrScaleAmt
Definition:
X86BaseInfo.h:29
X86_AddrDisp
@ X86_AddrDisp
Definition:
X86BaseInfo.h:31
X86_AddrNumOperands
@ X86_AddrNumOperands
AddrNumOperands - Total number of operands in a memory reference.
Definition:
X86BaseInfo.h:37
subprojects
capstone-bundled
arch
X86
X86BaseInfo.h
Generated by
1.9.1