1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-10-02 21:54:31 +00:00

Update comments, remove unused var

This commit is contained in:
Andy McFadden 2019-10-27 21:29:44 -07:00
parent b508fa6b4a
commit 73f04ef2d2
3 changed files with 5 additions and 2 deletions

View File

@ -1643,6 +1643,9 @@ namespace SourceGen {
// the undo operation. // the undo operation.
Debug.WriteLine("EditAddress: not allowed to remove address at offset +000000"); Debug.WriteLine("EditAddress: not allowed to remove address at offset +000000");
} else if (true || attr.Address != dlg.Address) { } else if (true || attr.Address != dlg.Address) {
// NOTE: we used to prevent creation of an apparently redundant address change,
// but it's really helpful to put one on code that isn't moving before you
// start moving other stuff around.
Debug.WriteLine("EditAddress: changing addr at offset +" + offset.ToString("x6") + Debug.WriteLine("EditAddress: changing addr at offset +" + offset.ToString("x6") +
" to " + dlg.Address); " to " + dlg.Address);

View File

@ -38,7 +38,7 @@ namespace SourceGen {
/// Alphanumeric ASCII + underscore for label, which must start at beginning of line. /// Alphanumeric ASCII + underscore for label, which must start at beginning of line.
/// Value is somewhat arbitrary, but ends if we see a comment delimiter (semicolon) or /// Value is somewhat arbitrary, but ends if we see a comment delimiter (semicolon) or
/// whitespace. Spaces are allowed between tokens, but not required. Value, width, /// whitespace. Spaces are allowed between tokens, but not required. Value, width,
/// and mask may be hex, decimal, or binary. /// and mask may be hex, decimal, or binary; these are simply tokenized by regex.
/// ///
/// Looks like: /// Looks like:
/// NAME {@,=,<,>} VALUE [& MASK] [WIDTH] [;COMMENT] /// NAME {@,=,<,>} VALUE [& MASK] [WIDTH] [;COMMENT]

View File

@ -190,7 +190,7 @@ namespace SourceGen.WpfGui {
Label = Value = VarWidth = Comment = string.Empty; Label = Value = VarWidth = Comment = string.Empty;
int maxWidth, maxAddr; int maxWidth;
if (isVariable) { if (isVariable) {
ConstantLabel = (string)FindResource("str_VariableConstant"); ConstantLabel = (string)FindResource("str_VariableConstant");
maxWidth = 256; maxWidth = 256;