x86: add prefix constant REPE

This commit is contained in:
Nguyen Anh Quynh 2015-01-13 12:03:15 +08:00
parent a176ba4447
commit b3e26fdaa6
5 changed files with 6 additions and 1 deletions

View File

@ -324,6 +324,7 @@ public class X86_const {
// Instruction prefixes - to be used in cs_x86.prefix[]
public static final int X86_PREFIX_LOCK = 0xf0;
public static final int X86_PREFIX_REP = 0xf3;
public static final int X86_PREFIX_REPE = 0xf3;
public static final int X86_PREFIX_REPNE = 0xf2;
public static final int X86_PREFIX_CS = 0x2e;
public static final int X86_PREFIX_SS = 0x36;

View File

@ -69,6 +69,7 @@ let _ARM_SYSREG_FAULTMASK = 277;;
let _ARM_SYSREG_CONTROL = 278;;
(* The memory barrier constants map directly to the 4-bit encoding of *)
(* the option field for Memory Barrier operations. *)
let _ARM_MB_INVALID = 0;;

View File

@ -321,6 +321,7 @@ let _X86_AVX_RM_RZ = 4;;
(* Instruction prefixes - to be used in cs_x86.prefix[] *)
let _X86_PREFIX_LOCK = 0xf0;;
let _X86_PREFIX_REP = 0xf3;;
let _X86_PREFIX_REPE = 0xf3;;
let _X86_PREFIX_REPNE = 0xf2;;
let _X86_PREFIX_CS = 0x2e;;
let _X86_PREFIX_SS = 0x36;;

View File

@ -321,6 +321,7 @@ X86_AVX_RM_RZ = 4
# Instruction prefixes - to be used in cs_x86.prefix[]
X86_PREFIX_LOCK = 0xf0
X86_PREFIX_REP = 0xf3
X86_PREFIX_REPE = 0xf3
X86_PREFIX_REPNE = 0xf2
X86_PREFIX_CS = 0x2e
X86_PREFIX_SS = 0x36

View File

@ -150,7 +150,8 @@ typedef enum x86_avx_rm {
typedef enum x86_prefix {
X86_PREFIX_LOCK = 0xf0, // lock (cs_x86.prefix[0]
X86_PREFIX_REP = 0xf3, // rep (cs_x86.prefix[0]
X86_PREFIX_REPNE = 0xf2, // repne (cs_x86.prefix[0]
X86_PREFIX_REPE = 0xf3, // repe/repz (cs_x86.prefix[0]
X86_PREFIX_REPNE = 0xf2, // repne/repnz (cs_x86.prefix[0]
X86_PREFIX_CS = 0x2e, // segment override CS (cs_x86.prefix[1]
X86_PREFIX_SS = 0x36, // segment override SS (cs_x86.prefix[1]