Refactor how map file sections are printed

This makes size-0 sections print as "($0000 bytes)" instead of
"(0 bytes)", which is more consistent.
This commit is contained in:
Rangi42
2024-10-22 17:05:26 -04:00
committed by Eldred Habert
parent ab6244d81c
commit 0d3980d039
3 changed files with 6 additions and 10 deletions

View File

@@ -25,3 +25,5 @@ wLabel1:: ds 6
SECTION "hram", HRAM
hLabel:: ds 7
.local::
SECTION "\n\r\t\"\\", ROM0[1]

View File

@@ -10,6 +10,7 @@ ROM0 bank #0:
SECTION: $0000-$0000 ($0001 byte) ["rom0"]
$0000 = Label0
$0001 = Label0.local
SECTION: $0001 ($0000 bytes) ["\n\r\t\"\\"]
EMPTY: $0001-$3fff ($3fff bytes)
TOTAL EMPTY: $3fff bytes