1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-08-14 03:29:00 +00:00
6502bench/SourceGen
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
..
AsmGen Remap labels that use opcode mnemonics 2019-09-20 15:29:34 -07:00
Examples Changed naming convention in Applesoft/F8-ROM symbol files 2019-09-16 16:58:32 -07:00
Properties Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
Res Allow explicit widths in project/platform symbols, part 1 2019-10-01 16:00:08 -07:00
RuntimeData Allow explicit widths in project/platform symbols, part 1 2019-10-01 16:00:08 -07:00
Sandbox Don't do plugin interface checks during code analysis 2019-08-10 17:16:39 -07:00
SGTestData Allow explicit widths in project/platform symbols, part 3 2019-10-02 16:50:15 -07:00
Tests Add 2020-cycle-counts 2019-09-14 18:51:03 -07:00
Tools Add Problem List Viewer to debug menu 2019-09-21 13:43:01 -07:00
WpfGui Allow explicit widths in project/platform symbols, part 3 2019-10-02 16:50:15 -07:00
AddressMap.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
Anattrib.cs Minor tweaks 2019-09-06 13:47:23 -07:00
App.config Fix startup issues 2019-07-20 17:36:12 -07:00
App.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
App.xaml.cs Version 1.3.1 2019-10-01 21:00:08 -07:00
AppSettings.cs Make "long labels on new line" configurable in export dialog 2019-09-18 11:14:20 -07:00
AutoLabel.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
ChangeSet.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
CodeAnalysis.cs Fix code tracing bug 2019-09-17 14:38:16 -07:00
DataAnalysis.cs Allow explicit widths in project/platform symbols, part 3 2019-10-02 16:50:15 -07:00
DefSymbol.cs Allow explicit widths in project/platform symbols, part 3 2019-10-02 16:50:15 -07:00
DisasmProject.cs Allow explicit widths in project/platform symbols, part 3 2019-10-02 16:50:15 -07:00
DisplayList.cs Make modified flags stand out 2019-09-02 15:18:55 -07:00
DisplayListSelection.cs Add C64 encodings to instruction and data operand editors 2019-08-15 17:53:12 -07:00
Exporter.cs Make links less distracting in HTML output 2019-09-22 16:45:08 -07:00
ExternalFile.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
FormatDescriptor.cs Allow explicit widths in project/platform symbols, part 1 2019-10-01 16:00:08 -07:00
FormattedOperandCache.cs Add a string operand cache 2019-08-17 17:03:06 -07:00
HelpAccess.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
LineListGen.cs Allow explicit widths in project/platform symbols, part 1 2019-10-01 16:00:08 -07:00
LocalVariableLookup.cs Instruction operand editor rework, part 2 2019-09-07 20:56:43 -07:00
LocalVariableTable.cs Add local variable uniquification 2019-08-31 14:19:50 -07:00
MainController.cs Allow explicit widths in project/platform symbols, part 3 2019-10-02 16:50:15 -07:00
MultiLineComment.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
NavStack.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
PlatformSymbols.cs Allow explicit widths in project/platform symbols, part 3 2019-10-02 16:50:15 -07:00
ProblemList.cs Allow explicit widths in project/platform symbols, part 1 2019-10-01 16:00:08 -07:00
ProjectFile.cs Allow explicit widths in project/platform symbols, part 1 2019-10-01 16:00:08 -07:00
ProjectProperties.cs Make "smart" PLP handling optional 2019-09-02 15:57:59 -07:00
PseudoOp.cs Allow explicit widths in project/platform symbols, part 1 2019-10-01 16:00:08 -07:00
RuntimeDataAccess.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
SourceGen.csproj Add Problem List Viewer to debug menu 2019-09-21 13:43:01 -07:00
Symbol.cs Allow explicit widths in project/platform symbols, part 3 2019-10-02 16:50:15 -07:00
SymbolTable.cs Allow explicit widths in project/platform symbols, part 3 2019-10-02 16:50:15 -07:00
SystemDefaults.cs Add default text encoding mode to system definition 2019-08-14 18:03:40 -07:00
SystemDefs.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
UndoableChange.cs Add LocalVariableTable list to project 2019-08-26 16:58:53 -07:00
WeakSymbolRef.cs Add local variable uniquification 2019-08-31 14:19:50 -07:00
XrefSet.cs Instruction operand editor rework, part 2 2019-09-07 20:56:43 -07:00