From 92b2ac3c8c47a9de73dad12bfeebf1ed25c92523 Mon Sep 17 00:00:00 2001 From: rlewicki Date: Tue, 25 Oct 2022 23:38:03 +0200 Subject: [PATCH] Remove duplicated EMPTY label in case no bank memory is used --- src/link/output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/link/output.c b/src/link/output.c index efdd2099..66993e45 100644 --- a/src/link/output.c +++ b/src/link/output.c @@ -479,11 +479,11 @@ static uint16_t writeMapBank(struct SortedSections const *sectList, uint16_t bankEndAddr = sectionTypeInfo[type].startAddr + sectionTypeInfo[type].size; - writeEmptySpace(prevEndAddr, bankEndAddr); - if (used == 0) { fputs("\tEMPTY\n\n", mapFile); } else { + writeEmptySpace(prevEndAddr, bankEndAddr); + uint16_t slack = sectionTypeInfo[type].size - used; fprintf(mapFile, "\tTOTAL EMPTY: $%04" PRIx16 " byte%s\n\n", slack,