mirror of
https://github.com/fadden/6502bench.git
synced 2025-01-01 12:31:44 +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:
parent
55c80fb642
commit
740eeff843
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user