From 740eeff843cb9d437dfcb28d5e92cbf6c2582279 Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Wed, 12 Jan 2022 15:39:13 -0800 Subject: [PATCH] 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. --- SourceGen/Exporter.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/SourceGen/Exporter.cs b/SourceGen/Exporter.cs index a3922dd..1e2a48b 100644 --- a/SourceGen/Exporter.cs +++ b/SourceGen/Exporter.cs @@ -1088,11 +1088,18 @@ namespace SourceGen { } if (count == 0) { sb.Append("\r\n"); + sb.Append(" "); } sb.Append(" "); sb.Append(""); - sb.Append(""); + sb.Append(""); sb.Append("\r\n"); count++; }
LabelValue
" + sym.Label + "" + mFormatter.FormatHexValue(sym.Value, 2) + ""); + if (sym.Value != Address.NON_ADDR) { + sb.Append(mFormatter.FormatHexValue(sym.Value, 2)); + } else { + sb.Append(Address.NON_ADDR_STR); + } + sb.Append("