15 if (arg_num >
sizeof(
args)) {
19 for (
int i = 0;
i < arg_num; ++
i) {
21 if (delta_offset == 0) {
26 arg_start += delta_offset;
37 temp =
args[cur_cnt++];
38 temp = temp < 0 ? 0xFF - temp : temp;
42 temp =
args[cur_cnt++];
43 temp = temp < 0 ? 0xFF - temp : temp;
55 assert(cur_cnt == arg_num);
61 const char *opcode_start;
62 const char *opcode_end;
65 const char *arg_start;
72 opcode_end = strchr(
input,
' ');
73 if (opcode_end ==
NULL) {
74 opcode_end =
input + input_size;
77 opcode_len = opcode_end - opcode_start;
#define has_param_flag(flag, bit)
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)
bool lua_is_valid_num_value_string(const char *str)
int lua_load_next_arg_start(const char *raw_string, char *recv_buf)
int lua_convert_str_to_num(const char *str)
ut8 get_lua53_opcode_by_name(const char *name, int len)
assert(limit<=UINT32_MAX/2)
RZ_API const char * rz_str_trim_head_ro(const char *str)
static bool input(void *ud, zip_uint8_t *data, zip_uint64_t length)