mirror of
https://github.com/fadden/6502bench.git
synced 2025-07-24 22:25:06 +00:00
Label rework, part 3
Added serialization of non-unique labels to project files. The address labels are stored without the non-unique tag, because we can get that from the file offset. (If we stored it, we'd need to extract the value and verify that it matches the offset.) Operand weak references are symbolic, and so do include the tag string. We weren't validating symbol labels before. Now we are. This also adds a "NonU" filter to the Symbols window so the labels can be shown or hidden as desired. Also, added source for a first pass at a regression test.
This commit is contained in:
@@ -308,11 +308,12 @@ namespace SourceGen {
|
||||
// actually used is expected to do something reasonable by default.
|
||||
|
||||
settings.SetBool(AppSettings.SYMWIN_SHOW_USER, true);
|
||||
settings.SetBool(AppSettings.SYMWIN_SHOW_NON_UNIQUE, false);
|
||||
settings.SetBool(AppSettings.SYMWIN_SHOW_PROJECT, true);
|
||||
settings.SetBool(AppSettings.SYMWIN_SHOW_PLATFORM, false);
|
||||
settings.SetBool(AppSettings.SYMWIN_SHOW_AUTO, false);
|
||||
settings.SetBool(AppSettings.SYMWIN_SHOW_CONST, true);
|
||||
settings.SetBool(AppSettings.SYMWIN_SHOW_ADDR, true);
|
||||
settings.SetBool(AppSettings.SYMWIN_SHOW_CONST, true);
|
||||
settings.SetBool(AppSettings.SYMWIN_SORT_ASCENDING, true);
|
||||
settings.SetInt(AppSettings.SYMWIN_SORT_COL, (int)Symbol.SymbolSortField.Name);
|
||||
|
||||
@@ -502,6 +503,8 @@ namespace SourceGen {
|
||||
// Configure the Symbols window.
|
||||
mMainWin.SymFilterUserLabels =
|
||||
settings.GetBool(AppSettings.SYMWIN_SHOW_USER, false);
|
||||
mMainWin.SymFilterNonUniqueLabels =
|
||||
settings.GetBool(AppSettings.SYMWIN_SHOW_NON_UNIQUE, false);
|
||||
mMainWin.SymFilterAutoLabels =
|
||||
settings.GetBool(AppSettings.SYMWIN_SHOW_AUTO, false);
|
||||
mMainWin.SymFilterProjectSymbols =
|
||||
|
Reference in New Issue
Block a user