1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-06-30 22:29:27 +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.
Debug.WriteLine("EditAddress: not allowed to remove address at offset +000000");
} 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") +
" to " + dlg.Address);

View File

@ -38,7 +38,7 @@ namespace SourceGen {
/// 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
/// 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:
/// NAME {@,=,<,>} VALUE [& MASK] [WIDTH] [;COMMENT]

View File

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