11 RZ_LOG_ERROR(
"disassembler: lua: no version info, specify it with `asm.cpu` option\n");
15 if (strcmp(
a->cpu,
"5.4") == 0) {
18 }
else if (strcmp(
a->cpu,
"5.3") == 0) {
22 RZ_LOG_ERROR(
"disassembler: lua: version %s is not supported\n",
a->cpu);
32 int str_len = strlen(
str);
37 RZ_LOG_ERROR(
"assembler: lua: no version info, specify it with `asm.cpu` option\n");
41 if (strcmp(
a->cpu,
"5.3") == 0) {
45 }
else if (strcmp(
a->cpu,
"5.4") == 0) {
50 RZ_LOG_ERROR(
"assembler: lua: version %s is not supported\n",
a->cpu);
64 .desc =
"luac disassemble plugin",
69 #ifndef RZ_PLUGIN_INCORE
RzAsmPlugin rz_asm_plugin_luac
int rz_luac_asm(RzAsm *a, RzAsmOp *opstruct, const char *str)
RZ_API RzLibStruct rizin_plugin
int rz_luac_disasm(RzAsm *a, RzAsmOp *opstruct, const ut8 *buf, int len)
bool free_lua_opnames(LuaOpNameList list)
void lua_set_instruction(LuaInstruction instruction, ut8 *data)
LuaOpNameList get_lua54_opnames(void)
int lua54_disasm(RzAsmOp *op, const ut8 *buf, int len, LuaOpNameList oplist)
LuaOpNameList get_lua53_opnames(void)
bool lua54_assembly(const char *input, st32 input_size, LuaInstruction *instruction)
bool lua53_assembly(const char *input, st32 input_size, LuaInstruction *instruction)
int lua53_disasm(RzAsmOp *op, const ut8 *buf, int len, LuaOpNameList oplist)
#define RZ_LOG_ERROR(fmtstr,...)
RZ_API bool rz_strbuf_setbin(RzStrBuf *sb, const ut8 *s, size_t len)