• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Capstone Disassembly Engine */
2 /* By Nguyen Anh Quynh, 2018 */
3 
4 #ifdef CAPSTONE_HAS_EVM
5 
6 #include "../../cs_priv.h"
7 #include "EVMDisassembler.h"
8 #include "EVMInstPrinter.h"
9 #include "EVMMapping.h"
10 #include "EVMModule.h"
11 
EVM_global_init(cs_struct * ud)12 cs_err EVM_global_init(cs_struct *ud)
13 {
14 	// verify if requested mode is valid
15 	if (ud->mode)
16 		return CS_ERR_MODE;
17 
18 	ud->printer = EVM_printInst;
19 	ud->printer_info = NULL;
20 	ud->insn_id = EVM_get_insn_id;
21 	ud->insn_name = EVM_insn_name;
22 	ud->group_name = EVM_group_name;
23 	ud->disasm = EVM_getInstruction;
24 
25 	return CS_ERR_OK;
26 }
27 
EVM_option(cs_struct * handle,cs_opt_type type,size_t value)28 cs_err EVM_option(cs_struct *handle, cs_opt_type type, size_t value)
29 {
30 	return CS_ERR_OK;
31 }
32 
33 #endif
34