about summary refs log tree commit diff stats
path: root/html/subx/examples/ex12.subx.html
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-12-30 00:02:42 -0800
committerKartik Agaram <vc@akkartik.com>2018-12-30 00:02:42 -0800
commit08a0eed699b8ea07d37163aba610c8e04feee003 (patch)
treeaab05fd9b23ca4f5cfc6492ade82896f3ba5e4bb /html/subx/examples/ex12.subx.html
parentac07e589b3e912c704c2011d543f18b16712ff15 (diff)
downloadmu-08a0eed699b8ea07d37163aba610c8e04feee003.tar.gz
4891
Couple more tweaks to html rendering:
a) SubX definitions no longer link redundantly to themselves. This long-standing
issue turns out to be tractable to solve for SubX files since the syntax
is so simple.
b) Fix links to SubX definitions in other directories. I forgot that I
have to always generate tags from the directory of the file being linkified.
c) Fix link colors. Before we lost all syntax highlighting for functions
and Globals. Now they maintain their colors, just add an underline.
Diffstat (limited to 'html/subx/examples/ex12.subx.html')
-rw-r--r--html/subx/examples/ex12.subx.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/html/subx/examples/ex12.subx.html b/html/subx/examples/ex12.subx.html
index 3fe6f836..60eb5b06 100644
--- a/html/subx/examples/ex12.subx.html
+++ b/html/subx/examples/ex12.subx.html
@@ -12,6 +12,7 @@
 <!--
 pre { font-family: monospace; color: #000000; background-color: #c6c6c6; }
 body { font-size:12pt; font-family: monospace; color: #000000; background-color: #c6c6c6; }
+a { color:inherit; }
 * { font-size:12pt; font-size: 1em; }
 .subxComment { color: #005faf; }
 .subxS2Comment { color: #8a8a8a; }
@@ -68,7 +69,7 @@ if ('onhashchange' in window) {
 <span id="L12" class="LineNr">12 </span><span class="subxS1Comment"># . 1-3 bytes   3 bits              2 bits          3 bits        3 bits      3 bits        2 bits      2 bits      0/1/2/4 bytes   0/1/2/4 bytes</span>
 <span id="L13" class="LineNr">13 </span>
 <span id="L14" class="LineNr">14 </span>    <span class="subxComment"># syscall(mmap, 0x1000)</span>
-<span id="L15" class="LineNr">15 </span>    bb/copy-to-EBX  <span class="SpecialChar">Mmap-new-segment</span>/imm32
+<span id="L15" class="LineNr">15 </span>    bb/copy-to-EBX  <span class="SpecialChar"><a href='ex12.subx.html#L30'>Mmap-new-segment</a></span>/imm32
 <span id="L16" class="LineNr">16 </span>    b8/copy-to-EAX  0x5a/imm32/mmap
 <span id="L17" class="LineNr">17 </span>    cd/syscall  0x80/imm8
 <span id="L18" class="LineNr">18 </span>
@@ -83,7 +84,7 @@ if ('onhashchange' in window) {
 <span id="L27" class="LineNr">27 </span>== data
 <span id="L28" class="LineNr">28 </span>
 <span id="L29" class="LineNr">29 </span><span class="subxComment"># various constants used here were found in the Linux sources (search for file mman-common.h)</span>
-<span id="L30" class="LineNr">30 </span><span class="SpecialChar">Mmap-new-segment</span>:  <span class="subxComment"># type mmap_arg_struct</span>
+<span id="L30" class="LineNr">30 </span><span class="SpecialChar"><a href='ex12.subx.html#L30'>Mmap-new-segment</a></span>:  <span class="subxComment"># type mmap_arg_struct</span>
 <span id="L31" class="LineNr">31 </span>    <span class="subxComment"># addr</span>
 <span id="L32" class="LineNr">32 </span>    00 00 00 00  <span class="subxComment"># null</span>
 <span id="L33" class="LineNr">33 </span>    <span class="subxComment"># len</span>