20 int delta = 0, adelta = 0, ret;
23 if (maxHits > 0 && *hits >= maxHits) {
49 if (((
addr & 7) == 0) && ((
addr & (7 << 8)) == 0))
100 if (!
v && (!strcmp(
str,
"data") || strstr(
str,
"ASCII") || strstr(
str,
"ISO") || strstr(
str,
"no line terminator"))) {
102 if (!
v && (!strcmp(
str,
"data"))) {
117 for (q =
p; *q; q++) {
118 if (q[0] ==
'\\' && q[1] ==
'n') {
120 strcpy(q + 1, q + ((q[2] ==
' ') ? 3 : 2));
125 if (cmdhit && *cmdhit) {
146 for (q =
p; *q; q++) {
154 if (!strncmp(q + 1,
"0x", 2)) {
RZ_API int rz_core_cmd0(RzCore *core, const char *cmd)
static int rz_core_magic_at(RzCore *core, const char *file, ut64 addr, int depth, int v, PJ *pj, int *hits)
static void rz_core_magic(RzCore *core, const char *file, int v, PJ *pj)
static void rz_core_magic_reset(RzCore *core)
static const char * searchprefix
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_clear_line(int std_err)
RZ_API int rz_cons_printf(const char *format,...)
RZ_API RzFlagItem * rz_flag_set(RzFlag *f, const char *name, ut64 off, ut32 size)
RZ_API char * sdb_fmt(const char *fmt,...)
RZ_API void Ht_() free(HtName_(Ht) *ht)
return strdup("=SP r13\n" "=LR r14\n" "=PC r15\n" "=A0 r0\n" "=A1 r1\n" "=A2 r2\n" "=A3 r3\n" "=ZF zf\n" "=SF nf\n" "=OF vf\n" "=CF cf\n" "=SN or0\n" "gpr lr .32 56 0\n" "gpr pc .32 60 0\n" "gpr cpsr .32 64 0 ____tfiae_________________qvczn\n" "gpr or0 .32 68 0\n" "gpr tf .1 64.5 0 thumb\n" "gpr ef .1 64.9 0 endian\n" "gpr jf .1 64.24 0 java\n" "gpr qf .1 64.27 0 sticky_overflow\n" "gpr vf .1 64.28 0 overflow\n" "gpr cf .1 64.29 0 carry\n" "gpr zf .1 64.30 0 zero\n" "gpr nf .1 64.31 0 negative\n" "gpr itc .4 64.10 0 if_then_count\n" "gpr gef .4 64.16 0 great_or_equal\n" "gpr r0 .32 0 0\n" "gpr r1 .32 4 0\n" "gpr r2 .32 8 0\n" "gpr r3 .32 12 0\n" "gpr r4 .32 16 0\n" "gpr r5 .32 20 0\n" "gpr r6 .32 24 0\n" "gpr r7 .32 28 0\n" "gpr r8 .32 32 0\n" "gpr r9 .32 36 0\n" "gpr r10 .32 40 0\n" "gpr r11 .32 44 0\n" "gpr r12 .32 48 0\n" "gpr r13 .32 52 0\n" "gpr r14 .32 56 0\n" "gpr r15 .32 60 0\n" "gpr r16 .32 64 0\n" "gpr r17 .32 68 0\n")
RZ_API const char * rz_magic_buffer(RzMagic *ms, const void *buf, size_t nb)
RZ_API RzMagic * rz_magic_new(int flags)
RZ_API bool rz_magic_load(RzMagic *ms, const char *magicfile)
RZ_API const char * rz_magic_error(RzMagic *ms)
RZ_API void rz_magic_free(RzMagic *ms)
RZ_API PJ * pj_ki(PJ *j, const char *k, int d)
RZ_API PJ * pj_end(PJ *j)
RZ_API PJ * pj_ks(PJ *j, const char *k, const char *v)
RZ_API PJ * pj_kN(PJ *j, const char *k, st64 n)
RZ_API bool rz_core_seek(RzCore *core, ut64 addr, bool rb)
Seek to addr.
ut64(WINAPI *w32_GetEnabledXStateFeatures)()