This commit is contained in:
Kartik Agaram 2021-03-23 23:02:41 -07:00
parent 3120f938c6
commit 754d813bc5
5 changed files with 7 additions and 7 deletions

2
html/ex10.mu.html generated
View File

@ -74,7 +74,7 @@ if ('onhashchange' in window) {
<span id="L16" class="LineNr">16 </span> $main:event-loop: <span class="Delimiter">{</span>
<span id="L17" class="LineNr">17 </span> <span class="PreProc">var</span> dx/<span class="Constant">eax</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> dy/<span class="Constant">ecx</span>: int <span class="Special">&lt;-</span> copy <span class="Constant">0</span>
<span id="L19" class="LineNr">19 </span> dx, dy <span class="Special">&lt;-</span> read-mouse-event
<span id="L19" class="LineNr">19 </span> dx, dy <span class="Special">&lt;-</span> <a href='boot.subx.html#L1200'>read-mouse-event</a>
<span id="L20" class="LineNr">20 </span> <span class="Delimiter">{</span>
<span id="L21" class="LineNr">21 </span> compare dx, <span class="Constant">0</span>
<span id="L22" class="LineNr">22 </span> <span class="PreProc">break-if-!=</span>

2
html/ex2.subx.html generated
View File

@ -66,7 +66,7 @@ if ('onhashchange' in window) {
<span id="L11" class="LineNr">11 </span>
<span id="L12" class="LineNr">12 </span><span class="SpecialChar">Entry</span>:
<span id="L13" class="LineNr">13 </span> <span class="subxComment"># ecx &lt;- start of video memory</span>
<span id="L14" class="LineNr">14 </span> 8b/-&gt; *<span class="SpecialChar">Video-memory-addr</span> 1/r32/ecx
<span id="L14" class="LineNr">14 </span> 8b/-&gt; *<span class="SpecialChar"><a href='boot.subx.html#L547'>Video-memory-addr</a></span> 1/r32/ecx
<span id="L15" class="LineNr">15 </span>
<span id="L16" class="LineNr">16 </span> <span class="subxComment"># eax &lt;- final pixel of video memory</span>
<span id="L17" class="LineNr">17 </span> 8d/copy-address *(ecx + 0x0bffff) 0/r32/eax <span class="subxComment"># 0xbffff = 1024*768 - 1</span>

4
html/ex9.mu.html generated
View File

@ -76,14 +76,14 @@ if ('onhashchange' in window) {
<span id="L18" class="LineNr">18 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex9.mu.html#L18'>main</a></span> <span class="Delimiter">{</span>
<span id="L19" class="LineNr">19 </span> <span class="PreProc">var</span> text-storage: (stream byte <span class="Constant">0x200</span>)
<span id="L20" class="LineNr">20 </span> <span class="PreProc">var</span> text/<span class="Constant">esi</span>: (addr stream byte) <span class="Special">&lt;-</span> address text-storage
<span id="L21" class="LineNr">21 </span> load-first-sector-from-primary-bus-secondary-drive text
<span id="L21" class="LineNr">21 </span> <a href='boot.subx.html#L817'>load-first-sector-from-primary-bus-secondary-drive</a> text
<span id="L22" class="LineNr">22 </span>
<span id="L23" class="LineNr">23 </span> <span class="PreProc">var</span> <a href='ex9.mu.html#L31'>word-count</a>/<span class="Constant">eax</span>: int <span class="Special">&lt;-</span> <a href='ex9.mu.html#L31'>word-count</a> text
<span id="L24" class="LineNr">24 </span>
<span id="L25" class="LineNr">25 </span> <span class="PreProc">var</span> result-storage: (stream byte <span class="Constant">0x10</span>)
<span id="L26" class="LineNr">26 </span> <span class="PreProc">var</span> result/<span class="Constant">edi</span>: (addr stream byte) <span class="Special">&lt;-</span> address result-storage
<span id="L27" class="LineNr">27 </span> <a href='126write-int-decimal.subx.html#L8'>write-int32-decimal</a> result, <a href='ex9.mu.html#L31'>word-count</a>
<span id="L28" class="LineNr">28 </span> store-first-sector-to-primary-bus-secondary-drive result
<span id="L28" class="LineNr">28 </span> <a href='boot.subx.html#L864'>store-first-sector-to-primary-bus-secondary-drive</a> result
<span id="L29" class="LineNr">29 </span><span class="Delimiter">}</span>
<span id="L30" class="LineNr">30 </span>
<span id="L31" class="LineNr">31 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex9.mu.html#L31'>word-count</a></span> in: (addr stream byte)<span class="PreProc"> -&gt; </span>_/<span class="Constant">eax</span>: int <span class="Delimiter">{</span>

View File

@ -86,7 +86,7 @@ if ('onhashchange' in window) {
<span id="L28" class="LineNr">28 </span> <span class="PreProc">var</span> self/<span class="Constant">esi</span>: (addr <a href='sandbox.mu.html#L1'>sandbox</a>) <span class="Special">&lt;-</span> copy _self
<span id="L29" class="LineNr">29 </span> <span class="PreProc">var</span> s-storage: (stream byte <span class="Constant">0x200</span>)
<span id="L30" class="LineNr">30 </span> <span class="PreProc">var</span> s/<span class="Constant">ebx</span>: (addr stream byte) <span class="Special">&lt;-</span> address s-storage
<span id="L31" class="LineNr">31 </span> load-first-sector-from-primary-bus-secondary-drive s
<span id="L31" class="LineNr">31 </span> <a href='../boot.subx.html#L817'>load-first-sector-from-primary-bus-secondary-drive</a> s
<span id="L32" class="LineNr">32 </span> <span class="Delimiter">{</span>
<span id="L33" class="LineNr">33 </span> <span class="PreProc">var</span> done?/<span class="Constant">eax</span>: boolean <span class="Special">&lt;-</span> <a href='../309stream.subx.html#L6'>stream-empty?</a> s
<span id="L34" class="LineNr">34 </span> compare done?, <span class="Constant">0</span>/false

View File

@ -49,12 +49,12 @@ for f in [^0-9]*.subx [^0-9]*.mu
do
test $# -gt 0 && test $1 != $f && continue
test $f = "boot.subx" && continue
ctags -x [0-9]*.subx [0-9]*.mu $f > /tmp/tags
ctags -x boot.subx [0-9]*.subx [0-9]*.mu $f > /tmp/tags
process $f
done
( cd shell
ctags -x ../[0-9]*.subx ../[0-9]*.mu *.mu > /tmp/tags
ctags -x ../boot.subx ../[0-9]*.subx ../[0-9]*.mu *.mu > /tmp/tags
)
for f in shell/*.mu
do