m68k: update bindings after #1068
diff --git a/arch/M68K/M68KInstPrinter.c b/arch/M68K/M68KInstPrinter.c
index 1aea8c4..14a86e4 100644
--- a/arch/M68K/M68KInstPrinter.c
+++ b/arch/M68K/M68KInstPrinter.c
@@ -178,8 +178,7 @@
if (op->address_mode == M68K_AM_PCI_INDEX_BASE_DISP) {
SStream_concat(O, "$%x", pc + 2 + op->mem.in_disp);
- }
- else {
+ } else {
if (op->mem.in_disp > 0)
SStream_concat(O, "$%x", op->mem.in_disp);
}
diff --git a/bindings/java/capstone/M68k_const.java b/bindings/java/capstone/M68k_const.java
index 96125f3..ba95483 100644
--- a/bindings/java/capstone/M68k_const.java
+++ b/bindings/java/capstone/M68k_const.java
@@ -76,6 +76,7 @@
public static final int M68K_AM_ABSOLUTE_DATA_SHORT = 16;
public static final int M68K_AM_ABSOLUTE_DATA_LONG = 17;
public static final int M68K_AM_IMMEDIATE = 18;
+ public static final int M68K_AM_BRANCH_DISPLACEMENT = 19;
// Operand type for instruction's operands
@@ -87,6 +88,14 @@
public static final int M68K_OP_FP_DOUBLE = 5;
public static final int M68K_OP_REG_BITS = 6;
public static final int M68K_OP_REG_PAIR = 7;
+ public static final int M68K_OP_BR_DISP = 8;
+
+ // Operand type for instruction's operands
+
+ public static final int M68K_OP_BR_DISP_SIZE_INVALID = 0;
+ public static final int M68K_OP_BR_DISP_SIZE_BYTE = 1;
+ public static final int M68K_OP_BR_DISP_SIZE_WORD = 2;
+ public static final int M68K_OP_BR_DISP_SIZE_LONG = 4;
public static final int M68K_CPU_SIZE_NONE = 0;
public static final int M68K_CPU_SIZE_BYTE = 1;
diff --git a/bindings/ocaml/m68k_const.ml b/bindings/ocaml/m68k_const.ml
index e2e6160..429ec1d 100644
--- a/bindings/ocaml/m68k_const.ml
+++ b/bindings/ocaml/m68k_const.ml
@@ -73,6 +73,7 @@
let _M68K_AM_ABSOLUTE_DATA_SHORT = 16;;
let _M68K_AM_ABSOLUTE_DATA_LONG = 17;;
let _M68K_AM_IMMEDIATE = 18;;
+let _M68K_AM_BRANCH_DISPLACEMENT = 19;;
(* Operand type for instruction's operands *)
@@ -84,6 +85,14 @@
let _M68K_OP_FP_DOUBLE = 5;;
let _M68K_OP_REG_BITS = 6;;
let _M68K_OP_REG_PAIR = 7;;
+let _M68K_OP_BR_DISP = 8;;
+
+(* Operand type for instruction's operands *)
+
+let _M68K_OP_BR_DISP_SIZE_INVALID = 0;;
+let _M68K_OP_BR_DISP_SIZE_BYTE = 1;;
+let _M68K_OP_BR_DISP_SIZE_WORD = 2;;
+let _M68K_OP_BR_DISP_SIZE_LONG = 4;;
let _M68K_CPU_SIZE_NONE = 0;;
let _M68K_CPU_SIZE_BYTE = 1;;
diff --git a/include/capstone/m68k.h b/include/capstone/m68k.h
index d368175..a8074cd 100644
--- a/include/capstone/m68k.h
+++ b/include/capstone/m68k.h
@@ -106,7 +106,6 @@
M68K_AM_IMMEDIATE, // Immediate value
M68K_AM_BRANCH_DISPLACEMENT, // Address as displacement from (PC+2) used by branches
-
} m68k_address_mode;
//> Operand type for instruction's operands
@@ -591,7 +590,6 @@
M68K_INS_UNLK,
M68K_INS_UNPK,
M68K_INS_ENDING, // <-- mark the end of the list of instructions
-
} m68k_insn;
//> Group of M68K instructions