6 #define RZ_VISUAL_ASM_BUFSIZE 1024
28 "Visual assembler help:\n\n"
29 " assemble input while typing using asm.arch, asm.bits and cfg.bigendian\n"
30 " press enter to quit (prompt if there are bytes to be written)\n"
31 " this assembler supports various directives like .hex ...\n");
39 if (
a->acode &&
a->acode->len) {
42 rz_cons_print(
"\n\n");
45 strcpy(
a->codebuf,
a->blockbuf);
47 if (xlen >= strlen(
a->blockbuf)) {
48 a->codebuf[xlen] =
'\0';
59 core->
print->
cur = (
a->acode &&
a->acode->len) ?
a->acode->len - 1 : 0;
86 eprintf(
"ERROR: Cannot write in here, check map permissions or reopen the file with oo+\n");
RZ_API void * rz_asm_code_free(RzAsmCode *acode)
RZ_API char * rz_asm_code_get_hex(RzAsmCode *acode)
RZ_API int rz_asm_set_pc(RzAsm *a, ut64 pc)
RZ_API RzAsmCode * rz_asm_massemble(RzAsm *a, const char *assembly)
RZ_API char * rz_core_cmd_str(RzCore *core, const char *cmd)
Executes a rizin command and returns the stdout as a string.
RZ_API ut64 rz_config_get_i(RzConfig *cfg, RZ_NONNULL const char *name)
RZ_API RZ_BORROW const char * rz_config_get(RzConfig *cfg, RZ_NONNULL const char *name)
RZ_API void rz_cons_clear00(void)
RZ_API int rz_cons_get_size(int *rows)
RZ_API int rz_cons_printf(const char *format,...)
RZ_API void rz_cons_flush(void)
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags cmd
RZ_API const char * rz_line_readline_cb(RzLineReadCallback cb, void *user)
RZ_API void Ht_() free(HtName_(Ht) *ht)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
static const char hex[16]
RZ_API int rz_hex_bin2str(const ut8 *in, int len, char *out)
RZ_API bool rz_io_read_at(RzIO *io, ut64 addr, ut8 *buf, int len)
RZ_API bool rz_io_write_at(RzIO *io, ut64 addr, const ut8 *buf, int len)
RZ_API char * rz_str_newf(const char *fmt,...) RZ_PRINTF_CHECK(1
RZ_API char * rz_str_ansi_crop(const char *str, unsigned int x, unsigned int y, unsigned int x2, unsigned int y2)
static struct sockaddr static addrlen static backlog const void msg
char blockbuf[RZ_VISUAL_ASM_BUFSIZE]
#define RZ_VISUAL_ASM_BUFSIZE
static int readline_callback(void *_a, const char *str)
RZ_API void rz_core_visual_asm(RzCore *core, ut64 off)
ut64(WINAPI *w32_GetEnabledXStateFeatures)()