1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-07-07 07:28:57 +00:00
6502bench/SourceGen/WpfGui
Andy McFadden 0d9814d993 Allow explicit widths in project/platform symbols, part 3
Implement multi-byte project/platform symbols by filling out a table
of addresses.  Each symbol is "painted" into the table, replacing
an existing entry if the new entry has higher priority.  This allows
us to handle overlapping entries, giving boosted priority to platform
symbols that are defined in .sym65 files loaded later.

The bounds on project/platform symbols are now rigidly defined.  If
the "nearby" feature is enabled, references to SYM-1 will be picked
up, but we won't go hunting for SYM+1 unless the symbol is at least
two bytes wide.

The cost of adding a symbol to the symbol table is about the same,
but we don't have a quick way to remove a symbol.

Previously, if two platform symbols had the same value, the symbol
with the alphabetically lowest label would win.  Now, the symbol
defined in the most-recently-loaded file wins.  (If you define two
symbols with the same value in the same file, it's still resolved
alphabetically.)  This allows the user to pick the winner by
arranging the load order of the platform symbol files.

Platform symbols now keep a reference to the file ident of the
symbol file that defined them, so we can show the symbols's source
in the Info panel.

These changes altered the behavior of test 2008-address-changes,
which includes some tests on external addresses that are close to
labeled internal addresses.  The previous behavior essentially
treated user labels as being 3 bytes wide and extending outside the
file bounds, which was mildly convenient on occasion but felt a
little skanky.  (We could do with a way to define external symbols
relative to internal symbols, for things like the source address of
code that gets relocated.)

Also, re-enabled some unit tests.

Also, added a bit of identifying stuff to CrashLog.txt.
2019-10-02 16:50:15 -07:00
..
AboutBox.xaml Various doc fixes 2019-07-29 13:20:03 -07:00
AboutBox.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
CodeListItemStyle.xaml Make modified flags stand out 2019-09-02 15:18:55 -07:00
DataFileLoadIssue.xaml Minor fixes 2019-09-21 18:49:03 -07:00
DataFileLoadIssue.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
DiscardChanges.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
DiscardChanges.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
EditAddress.xaml Minor fixes 2019-07-21 15:24:39 -07:00
EditAddress.xaml.cs Minor fixes 2019-07-21 15:24:39 -07:00
EditAppSettings.xaml Make "long labels on new line" configurable in export dialog 2019-09-18 11:14:20 -07:00
EditAppSettings.xaml.cs Implement text export 2019-09-12 13:57:52 -07:00
EditComment.xaml Minor UI tweaks 2019-09-18 18:11:48 -07:00
EditComment.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
EditDataOperand.xaml Minor fixes 2019-09-27 13:43:58 -07:00
EditDataOperand.xaml.cs Fix assert failure in data operand editor 2019-09-18 11:35:45 -07:00
EditDefSymbol.xaml Allow explicit widths in project/platform symbols, part 1 2019-10-01 16:00:08 -07:00
EditDefSymbol.xaml.cs Allow explicit widths in project/platform symbols, part 1 2019-10-01 16:00:08 -07:00
EditInstructionOperand.xaml Fix HTML output 2019-09-17 19:13:28 -07:00
EditInstructionOperand.xaml.cs Allow explicit widths in project/platform symbols, part 1 2019-10-01 16:00:08 -07:00
EditLabel.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
EditLabel.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
EditLocalVariableTable.xaml Allow explicit widths in project/platform symbols, part 2 2019-10-01 19:11:54 -07:00
EditLocalVariableTable.xaml.cs Allow explicit widths in project/platform symbols, part 2 2019-10-01 19:11:54 -07:00
EditLongComment.xaml Minor tweaks 2019-09-26 13:00:14 -07:00
EditLongComment.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
EditLvTableLocation.xaml Add a "move table" button 2019-09-01 16:40:54 -07:00
EditLvTableLocation.xaml.cs Add a "move table" button 2019-09-01 16:40:54 -07:00
EditNote.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
EditNote.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
EditProjectProperties.xaml Allow explicit widths in project/platform symbols, part 2 2019-10-01 19:11:54 -07:00
EditProjectProperties.xaml.cs Allow explicit widths in project/platform symbols, part 2 2019-10-01 19:11:54 -07:00
EditStatusFlags.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
EditStatusFlags.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
Export.xaml Make "long labels on new line" configurable in export dialog 2019-09-18 11:14:20 -07:00
Export.xaml.cs Make "long labels on new line" configurable in export dialog 2019-09-18 11:14:20 -07:00
FindBox.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
FindBox.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
FontPicker.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
FontPicker.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
FormatAddressTable.xaml Rename FormatSplitAddress to FormatAddressTable 2019-09-15 13:37:38 -07:00
FormatAddressTable.xaml.cs Rename FormatSplitAddress to FormatAddressTable 2019-09-15 13:37:38 -07:00
GotoBox.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
GotoBox.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
MainWindow.xaml Allow explicit widths in project/platform symbols, part 2 2019-10-01 19:11:54 -07:00
MainWindow.xaml.cs Allow explicit widths in project/platform symbols, part 3 2019-10-02 16:50:15 -07:00
NewProject.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
NewProject.xaml.cs Fix startup issues 2019-07-20 17:36:12 -07:00
ProjectLoadIssues.xaml Minor fixes 2019-09-21 18:49:03 -07:00
ProjectLoadIssues.xaml.cs Make the "continue" button actually do something 2019-08-02 16:00:58 -07:00