From 2488e02aae119200a1a9c029f3d9f3b9426f9e40 Mon Sep 17 00:00:00 2001 From: Olaf Seibert Date: Tue, 19 May 2015 22:09:53 +0200 Subject: [PATCH] A few more small listing tweaks. --- assemble.c | 1 + assemble_aux.c | 2 +- symbols.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/assemble.c b/assemble.c index af274f3..7f978c6 100644 --- a/assemble.c +++ b/assemble.c @@ -397,6 +397,7 @@ static int assemble( add_sym(label, mstr->nargs, SYMBOLFLAG_DEFINITION | local, &absolute_section, &symbol_st); free(label); + list_value(stack->top, mstr->nargs); return 1; } diff --git a/assemble_aux.c b/assemble_aux.c index b9b69a4..752a29d 100644 --- a/assemble_aux.c +++ b/assemble_aux.c @@ -122,7 +122,7 @@ static int store_internal_word( unsigned word) { change_dot(tr, size); - list_word(str, DOT, word, size, ""); + list_word(str, DOT, word, size, "'"); return text_internal_word(tr, &DOT, size, word); } diff --git a/symbols.c b/symbols.c index f1dfefb..cb29f9f 100644 --- a/symbols.c +++ b/symbols.c @@ -597,7 +597,7 @@ void list_section( int flags = sec->flags; fprintf(lstfile, "%-6s %06o %03d ", - sec->label, sec->size, sec->sector); + sec->label, sec->size & 0177777, sec->sector); fprintf(lstfile, "(%s,%s,%s,%s,%s,%s)\n", (flags & PSECT_RO) ? "RO" : "RW", (flags & PSECT_DATA) ? "D" : "I",