1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-11-30 01:50:10 +00:00
6502bench/SourceGen/SGTestData/Expected
Andy McFadden d3670c48e8 Label rework, part 6
Correct handling of local variables.  We now correctly uniquify them
with regard to non-unique labels.  Because local vars can effectively
have global scope we mostly want to treat them as global, but they're
uniquified relative to other globals very late in the process, so we
can't just throw them in the symbol table and be done.  Fortunately
local variables exist in a separate namespace, so we just need to
uniquify the variables relative to the post-localization symbol table.
In other words, we take the symbol table, apply the label map, and
rename any variable that clashes.

This also fixes an older problem where we weren't masking the
leading '_' on variable labels when generating 64tass output.

The code list now makes non-unique labels obvious, but you can't tell
the difference between unique global and unique local.  What's more,
the default type value in Edit Label is now adjusted to Global for
unique locals that were auto-generated.  To make it a bit easier to
figure out what's what, the Info panel now has a "label type" line
that reports the type.

The 2023-non-unique-labels test had some additional tests added to
exercise conflicts with local variables.  The 2019-local-variables
test output changed slightly because the de-duplicated variable
naming convention was simplified.
2019-11-18 13:36:53 -08:00
..
1000-allops-value-65816_64tass.S
1000-allops-value-65816_acme.S
1000-allops-value-65816_cc65.cfg
1000-allops-value-65816_cc65.S
1000-allops-value-65816_Merlin32.S
1001-allops-zero-65816_64tass.S
1001-allops-zero-65816_acme.S
1001-allops-zero-65816_cc65.cfg
1001-allops-zero-65816_cc65.S
1001-allops-zero-65816_Merlin32.S
1002-embedded-instructions_64tass.S
1002-embedded-instructions_acme.S
1002-embedded-instructions_cc65.cfg
1002-embedded-instructions_cc65.S
1002-embedded-instructions_Merlin32.S
1003-flags-and-branches_64tass.S
1003-flags-and-branches_acme.S
1003-flags-and-branches_cc65.cfg
1003-flags-and-branches_cc65.S
1003-flags-and-branches_Merlin32.S
1004-data-recognition_64tass.S
1004-data-recognition_acme.S
1004-data-recognition_cc65.cfg
1004-data-recognition_cc65.S
1004-data-recognition_Merlin32.S
2000-allops-value-6502_64tass.S
2000-allops-value-6502_acme.S
2000-allops-value-6502_cc65.cfg
2000-allops-value-6502_cc65.S
2000-allops-value-6502_Merlin32.S
2001-allops-zero-6502_64tass.S
2001-allops-zero-6502_acme.S
2001-allops-zero-6502_cc65.cfg
2001-allops-zero-6502_cc65.S
2001-allops-zero-6502_Merlin32.S
2002-allops-value-65C02_64tass.S
2002-allops-value-65C02_acme.S
2002-allops-value-65C02_cc65.cfg
2002-allops-value-65C02_cc65.S
2002-allops-value-65C02_Merlin32.S
2003-allops-zero-65C02_64tass.S
2003-allops-zero-65C02_acme.S
2003-allops-zero-65C02_cc65.cfg
2003-allops-zero-65C02_cc65.S
2003-allops-zero-65C02_Merlin32.S
2004-numeric-types_64tass.S
2004-numeric-types_acme.S
2004-numeric-types_cc65.cfg
2004-numeric-types_cc65.S
2004-numeric-types_Merlin32.S
2005-string-types_64tass.S
2005-string-types_acme.S
2005-string-types_cc65.cfg
2005-string-types_cc65.S
2005-string-types_Merlin32.S
2006-operand-formats_64tass.S
2006-operand-formats_acme.S
2006-operand-formats_cc65.cfg
2006-operand-formats_cc65.S
2006-operand-formats_Merlin32.S
2007-labels-and-symbols_64tass.S
2007-labels-and-symbols_acme.S
2007-labels-and-symbols_cc65.cfg
2007-labels-and-symbols_cc65.S
2007-labels-and-symbols_Merlin32.S
2008-address-changes_64tass.S
2008-address-changes_acme.S
2008-address-changes_cc65.cfg
2008-address-changes_cc65.S
2008-address-changes_Merlin32.S
2009-branches-and-banks_64tass.S
2009-branches-and-banks_acme.S
2009-branches-and-banks_cc65.cfg
2009-branches-and-banks_cc65.S
2009-branches-and-banks_Merlin32.S
2010-target-adjustment_64tass.S
2010-target-adjustment_acme.S
2010-target-adjustment_cc65.cfg
2010-target-adjustment_cc65.S
2010-target-adjustment_Merlin32.S
2011-hinting_64tass.S
2011-hinting_acme.S
2011-hinting_cc65.cfg
2011-hinting_cc65.S
2011-hinting_Merlin32.S
2012-label-localizer_64tass.S
2012-label-localizer_acme.S
2012-label-localizer_cc65.cfg
2012-label-localizer_cc65.S
2012-label-localizer_Merlin32.S
2013-notes-and-comments_64tass.S
2013-notes-and-comments_acme.S
2013-notes-and-comments_cc65.cfg
2013-notes-and-comments_cc65.S
2013-notes-and-comments_Merlin32.S
2014-label-dp_64tass.S
2014-label-dp_acme.S
2014-label-dp_cc65.cfg
2014-label-dp_cc65.S
2014-label-dp_Merlin32.S
2015-64k-nops_64tass.S
2015-64k-nops_acme.S
2015-64k-nops_cc65.cfg
2015-64k-nops_cc65.S
2015-64k-nops_Merlin32.S
2016-char-encoding-a_64tass.S
2016-char-encoding-a_acme.S
2016-char-encoding-a_cc65.cfg
2016-char-encoding-a_cc65.S
2016-char-encoding-a_Merlin32.S
2017-char-encoding-p_64tass.S
2017-char-encoding-p_acme.S
2017-char-encoding-p_cc65.cfg
2017-char-encoding-p_cc65.S
2017-char-encoding-p_Merlin32.S
2018-char-encoding-s_64tass.S
2018-char-encoding-s_acme.S
2018-char-encoding-s_cc65.cfg
2018-char-encoding-s_cc65.S
2018-char-encoding-s_Merlin32.S
2019-local-variables_64tass.S Label rework, part 6 2019-11-18 13:36:53 -08:00
2019-local-variables_acme.S Label rework, part 6 2019-11-18 13:36:53 -08:00
2019-local-variables_cc65.cfg
2019-local-variables_cc65.S Label rework, part 6 2019-11-18 13:36:53 -08:00
2019-local-variables_Merlin32.S Label rework, part 6 2019-11-18 13:36:53 -08:00
2020-cycle-counts-65816_64tass.S
2020-cycle-counts-65816_acme.S
2020-cycle-counts-65816_cc65.cfg
2020-cycle-counts-65816_cc65.S
2020-cycle-counts-65816_Merlin32.S
2021-external-symbols_64tass.S
2021-external-symbols_acme.S
2021-external-symbols_cc65.cfg
2021-external-symbols_cc65.S
2021-external-symbols_Merlin32.S
2022-extension-scripts_64tass.S
2022-extension-scripts_acme.S
2022-extension-scripts_cc65.cfg
2022-extension-scripts_cc65.S
2022-extension-scripts_Merlin32.S
2023-non-unique-labels_64tass.S Label rework, part 6 2019-11-18 13:36:53 -08:00
2023-non-unique-labels_acme.S Label rework, part 6 2019-11-18 13:36:53 -08:00
2023-non-unique-labels_cc65.cfg Label rework, part 6 2019-11-18 13:36:53 -08:00
2023-non-unique-labels_cc65.S Label rework, part 6 2019-11-18 13:36:53 -08:00
2023-non-unique-labels_Merlin32.S Label rework, part 6 2019-11-18 13:36:53 -08:00