1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-06-11 17:29:29 +00:00

Fix display of non-addressable symbols in HTML export

If a symbol is marked as "exported", it is added to the symbol table
generated at the end of the HTML output.  If the symbol identifies a
non-addressable location, we need to show that.

Also, added a header row.
This commit is contained in:
Andy McFadden 2022-01-12 15:39:13 -08:00
parent 55c80fb642
commit 740eeff843

View File

@ -1088,11 +1088,18 @@ namespace SourceGen {
}
if (count == 0) {
sb.Append("<table>\r\n");
sb.Append(" <tr><th>Label</th><th>Value</th></tr>");
}
sb.Append(" <tr>");
sb.Append("<td><a href=\"#" + LABEL_LINK_PREFIX + sym.Label + "\">" +
sym.Label + "</a></td>");
sb.Append("<td><code>" + mFormatter.FormatHexValue(sym.Value, 2) + "</code></td>");
sb.Append("<td><code>");
if (sym.Value != Address.NON_ADDR) {
sb.Append(mFormatter.FormatHexValue(sym.Value, 2));
} else {
sb.Append(Address.NON_ADDR_STR);
}
sb.Append("</code></td>");
sb.Append("</tr>\r\n");
count++;
}