2014-02-25 17:03:12 +01:00
|
|
|
/* 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",
|
2014-02-25 17:03:12 +01:00
|
|
|
.desc = "Whitespace esotheric VM",
|
2014-02-02 02:42:21 +01:00
|
|
|
.arch = "whitespace",
|
|
|
|
.license = "LGPL3",
|
|
|
|
.bits = 32,
|
2016-04-26 19:09:15 +10:00
|
|
|
.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
|