Go to the source code of this file.
◆ rz_luac_asm()
Definition at line 31 of file asm_luac.c.
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);
void lua_set_instruction(LuaInstruction instruction, ut8 *data)
bool lua54_assembly(const char *input, st32 input_size, LuaInstruction *instruction)
bool lua53_assembly(const char *input, st32 input_size, LuaInstruction *instruction)
#define RZ_LOG_ERROR(fmtstr,...)
RZ_API bool rz_strbuf_setbin(RzStrBuf *sb, const ut8 *s, size_t len)
References a, rz_asm_op_t::buf, lua53_assembly(), lua54_assembly(), lua_set_instruction(), RZ_LOG_ERROR, rz_strbuf_setbin(), and cmd_descs_generate::str.
◆ rz_luac_disasm()
Definition at line 6 of file asm_luac.c.
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);
bool free_lua_opnames(LuaOpNameList list)
LuaOpNameList get_lua54_opnames(void)
int lua54_disasm(RzAsmOp *op, const ut8 *buf, int len, LuaOpNameList oplist)
LuaOpNameList get_lua53_opnames(void)
int lua53_disasm(RzAsmOp *op, const ut8 *buf, int len, LuaOpNameList oplist)
References a, free_lua_opnames(), get_lua53_opnames(), get_lua54_opnames(), len, lua53_disasm(), lua54_disasm(), NULL, r, RZ_LOG_ERROR, and rz_asm_op_t::size.
◆ rizin_plugin
Initial value:= {
}
RzAsmPlugin rz_asm_plugin_luac
Definition at line 70 of file asm_luac.c.
◆ rz_asm_plugin_luac
Initial value:= {
.name = "luac",
.arch = "luac",
.license = "LGPL3",
.bits = 8,
.desc = "luac disassemble plugin",
}
int rz_luac_asm(RzAsm *a, RzAsmOp *opstruct, const char *str)
int rz_luac_disasm(RzAsm *a, RzAsmOp *opstruct, const ut8 *buf, int len)
Definition at line 59 of file asm_luac.c.