mirror of
https://github.com/fadden/6502bench.git
synced 2024-12-29 08:29:52 +00:00
Don't output HTML anchors for non-unique labels
We're generating names that nothing links to. The names aren't guaranteed unique, so they're of dubious value anyway. Also, fixed the Atari 2600 visualizer script filename in sys defs.
This commit is contained in:
parent
963e64e190
commit
e2996d9b38
@ -602,8 +602,15 @@ namespace SourceGen {
|
||||
line.LineType == LineListGen.Line.Type.Data ||
|
||||
line.LineType == LineListGen.Line.Type.EquDirective) &&
|
||||
!string.IsNullOrEmpty(parts.Label)) {
|
||||
anchorLabel = "<a name=\"" + LABEL_LINK_PREFIX + parts.Label +
|
||||
"\">" + parts.Label + "</a>";
|
||||
if (parts.Label.StartsWith(mFormatter.NonUniqueLabelPrefix)) {
|
||||
// TODO(someday): handle non-unique labels. ':' is valid in HTML anchors,
|
||||
// so we can use that to distinguish them from other labels, but we still
|
||||
// need to ensure that the label is unique and all references point to the
|
||||
// correct instance. We can't get that from the Parts list.
|
||||
} else {
|
||||
anchorLabel = "<a name=\"" + LABEL_LINK_PREFIX + parts.Label +
|
||||
"\">" + parts.Label + "</a>";
|
||||
}
|
||||
}
|
||||
|
||||
// If needed, create an HTML link for the operand field.
|
||||
|
@ -137,7 +137,7 @@
|
||||
"RT:Atari/2600.sym65"
|
||||
],
|
||||
"ExtensionScripts" : [
|
||||
"RT:Atari/VisAtari2600.cs"
|
||||
"RT:Atari/Vis2600.cs"
|
||||
],
|
||||
"Parameters" : {
|
||||
"load-address":"0xf000"
|
||||
|
Loading…
Reference in New Issue
Block a user