mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Remove duplicated EMPTY label in case no bank memory is used
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user