Go to the source code of this file.
◆ assemble_8051()
Definition at line 1183 of file 8051_ass.c.
1184 if (!
a || !
op || !user_asm) {
1191 char const *arguments = user_asm;
1192 while (!
terminates_asm_line(*arguments) && ((
'a' <= *arguments && *arguments <=
'z') || (
'A' <= *arguments && *arguments <=
'Z'))) {
1198 char *
arg[3] = { 0 };
1200 char const *carg[3] = {
arg[0],
arg[1],
arg[2] };
1203 int wants_arguments;
1205 if (!
mnem || nr_of_arguments != wants_arguments) {
1217 ut8 instr[4] = { 0 };
1219 if (!
mnem(carg,
a->pc, &binp)) {
1240 size_t len = binp - instr;
1242 return binp - instr;
bool(* parse_mnem_args)(char const *const *, ut16, ut8 **)
static int get_arguments(char **arg, char const *arguments)
static parse_mnem_args mnemonic(char const *user_asm, int *nargs)
static bool terminates_asm_line(char c)
RZ_API void Ht_() free(HtName_(Ht) *ht)
RZ_API const char * rz_strbuf_set(RzStrBuf *sb, const char *s)
RZ_API bool rz_strbuf_setbin(RzStrBuf *sb, const ut8 *s, size_t len)
References a, free(), get_arguments(), len, mnem, mnemonic(), rz_strbuf_set(), rz_strbuf_setbin(), and terminates_asm_line().