1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-12-29 08:29:52 +00:00
6502bench/CommonUtil
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
..
Properties Initial file commit 2018-09-28 10:05:11 -07:00
CommonUtil.csproj Initial file commit 2018-09-28 10:05:11 -07:00
Container.cs Initial file commit 2018-09-28 10:05:11 -07:00
CRC32.cs Initial file commit 2018-09-28 10:05:11 -07:00
DebugLog.cs Initial file commit 2018-09-28 10:05:11 -07:00
FileLoadReport.cs Initial file commit 2018-09-28 10:05:11 -07:00
FileUtil.cs Initial file commit 2018-09-28 10:05:11 -07:00
Misc.cs Allow explicit widths in project/platform symbols, part 3 2019-10-02 16:50:15 -07:00
RangeSet.cs Experiment on uncategorized data analysis 2019-04-18 15:58:43 -07:00
RawData.cs Initial file commit 2018-09-28 10:05:11 -07:00
ShellCommand.cs Initial file commit 2018-09-28 10:05:11 -07:00
TaskTimer.cs Initial file commit 2018-09-28 10:05:11 -07:00
TextUtil.cs Change the way the "add padded string" functions work 2019-09-17 22:02:05 -07:00
TypedRangeSet.cs Experiment on uncategorized data analysis 2019-04-18 15:58:43 -07:00
Version.cs Allow explicit widths in project/platform symbols, part 3 2019-10-02 16:50:15 -07:00