From ca38b7751cb423b891934a8f412d5523a8c642dc Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Tue, 30 Apr 2024 13:27:07 -0700 Subject: [PATCH] Tweak label file generation Include an altered version of the uniquified local label, so that VICE will keep the full set. (issue #151) --- SourceGen/LabelFileGenerator.cs | 11 ++++++++--- SourceGen/Symbol.cs | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/SourceGen/LabelFileGenerator.cs b/SourceGen/LabelFileGenerator.cs index b70ad1d..e8a8279 100644 --- a/SourceGen/LabelFileGenerator.cs +++ b/SourceGen/LabelFileGenerator.cs @@ -67,16 +67,21 @@ namespace SourceGen { // Sort alphabetically. Not necessary, but it could make a "diff" easier to read. symList.Sort((a, b) => Symbol.Compare(Symbol.SymbolSortField.Name, true, a, b)); + Debug.Assert(mFormat == LabelFmt.VICE); + // VICE format is "add_label