1
0
mirror of https://github.com/fadden/6502bench.git synced 2025-08-05 09:25:39 +00:00

Add split-address table formatting to tutorial

Also, show generated symbol name in preview list.
This commit is contained in:
Andy McFadden
2018-10-07 10:39:41 -07:00
parent d20ffc73b8
commit b4d47df637
4 changed files with 89 additions and 3 deletions

View File

@@ -377,10 +377,9 @@ namespace SourceGen.AppForms {
// need to generate one.
string targetLabel;
if (mProject.UserLabels.TryGetValue(targetOffset, out Symbol sym)) {
AddPreviewItem(addr, targetOffset, sym.Label);
targetLabel = sym.Label;
AddPreviewItem(addr, targetOffset, targetLabel);
} else {
AddPreviewItem(addr, targetOffset, "(+)");
// Generate a symbol that's unique vs. the symbol table. We don't need
// it to be unique vs. the labels we're generating here, because we
// won't generate identical labels for different addresses, and we do
@@ -393,6 +392,7 @@ namespace SourceGen.AppForms {
Symbol.Type.LocalOrGlobalAddr);
newLabels[targetOffset] = tmpSym; // overwrites previous
targetLabel = tmpSym.Label;
AddPreviewItem(addr, targetOffset, "(+) " + targetLabel);
}
// Now we need to create format descriptors for the addresses where we