From fa80e171a21d796d7f9c58d2fabd010dc0cfada5 Mon Sep 17 00:00:00 2001 From: Clyde Shaffer Date: Tue, 12 Nov 2024 01:57:27 -0500 Subject: [PATCH] [LD65] Add bank number to dbgfile --- src/ld65/segments.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ld65/segments.c b/src/ld65/segments.c index 255b8ccd1..35d178774 100644 --- a/src/ld65/segments.c +++ b/src/ld65/segments.c @@ -638,6 +638,13 @@ void PrintDbgSegments (FILE* F) fprintf (F, ",oname=\"%s\",ooffs=%lu", S->OutputName, S->OutputOffs); } + if (S->MemArea) { + if (S->MemArea->BankExpr) { + if (IsConstExpr (S->MemArea->BankExpr)) { + fprintf (F, ",bank=%lu", GetExprVal(S->MemArea->BankExpr)); + } + } + } fputc ('\n', F); } }