From 221389357a42df8d0491cd269de17162b9bdb9f7 Mon Sep 17 00:00:00 2001 From: stefanrueger Date: Sat, 24 May 2025 14:11:17 +0200 Subject: [PATCH] Print disasm comments for P labels --- src/disasm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/disasm.c b/src/disasm.c index 1c0d37eb..090e84d5 100644 --- a/src/disasm.c +++ b/src/disasm.c @@ -629,7 +629,10 @@ static int process_data(const char *buf, int buflen, int pos, int offset) { if(s->name) { cx->dis_para++; s->printed = 1; // Will be printed in pass 2 - disasm_out("%s:\n", s->name); + if(!s->comment || !*s->comment || !cx->dis_opts.comments) + disasm_out("%s:\n", s->name); + else + disasm_out("%-*s ; %s\n", commentcol(), str_ccprintf("%s:", s->name), s->comment); } for(int i = 0; i < s->count && pos + ret < buflen; i++) {