aboutsummaryrefslogtreecommitdiffstats
path: root/capstone/arch/EVM/EVMModule.c
diff options
context:
space:
mode:
authorAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
committerAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
commitaf1a266670d040d2f4083ff309d732d648afba2a (patch)
tree2fc46203448ddcc6f81546d379abfaeb323575e9 /capstone/arch/EVM/EVMModule.c
parente02cda008591317b1625707ff8e115a4841aa889 (diff)
Add submodule dependency filesHEADmaster
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'capstone/arch/EVM/EVMModule.c')
-rw-r--r--capstone/arch/EVM/EVMModule.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/capstone/arch/EVM/EVMModule.c b/capstone/arch/EVM/EVMModule.c
new file mode 100644
index 000000000..1ba567736
--- /dev/null
+++ b/capstone/arch/EVM/EVMModule.c
@@ -0,0 +1,33 @@
+/* Capstone Disassembly Engine */
+/* By Nguyen Anh Quynh, 2018 */
+
+#ifdef CAPSTONE_HAS_EVM
+
+#include "../../cs_priv.h"
+#include "EVMDisassembler.h"
+#include "EVMInstPrinter.h"
+#include "EVMMapping.h"
+#include "EVMModule.h"
+
+cs_err EVM_global_init(cs_struct *ud)
+{
+ // verify if requested mode is valid
+ if (ud->mode)
+ return CS_ERR_MODE;
+
+ ud->printer = EVM_printInst;
+ ud->printer_info = NULL;
+ ud->insn_id = EVM_get_insn_id;
+ ud->insn_name = EVM_insn_name;
+ ud->group_name = EVM_group_name;
+ ud->disasm = EVM_getInstruction;
+
+ return CS_ERR_OK;
+}
+
+cs_err EVM_option(cs_struct *handle, cs_opt_type type, size_t value)
+{
+ return CS_ERR_OK;
+}
+
+#endif