radare2/libr/asm/p/asm_ws.c

31 lines
635 B
C
Raw Normal View History

/* radare - LGPL - Copyright 2014 - condret */
2014-02-02 02:42:21 +01:00
#include <r_types.h>
#include <r_util.h>
#include <r_asm.h>
#include <r_lib.h>
2014-02-03 00:19:55 +01:00
#define WS_API static
2014-02-02 02:42:21 +01:00
#include "../arch/whitespace/wsdis.c"
2014-03-18 02:37:38 +01:00
static int disassemble(RAsm *a, RAsmOp *op, const ut8 *buf, int len) {
2014-03-21 12:22:31 +01:00
return wsdis (op, buf, len);
2014-02-02 02:42:21 +01:00
}
RAsmPlugin r_asm_plugin_ws = {
.name = "ws",
.desc = "Whitespace esotheric VM",
2014-02-02 02:42:21 +01:00
.arch = "whitespace",
.license = "LGPL3",
.bits = 32,
.endian = R_SYS_ENDIAN_NONE,
.disassemble = &disassemble
2014-02-02 02:42:21 +01:00
};
#ifndef CORELIB
struct r_lib_struct_t radare_plugin = {
.type = R_LIB_TYPE_ASM,
2015-07-12 16:04:10 +02:00
.data = &r_asm_plugin_ws,
.version = R2_VERSION
2014-02-02 02:42:21 +01:00
};
#endif