1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-08-20 11:28:58 +00:00
6502bench/SourceGen/WpfGui
Andy McFadden 2a41d70e04 Allow explicit widths in project/platform symbols, part 1
The ability to give explicit widths to local variables worked out
pretty well, so we're going to try adding the same thing to project
and platform symbols.

The first step is to allow widths to be specified in platform files,
and set with the project symbol editor.  The DefSymbol editor is
also used for local variables, so a bit of dancing is required.
For platform/project symbols the width is optional, and is totally
ignored for constants.  (For variables, constants are used for the
StackRel args, so the width is meaningful and required.)

We also now show the symbol's type (address or constant) and width
in the listing.  This gets really distracting when overused, so we
only show it when the width is explicitly set.  The default width
is 1, which most things will be, so users can make an aesthetic
choice there.  (The place where widths make very little sense is when
the symbol represents a code entry point, rather than a data item.)

The maximum width of a local variable is now 256, but it's not
allowed to overlap with other variables or run of the end of the
direct page.  The maximum width of a platform/project symbol is
65536, with bank-wrap behavior TBD.

The local variable table editor now refers to stack-relative
constants as such, rather than simply "constant", to make it clear
that it's not just defining an 8-bit constant.

Widths have been added to a handful of Apple II platform defs.
2019-10-01 16:00:08 -07:00
..
AboutBox.xaml Various doc fixes 2019-07-29 13:20:03 -07:00
AboutBox.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
CodeListItemStyle.xaml Make modified flags stand out 2019-09-02 15:18:55 -07:00
DataFileLoadIssue.xaml Minor fixes 2019-09-21 18:49:03 -07:00
DataFileLoadIssue.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
DiscardChanges.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
DiscardChanges.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
EditAddress.xaml Minor fixes 2019-07-21 15:24:39 -07:00
EditAddress.xaml.cs Minor fixes 2019-07-21 15:24:39 -07:00
EditAppSettings.xaml Make "long labels on new line" configurable in export dialog 2019-09-18 11:14:20 -07:00
EditAppSettings.xaml.cs Implement text export 2019-09-12 13:57:52 -07:00
EditComment.xaml Minor UI tweaks 2019-09-18 18:11:48 -07:00
EditComment.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
EditDataOperand.xaml Minor fixes 2019-09-27 13:43:58 -07:00
EditDataOperand.xaml.cs Fix assert failure in data operand editor 2019-09-18 11:35:45 -07:00
EditDefSymbol.xaml Allow explicit widths in project/platform symbols, part 1 2019-10-01 16:00:08 -07:00
EditDefSymbol.xaml.cs Allow explicit widths in project/platform symbols, part 1 2019-10-01 16:00:08 -07:00
EditInstructionOperand.xaml Fix HTML output 2019-09-17 19:13:28 -07:00
EditInstructionOperand.xaml.cs Allow explicit widths in project/platform symbols, part 1 2019-10-01 16:00:08 -07:00
EditLabel.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
EditLabel.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
EditLocalVariableTable.xaml Minor changes to local variable tables 2019-09-19 16:37:59 -07:00
EditLocalVariableTable.xaml.cs Allow explicit widths in project/platform symbols, part 1 2019-10-01 16:00:08 -07:00
EditLongComment.xaml Minor tweaks 2019-09-26 13:00:14 -07:00
EditLongComment.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
EditLvTableLocation.xaml Add a "move table" button 2019-09-01 16:40:54 -07:00
EditLvTableLocation.xaml.cs Add a "move table" button 2019-09-01 16:40:54 -07:00
EditNote.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
EditNote.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
EditProjectProperties.xaml Make "smart" PLP handling optional 2019-09-02 15:57:59 -07:00
EditProjectProperties.xaml.cs Allow explicit widths in project/platform symbols, part 1 2019-10-01 16:00:08 -07:00
EditStatusFlags.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
EditStatusFlags.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
Export.xaml Make "long labels on new line" configurable in export dialog 2019-09-18 11:14:20 -07:00
Export.xaml.cs Make "long labels on new line" configurable in export dialog 2019-09-18 11:14:20 -07:00
FindBox.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
FindBox.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
FontPicker.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
FontPicker.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
FormatAddressTable.xaml Rename FormatSplitAddress to FormatAddressTable 2019-09-15 13:37:38 -07:00
FormatAddressTable.xaml.cs Rename FormatSplitAddress to FormatAddressTable 2019-09-15 13:37:38 -07:00
GotoBox.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
GotoBox.xaml.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
MainWindow.xaml Add Problem List Viewer to debug menu 2019-09-21 13:43:01 -07:00
MainWindow.xaml.cs Add Problem List Viewer to debug menu 2019-09-21 13:43:01 -07:00
NewProject.xaml Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
NewProject.xaml.cs Fix startup issues 2019-07-20 17:36:12 -07:00
ProjectLoadIssues.xaml Minor fixes 2019-09-21 18:49:03 -07:00
ProjectLoadIssues.xaml.cs Make the "continue" button actually do something 2019-08-02 16:00:58 -07:00