radare2/libr/asm/p/asm_8051.c
Sergi Àlvarez i Capilla cc217494b2 Disable the disassembler logic in the asm plugin for 8051 ##asm
* Avoid compile+link the same code twice for asm & anal
2021-12-14 10:16:58 +01:00

34 lines
670 B
C

/* radare2 - LGPL - Copyright 2013-2019 - pancake, astuder */
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <r_types.h>
#include <r_util.h>
#include <r_lib.h>
#include <r_asm.h>
#include <8051_ass.h>
RAsmPlugin r_asm_plugin_8051 = {
.name = "8051",
.arch = "8051",
.bits = 8,
.endian = R_SYS_ENDIAN_NONE,
.desc = "8051 Intel CPU",
// .disassemble = &disassemble,
.assemble = &assemble_8051,
.license = "PD",
.cpus =
"8051-generic," // First one is default
"8051-shared-code-xdata"
};
#ifndef R2_PLUGIN_INCORE
R_API RLibStruct radare_plugin = {
.type = R_LIB_TYPE_ASM,
.data = &r_asm_plugin_8051,
.version = R2_VERSION
};
#endif