1
0
mirror of https://github.com/fadden/6502bench.git synced 2025-09-25 21:16:52 +00:00

Exercise address-to-offset function in plugin

Also exercise various formatting options.

Also, fix a bug where the code that applies project/platform symbols
to numeric references was ignoring inline data items.
This commit is contained in:
Andy McFadden
2019-10-07 14:21:26 -07:00
parent 245e0bd9f3
commit dc8e49e4d8
12 changed files with 293 additions and 30 deletions

View File

@@ -1188,8 +1188,8 @@ namespace SourceGen {
// the correct thing to do.
address = attr.OperandAddress;
sym = SymbolTable.FindNonVariableByAddress(address);
} else if (attr.IsDataStart && attr.DataDescriptor != null &&
attr.DataDescriptor.IsNumeric &&
} else if ((attr.IsDataStart || attr.IsInlineDataStart) &&
attr.DataDescriptor != null && attr.DataDescriptor.IsNumeric &&
attr.DataDescriptor.FormatSubType == FormatDescriptor.SubType.Address) {
// Found a Numeric/Address item that matches. Data items don't have
// OperandAddress or OperandOffset set, so we need to check manually to