Files
kaizen/arch/M68K/M68KModule.c
SimoneN64 352a52804d Squashed 'external/capstone/' content from commit 5430745e962
git-subtree-dir: external/capstone
git-subtree-split: 5430745e9623786f65c0d773a417f389ebb43395
2024-09-23 19:06:48 +02:00

46 lines
899 B
C

/* Capstone Disassembly Engine */
/* M68K Backend by Daniel Collin <daniel@collin.com> 2015 */
#ifdef CAPSTONE_HAS_M68K
#include "../../utils.h"
#include "../../MCRegisterInfo.h"
#include "M68KDisassembler.h"
#include "M68KInstPrinter.h"
#include "M68KModule.h"
cs_err M68K_global_init(cs_struct *ud)
{
m68k_info *info;
info = cs_mem_calloc(sizeof(m68k_info), 1);
if (!info) {
return CS_ERR_MEM;
}
ud->printer = M68K_printInst;
ud->printer_info = info;
ud->getinsn_info = NULL;
ud->disasm = M68K_getInstruction;
ud->skipdata_size = 2;
ud->post_printer = NULL;
ud->reg_name = M68K_reg_name;
ud->insn_id = M68K_get_insn_id;
ud->insn_name = M68K_insn_name;
ud->group_name = M68K_group_name;
#ifndef CAPSTONE_DIET
ud->reg_access = M68K_reg_access;
#endif
return CS_ERR_OK;
}
cs_err M68K_option(cs_struct *handle, cs_opt_type type, size_t value)
{
return CS_ERR_OK;
}
#endif