4 #ifndef BUILD_LUA_ARCH_H
5 #define BUILD_LUA_ARCH_H
11 #define LUA_REG_PREF "R"
12 #define LUA_CONST_PREF "CONST"
13 #define LUA_KR_PREF "R/CONST"
14 #define LUA_UPVALUE_PREF "UPV"
15 #define LUA_EVENT_PREF "EVENT"
16 #define LUA_KPROTO_PREF "KPROTO"
17 #define LUA_NO_PREFIX ""
20 #define LUA_EXTRAARG_MARK "#Ex"
21 #define LUA_KFLAG_MARK "#Kflag"
22 #define LUA_JMP_MARK "#To"
23 #define LUA_CLOSURE_MARK "#CLOSURE"
24 #define LUA_KX_MARK " CONST[#Ex]"
static void list(RzEgg *egg)
char * luaop_new_str_2arg(char *opname, int a, int b)
bool lua_is_valid_num_value_string(const char *str)
char * luaop_new_str_2arg_ex(char *opname, int a, int b, int isk)
int lua54_anal_op(RzAnalysis *analysis, RzAnalysisOp *op, ut64 addr, const ut8 *data, int len)
char * luaop_new_str_3arg(char *opname, int a, int b, int c)
ut8 get_lua54_opcode_by_name(const char *name, int len)
ut8 get_lua53_opcode_by_name(const char *name, int len)
int lua_load_next_arg_start(const char *raw_string, char *recv_buf)
LuaOpNameList get_lua54_opnames(void)
int lua54_disasm(RzAsmOp *op, const ut8 *buf, int len, LuaOpNameList oplist)
char * luaop_new_str_3arg_ex(char *opname, int a, int b, int c, int isk)
int lua53_anal_op(RzAnalysis *analysis, RzAnalysisOp *op, ut64 addr, const ut8 *data, int len)
LuaOpNameList get_lua53_opnames(void)
bool free_lua_opnames(LuaOpNameList list)
bool lua54_assembly(const char *input, st32 input_size, LuaInstruction *instruction)
LuaInstruction lua_build_instruction(const ut8 *buf)
int lua_convert_str_to_num(const char *str)
bool lua53_assembly(const char *input, st32 input_size, LuaInstruction *instruction)
char * luaop_new_str_1arg(char *opname, int a)
void lua_set_instruction(LuaInstruction instruction, ut8 *data)
int lua53_disasm(RzAsmOp *op, const ut8 *buf, int len, LuaOpNameList oplist)
char * luaop_new_str_1arg_ex(char *opname, int a, int isk)
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
static bool input(void *ud, zip_uint8_t *data, zip_uint64_t length)