mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-03 12:12:06 +00:00
Fix #5737 - Show '%c' in mov [],v
This commit is contained in:
parent
d01f3832ad
commit
d6a344acec
@ -2395,6 +2395,7 @@ static void ds_comment_newline(RDisasmState *ds) {
|
||||
static void ds_print_ptr(RDisasmState *ds, int len, int idx) {
|
||||
RCore *core = ds->core;
|
||||
ut64 p = ds->analop.ptr;
|
||||
ut64 v = ds->analop.val;
|
||||
int aligned = 0;
|
||||
#define DOALIGN() \
|
||||
if (!aligned) { \
|
||||
@ -2408,6 +2409,11 @@ static void ds_print_ptr(RDisasmState *ds, int len, int idx) {
|
||||
if (!ds->show_slow) {
|
||||
return;
|
||||
}
|
||||
if (((char)v > 0) && v>='!' && v<='~') {
|
||||
char ch = v;
|
||||
DOALIGN();
|
||||
r_cons_printf (" ; '%c'", ch);
|
||||
}
|
||||
if (p == UT64_MAX) {
|
||||
/* do nothing */
|
||||
} else if (((st64)p) > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user