Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
Added a blank line after local variable tables.  Otherwise they
just sort of blend in with the stuff around them.

Put prefixes before the DOS 3.3 platform symbols.

Added a BAS_HBASH entry.  We were getting BAS_HBASL and MON_GBASH
paired up, which looks weird.

Apply a very light tint to the preview section of the Edit Long
Comment dialog, to hint that the window is read-only.
  • Loading branch information
fadden committed Sep 26, 2019
1 parent 0877857 commit 7739f64
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
1 change: 1 addition & 0 deletions SourceGen/LineListGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,7 @@ private void GenerateLineList(int startOffset, int endOffset, List<Line> lines)
Line line = new Line(offset, 0, Line.Type.LocalVariableTable, i);
lines.Add(line);
}
lines.Add(GenerateBlankLine(offset));
}

if (attr.IsInstructionStart) {
Expand Down
3 changes: 2 additions & 1 deletion SourceGen/RuntimeData/Apple/Applesoft.sym65
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ BAS_VALTYP @ $11 ;flag for last FAC operation ($00=num, $FF=str)
BAS_SUBFLG @ $14 ;subscript flag ($00=allowed, $80=not)
BAS_HCOLOR1 @ $1C ;hi-res color mask
BAS_COUNTH @ $1D ;hi-res high-order byte of step for line
BAS_HBASL @ $26 ;base address for hi-res drawing (2b)
BAS_HBASL @ $26 ;base address for hi-res drawing (lo part)
BAS_HBASH @ $27 ;base address for hi-res drawing (hi part)
BAS_HMASK @ $30 ;hi-res graphics on-the-fly bit mask
BAS_LINNUM @ $50 ;line number (2b)
BAS_TEMPPT @ $52 ;temporary point (2b)
Expand Down
12 changes: 6 additions & 6 deletions SourceGen/RuntimeData/Apple/DOS33.sym65
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

*SYNOPSIS DOS 3.3 public addresses and constants.

DOSWRM @ $3d0 ;DOS warmstart entry point
DOSCLD @ $3d3 ;DOS coldstart entry point
FM @ $3d6 ;DOS file manager entry point
RWTS @ $3d9 ;RWTS entry point
LOCFPL @ $3dc ;loads Y/A with address of FM param list
LOCRPL @ $3e3 ;loads Y/A with address of RWTS IOB
DOS_WRM @ $3d0 ;DOS warmstart entry point
DOS_CLD @ $3d3 ;DOS coldstart entry point
DOS_FM @ $3d6 ;DOS file manager entry point
DOS_RWTS @ $3d9 ;RWTS entry point
DOS_LOCFPL @ $3dc ;loads Y/A with address of FM param list
DOS_LOCRPL @ $3e3 ;loads Y/A with address of RWTS IOB
3 changes: 3 additions & 0 deletions SourceGen/SymbolTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public class SymbolTable : IEnumerable<Symbol> {
///
/// The type comparison ensures that project symbols appear before platform symbols,
/// so that you can "overwrite" a platform symbol with the same value.
///
/// TODO(someday): sort by symbol file load order, so you can choose which set of
/// symbols gets to represent a given address. Mostly useful for zero-page variables.
/// </summary>
private class CompareByValue : IComparer<Symbol> {
public int Compare(Symbol a, Symbol b) {
Expand Down
2 changes: 1 addition & 1 deletion SourceGen/WpfGui/EditLongComment.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ limitations under the License.
Text="{Binding TextOutput,
FallbackValue=01234567890123456789012345678901234567890123456789012345678901234567890123456789}"
FontFamily="{StaticResource GeneralMonoFont}" VerticalScrollBarVisibility="Visible"
IsReadOnly="True"/>
IsReadOnly="True" Background="#f8f8f8"/>

<StackPanel Grid.Row="5" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,8,0,0">
<Button Content="OK" IsDefault="True" Width="70" Click="OkButton_Click"/>
Expand Down

0 comments on commit 7739f64

Please sign in to comment.