Rizin
unix-like reverse engineering framework and cli tools
|
#include "arch_54.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 | lua54_assembly (const char *input, st32 input_size, LuaInstruction *instruction_p) |
|
static |
Definition at line 6 of file assembly_54.c.
References args, assert(), has_param_flag, i, lua_convert_str_to_num(), lua_is_valid_num_value_string(), lua_load_next_arg_start(), LUA_SET_OPCODE, PARAM_A, PARAM_Ax, PARAM_B, PARAM_Bx, PARAM_C, PARAM_k, PARAM_sB, PARAM_sBx, PARAM_sC, PARAM_sJ, SETARG_A, SETARG_Ax, SETARG_B, SETARG_Bx, SETARG_C, SETARG_k, SETARG_sB, SETARG_sBx, SETARG_sC, and SETARG_sJ.
Referenced by lua54_assembly().
bool lua54_assembly | ( | const char * | input, |
st32 | input_size, | ||
LuaInstruction * | instruction_p | ||
) |
Definition at line 96 of file assembly_54.c.
References encode_instruction(), get_lua54_opcode_by_name(), input(), LUA_SET_OPCODE, NULL, OP_ADD, OP_ADDI, OP_ADDK, OP_BAND, OP_BANDK, OP_BNOT, OP_BOR, OP_BORK, OP_BXORK, OP_CALL, OP_CLOSE, OP_CLOSURE, OP_CONCAT, OP_DIV, OP_DIVK, OP_EQ, OP_EQI, OP_EQK, OP_EXTRAARG, OP_FORLOOP, OP_FORPREP, OP_GEI, OP_GETFIELD, OP_GETI, OP_GETTABLE, OP_GETTABUP, OP_GETUPVAL, OP_GTI, OP_IDIV, OP_IDIVK, OP_JMP, OP_LE, OP_LEI, OP_LEN, OP_LFALSESKIP, OP_LOADF, OP_LOADFALSE, OP_LOADI, OP_LOADK, OP_LOADKX, OP_LOADNIL, OP_LOADTRUE, OP_LT, OP_LTI, OP_MMBIN, OP_MMBINI, OP_MMBINK, OP_MODK, OP_MOVE, OP_MUL, OP_MULK, OP_NEWTABLE, OP_NOT, OP_POW, OP_POWK, OP_RETURN, OP_RETURN0, OP_RETURN1, OP_SELF, OP_SETFIELD, OP_SETI, OP_SETLIST, OP_SETTABLE, OP_SETTABUP, OP_SETUPVAL, OP_SHL, OP_SHLI, OP_SHR, OP_SHRI, OP_SUB, OP_SUBK, OP_TAILCALL, OP_TBC, OP_TEST, OP_TESTSET, OP_TFORCALL, OP_TFORLOOP, OP_TFORPREP, OP_UNM, OP_VARARG, OP_VARARGPREP, PARAM_A, PARAM_Ax, PARAM_B, PARAM_Bx, PARAM_C, PARAM_k, PARAM_sB, PARAM_sBx, PARAM_sC, PARAM_sJ, and rz_str_trim_head_ro().
Referenced by rz_luac_asm().