From d499a349e4a56152b55728feefe32aa8037fa568 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Mon, 17 Sep 2018 21:01:01 +0800 Subject: [PATCH] bindings: update PPC constants --- bindings/java/capstone/Ppc_const.java | 16 ++++++++-------- bindings/ocaml/ppc_const.ml | 16 ++++++++-------- bindings/python/capstone/ppc_const.py | 16 ++++++++-------- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/bindings/java/capstone/Ppc_const.java b/bindings/java/capstone/Ppc_const.java index ef8359c3..91407bc8 100644 --- a/bindings/java/capstone/Ppc_const.java +++ b/bindings/java/capstone/Ppc_const.java @@ -23,6 +23,14 @@ public class Ppc_const { public static final int PPC_BH_PLUS = 1; public static final int PPC_BH_MINUS = 2; + // Operand type for instruction's operands + + public static final int PPC_OP_INVALID = 0; + public static final int PPC_OP_REG = 1; + public static final int PPC_OP_IMM = 2; + public static final int PPC_OP_MEM = 3; + public static final int PPC_OP_CRX = 64; + // PPC registers public static final int PPC_REG_INVALID = 0; @@ -237,14 +245,6 @@ public class Ppc_const { public static final int PPC_REG_X2 = 209; public static final int PPC_REG_ENDING = 210; - // Operand type for instruction's operands - - public static final int PPC_OP_INVALID = 0; - public static final int PPC_OP_REG = 1; - public static final int PPC_OP_IMM = 2; - public static final int PPC_OP_MEM = 3; - public static final int PPC_OP_CRX = 64; - // PPC instruction public static final int PPC_INS_INVALID = 0; diff --git a/bindings/ocaml/ppc_const.ml b/bindings/ocaml/ppc_const.ml index da294a2a..9dde83ce 100644 --- a/bindings/ocaml/ppc_const.ml +++ b/bindings/ocaml/ppc_const.ml @@ -20,6 +20,14 @@ let _PPC_BH_INVALID = 0;; let _PPC_BH_PLUS = 1;; let _PPC_BH_MINUS = 2;; +(* Operand type for instruction's operands *) + +let _PPC_OP_INVALID = 0;; +let _PPC_OP_REG = 1;; +let _PPC_OP_IMM = 2;; +let _PPC_OP_MEM = 3;; +let _PPC_OP_CRX = 64;; + (* PPC registers *) let _PPC_REG_INVALID = 0;; @@ -234,14 +242,6 @@ let _PPC_REG_CR1EQ = 208;; let _PPC_REG_X2 = 209;; let _PPC_REG_ENDING = 210;; -(* Operand type for instruction's operands *) - -let _PPC_OP_INVALID = 0;; -let _PPC_OP_REG = 1;; -let _PPC_OP_IMM = 2;; -let _PPC_OP_MEM = 3;; -let _PPC_OP_CRX = 64;; - (* PPC instruction *) let _PPC_INS_INVALID = 0;; diff --git a/bindings/python/capstone/ppc_const.py b/bindings/python/capstone/ppc_const.py index 893c5884..b42433aa 100644 --- a/bindings/python/capstone/ppc_const.py +++ b/bindings/python/capstone/ppc_const.py @@ -20,6 +20,14 @@ PPC_BH_INVALID = 0 PPC_BH_PLUS = 1 PPC_BH_MINUS = 2 +# Operand type for instruction's operands + +PPC_OP_INVALID = 0 +PPC_OP_REG = 1 +PPC_OP_IMM = 2 +PPC_OP_MEM = 3 +PPC_OP_CRX = 64 + # PPC registers PPC_REG_INVALID = 0 @@ -234,14 +242,6 @@ PPC_REG_CR1EQ = 208 PPC_REG_X2 = 209 PPC_REG_ENDING = 210 -# Operand type for instruction's operands - -PPC_OP_INVALID = 0 -PPC_OP_REG = 1 -PPC_OP_IMM = 2 -PPC_OP_MEM = 3 -PPC_OP_CRX = 64 - # PPC instruction PPC_INS_INVALID = 0