#include <rz_asm.h>
#include <rz_types.h>
#include <rz_lib.h>
#include <string.h>
Go to the source code of this file.
◆ __disassemble()
Definition at line 26 of file asm_malbolge.c.
28 return op->size =
opstr ? 1 : 0;
static const char * mal_dis(ut64 c, const ut8 *buf, ut64 len)
static int opstr(RzAsm *a, ut8 *data, const Opcode *op)
References a, len, mal_dis(), and opstr().
◆ mal_dis()
Definition at line 10 of file asm_malbolge.c.
12 switch ((
buf[0] +
c) % 94) {
13 case 4:
return "jmp [d]";
14 case 5:
return "out a";
15 case 23:
return "in a";
16 case 39:
return "rotr [d], mov a, [d]";
17 case 40:
return "mov d, [d]";
18 case 62:
return "crz [d], a, mov a, [d]";
19 case 81:
return "end";
20 default:
return "nop";
References c, len, and NULL.
Referenced by __disassemble().
◆ rizin_plugin
Initial value:= {
}
RzAsmPlugin rz_asm_plugin_malbolge
Definition at line 43 of file asm_malbolge.c.
◆ rz_asm_plugin_malbolge
Initial value:= {
.name = "malbolge",
.desc = "Malbolge Ternary VM",
.arch = "malbolge",
.author = "condret",
.license = "LGPL3",
.bits = 32,
}
static int __disassemble(RzAsm *a, RzAsmOp *op, const ut8 *buf, int len)
#define RZ_SYS_ENDIAN_NONE
Definition at line 31 of file asm_malbolge.c.