diff options
author | Kartik Agaram <vc@akkartik.com> | 2021-04-13 21:11:26 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2021-04-13 21:11:26 -0700 |
commit | 5a3f9a31850d6da72dff7211c9760cd4a8e1090b (patch) | |
tree | da45bfbfa58a4573b6c1898006dfaf146352eb40 /html/ex9.mu.html | |
parent | fea45ccbea6bee563b41da199fb3c456c6069cb5 (diff) | |
download | mu-5a3f9a31850d6da72dff7211c9760cd4a8e1090b.tar.gz |
.
Diffstat (limited to 'html/ex9.mu.html')
-rw-r--r-- | html/ex9.mu.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/html/ex9.mu.html b/html/ex9.mu.html index f4d8a582..6facf340 100644 --- a/html/ex9.mu.html +++ b/html/ex9.mu.html @@ -73,17 +73,17 @@ if ('onhashchange' in window) { <span id="L15" class="LineNr">15 </span><span class="muComment"># 6. Notice that the data disk now contains the word count of the original text.</span> <span id="L16" class="LineNr">16 </span><span class="muComment"># xxd data.img |head</span> <span id="L17" class="LineNr">17 </span> -<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="L18" class="LineNr">18 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex9.mu.html#L18'>main</a></span> <a href='500text-screen.mu.html#L9'>screen</a>: (addr <a href='500text-screen.mu.html#L9'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <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"><-</span> address text-storage -<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="L21" class="LineNr">21 </span> <a href='boot.subx.html#L910'>load-sector</a> data-disk, <span class="Constant">0</span>/lba, 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"><-</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"><-</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> <a href='boot.subx.html#L864'>store-first-sector-to-primary-bus-secondary-drive</a> result +<span id="L28" class="LineNr">28 </span> <a href='boot.subx.html#L959'>store-sector</a> data-disk, <span class="Constant">0</span>/lba, 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"> -> </span>_/<span class="Constant">eax</span>: int <span class="Delimiter">{</span> |