1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-07-13 14:29:23 +00:00
6502bench/SourceGen
Andy McFadden 68c324bbe8 Label rework, part 4
Update the symbol lookup in EditInstructionOperand, EditDataOperand,
and GotoBox to correctly deal with non-unique labels.

This is a little awkward because we're doing lookups by name on
a non-unique symbol, and must resolve the ambiguity.  In the case of
an instruction operand that refers to an address this is pretty
straightforward.  For partial bytes (LDA #>:foo) or data directives
(.DD1 :foo) we have to take a guess.  We can probably make a more
informed guess than we currently are, e.g. the LDA case could find
the label that minimizes the adjustment, but I don't want to sink a
lot of time into this until I'm sure it'll be useful.

Data operands with multiple regions are something of a challenge,
but I'm not sure specifying a single symbol for multiple locations
is important.

The "goto" box just finds the match that's closest to the selection.
Unlike "find", it always grabs the closest, not the next one forward.
(Not sure if this is useful or confusing.)
2019-11-16 16:44:08 -08:00
..
AsmGen Minor tweaks 2019-11-15 16:24:07 -08:00
Examples Rearrange the tutorial files 2019-10-30 09:49:11 -07:00
Properties Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
Res Label rework, part 3 2019-11-16 11:12:32 -08:00
RuntimeData Label rework, part 1 2019-11-08 21:02:15 -08:00
Sandbox Label rework, part 2 2019-11-12 17:44:51 -08:00
SGTestData Label rework, part 4 2019-11-16 16:44:08 -08:00
Tests Add issues & limitations for scripts to manual 2019-10-07 17:56:35 -07:00
Tools Minor updates 2019-10-25 18:16:09 -07:00
WpfGui Label rework, part 4 2019-11-16 16:44:08 -08:00
Anattrib.cs Correctly handle embedded instruction edge case 2019-10-19 17:28:45 -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.4.0 2019-10-30 15:50:09 -07:00
AppSettings.cs Label rework, part 3 2019-11-16 11:12:32 -08:00
AutoLabel.cs Label rework, part 1 2019-11-08 21:02:15 -08:00
ChangeSet.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
CodeAnalysis.cs Correctly handle embedded instruction edge case 2019-10-19 17:28:45 -07:00
DataAnalysis.cs Tweak "nearby" label finder 2019-10-29 18:12:22 -07:00
DefSymbol.cs Label rework, part 1 2019-11-08 21:02:15 -08:00
DisasmProject.cs Label rework, part 4 2019-11-16 16:44:08 -08:00
DisplayList.cs Label rework, part 2 2019-11-12 17:44:51 -08:00
DisplayListSelection.cs Add C64 encodings to instruction and data operand editors 2019-08-15 17:53:12 -07:00
Exporter.cs Init all FormattedParts strings fields to an empty string 2019-10-06 15:24:22 -07:00
ExternalFile.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
FormatDescriptor.cs Fix junk alignment check 2019-10-23 13:25:50 -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 Label rework, part 2 2019-11-12 17:44:51 -08:00
LocalVariableLookup.cs Label rework, part 1 2019-11-08 21:02:15 -08:00
LocalVariableTable.cs Improve the "info" panel 2019-10-22 21:27:49 -07:00
MainController.cs Label rework, part 4 2019-11-16 16:44:08 -08:00
MessageList.cs Check for bank overrun 2019-11-05 13:29:51 -08:00
MultiLineComment.cs Tweak line folding code 2019-11-01 19:47:56 -07:00
NavStack.cs Tweak navigation 2019-10-10 11:57:36 -07:00
PlatformSymbols.cs Update comments, remove unused var 2019-10-27 21:29:44 -07:00
ProjectFile.cs Label rework, part 4 2019-11-16 16:44:08 -08:00
ProjectProperties.cs Optionally treat BRKs as two-byte instructions 2019-10-09 14:55:56 -07:00
PseudoOp.cs Label rework, part 4 2019-11-16 16:44:08 -08:00
RuntimeDataAccess.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
SourceGen.csproj Add an Applesoft to HTML converter 2019-10-23 17:49:59 -07:00
Symbol.cs Label rework, part 4 2019-11-16 16:44:08 -08:00
SymbolTable.cs Improve the "info" panel 2019-10-22 21:27:49 -07:00
SystemDefaults.cs Optionally treat BRKs as two-byte instructions 2019-10-09 14:55:56 -07:00
SystemDefs.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
UndoableChange.cs Add "Go to Last Change" feature 2019-11-01 19:11:48 -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