• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Capstone Disassembly Engine */
2 /* MOS65XX Backend by Sebastian Macke <sebastian@macke.de> 2018 */
3 
4 #ifdef CAPSTONE_HAS_MOS65XX
5 
6 #include "../../utils.h"
7 #include "../../MCRegisterInfo.h"
8 #include "MOS65XXDisassembler.h"
9 #include "MOS65XXModule.h"
10 
MOS65XX_global_init(cs_struct * ud)11 cs_err MOS65XX_global_init(cs_struct *ud)
12 {
13 	// verify if requested mode is valid
14 	if (ud->mode)
15 		return CS_ERR_MODE;
16 
17 	ud->printer = MOS65XX_printInst;
18 	ud->printer_info = NULL;
19 	ud->insn_id = MOS65XX_get_insn_id;
20 	ud->insn_name = MOS65XX_insn_name;
21 	ud->group_name = MOS65XX_group_name;
22 	ud->disasm = MOS65XX_getInstruction;
23 	ud->reg_name = MOS65XX_reg_name;
24 
25 	return CS_ERR_OK;
26 }
27 
MOS65XX_option(cs_struct * handle,cs_opt_type type,size_t value)28 cs_err MOS65XX_option(cs_struct *handle, cs_opt_type type, size_t value)
29 {
30 	return CS_ERR_OK;
31 }
32 
33 #endif
34