This adds M68K support to Capstone
diff --git a/cs.c b/cs.c
index a6abb99..ea2329d 100644
--- a/cs.c
+++ b/cs.c
@@ -33,6 +33,7 @@
extern void ARM_enable(void);
extern void AArch64_enable(void);
+extern void M68K_enable(void);
extern void Mips_enable(void);
extern void X86_enable(void);
extern void PPC_enable(void);
@@ -53,6 +54,9 @@
#ifdef CAPSTONE_HAS_ARM64
AArch64_enable();
#endif
+#ifdef CAPSTONE_HAS_M68K
+ M68K_enable();
+#endif
#ifdef CAPSTONE_HAS_MIPS
Mips_enable();
#endif
@@ -366,6 +370,9 @@
// XCore instruction's length can be 2 or 4 bytes,
// so we just skip 2 bytes
return 2;
+ case CS_ARCH_M68K:
+ // M68K has 2 bytes instruction alignment but contain multibyte instruction so we skip 2 bytes
+ return 2;
}
}