Rizin
unix-like reverse engineering framework and cli tools
|
#include "arch_53.h"
Go to the source code of this file.
Functions | |
static LuaInstruction | encode_instruction (ut8 opcode, const char *arg_start, ut16 flag, ut8 arg_num) |
bool | lua53_assembly (const char *input, st32 input_size, LuaInstruction *instruction_p) |
|
static |
Definition at line 7 of file assembly_53.c.
References args, assert(), has_param_flag, i, lua_convert_str_to_num(), lua_is_valid_num_value_string(), lua_load_next_arg_start(), PARAM_A, PARAM_Ax, PARAM_B, PARAM_Bx, PARAM_C, PARAM_sBx, SET_OPCODE, SETARG_A, SETARG_Ax, SETARG_B, SETARG_Bx, SETARG_C, and SETARG_sBx.
Referenced by lua53_assembly().
bool lua53_assembly | ( | const char * | input, |
st32 | input_size, | ||
LuaInstruction * | instruction_p | ||
) |
Definition at line 60 of file assembly_53.c.
References encode_instruction(), get_lua53_opcode_by_name(), input(), NULL, OP_ADD, OP_BAND, OP_BNOT, OP_BOR, OP_BXOR, OP_CALL, OP_CLOSURE, OP_CONCAT, OP_DIV, OP_EQ, OP_EXTRAARG, OP_FORLOOP, OP_FORPREP, OP_GETTABLE, OP_GETTABUP, OP_GETUPVAL, OP_IDIV, OP_JMP, OP_LE, OP_LEN, OP_LOADBOOL, OP_LOADK, OP_LOADKX, OP_LOADNIL, OP_LT, OP_MOD, OP_MOVE, OP_MUL, OP_NEWTABLE, OP_NOT, OP_POW, OP_RETURN, OP_SELF, OP_SETLIST, OP_SETTABLE, OP_SETTABUP, OP_SETUPVAL, OP_SHL, OP_SHR, OP_SUB, OP_TAILCALL, OP_TEST, OP_TESTSET, OP_TFORCALL, OP_TFORLOOP, OP_UNM, OP_VARARG, PARAM_A, PARAM_Ax, PARAM_B, PARAM_Bx, PARAM_C, PARAM_sBx, and rz_str_trim_head_ro().
Referenced by rz_luac_asm().