1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-26 08:32:00 +00:00

[LD65] Add bank number to dbgfile

This commit is contained in:
Clyde Shaffer 2024-11-12 01:57:27 -05:00
parent 0541b65aa4
commit fa80e171a2

View File

@ -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);
}
}