radare2/libr/asm/p/asm_z80_cr.c
2015-07-12 19:05:33 +02:00

33 lines
654 B
C

/* radare - LGPL - Copyright 2014-2015 - condret, pancake */
#include <r_types.h>
#include <r_util.h>
#include <r_lib.h>
#include <r_asm.h>
#include "../arch/z80_cr/z80_cr.c"
static int do_disassemble(RAsm *a, RAsmOp *op, const ut8 *buf, int len) {
return op->size = z80Disass (op, buf, len);
}
RAsmPlugin r_asm_plugin_z80_cr = {
.name = "z80.cr",
.desc = "Zilog Z80",
.license = "LGPL",
.arch = "z80",
.bits = 8,
.init = NULL,
.fini = NULL,
.disassemble = do_disassemble,
.assemble = NULL,
};
#ifndef CORELIB
struct r_lib_struct_t radare_plugin = {
.type = R_LIB_TYPE_ASM,
.data = &r_asm_plugin_z80_cr,
.version = R2_VERSION
};
#endif