Fix the address range on a range

This commit is contained in:
Zorchenhimer 2025-12-28 20:00:16 -05:00
parent 1d44bb4b24
commit 2310b042b0
Signed by: Zorchenhimer
GPG Key ID: 70A1AB767AAB9C20
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ func (l Label) Mlb(startRam, startRom int) string {
addrStr := fmt.Sprintf("%04X", addr)
if l.Size > 1 {
addrStr = fmt.Sprintf("%04X-%04X", l.Address, l.Address+l.Size-1)
addrStr = fmt.Sprintf("%04X-%04X", addr, addr+l.Size-1)
}
return fmt.Sprintf("%s:%s:%s:%s", memType, addrStr, l.Name, l.Comment)
}