mirror of
https://github.com/fadden/6502bench.git
synced 2024-11-26 21:49:45 +00:00
0d9814d993
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. |
||
---|---|---|
.. | ||
1000-allops-value-65816.S | ||
1001-allops-zero-65816.S | ||
1002-embedded-instructions.S | ||
1003-flags-and-branches.S | ||
1004-data-recognition.S | ||
2000-allops-value-6502.S | ||
2001-allops-zero-6502.S | ||
2002-allops-value-65C02.S | ||
2003-allops-zero-65C02.S | ||
2004-numeric-types.S | ||
2005-string-types.S | ||
2006-operand-formats.S | ||
2007-labels-and-symbols.S | ||
2008-address-changes.S | ||
2009-branches-and-banks.S | ||
2010-target-adjustment.S | ||
2011-hinting.S | ||
2012-label-localizer.S | ||
2013-notes-and-comments.S | ||
2014-label-dp.S | ||
2016-char-encoding.S | ||
2019-local-variables.S | ||
2020-cycle-counts-65816.S | ||
2021-external-symbols.S | ||
allops-common-65C02.S | ||
allops-common-6502.S | ||
allops-common-65816.S |