diff --git a/vm/pc/dump.c b/vm/pc/dump.c index 334274b..0096f3e 100644 --- a/vm/pc/dump.c +++ b/vm/pc/dump.c @@ -36,15 +36,19 @@ void dump_instr(ctx_t *ctx, #if _ATT_STYLE == 0 log("%s", in->name); #else - char s1[2] = {0, 0}, s2[2] = {0, 0}; + char s0[2] = {0,0}, s1[2] = {0, 0}, s2[2] = {0, 0}; - if (p1 && ACC_IS_MEM(p1)) + if (p1 && ACC_IS_MEM(p1)) { + s0[0] = ':'; s1[0] = getmempref(p1->mlen); + } - if (p2 && ACC_IS_MEM(p2)) + if (p2 && ACC_IS_MEM(p2)) { + s0[0] = ':'; s2[0] = getmempref(p2->mlen); + } - log("%s%s%s", in->name, s1, s2); + log("%s%s%s%s", in->name, s0, s1, s2); #endif if (rep)