about summary refs log tree commit diff stats
path: root/html/mu-init.subx.html
diff options
context:
space:
mode:
Diffstat (limited to 'html/mu-init.subx.html')
-rw-r--r--html/mu-init.subx.html42
1 files changed, 24 insertions, 18 deletions
diff --git a/html/mu-init.subx.html b/html/mu-init.subx.html
index cc77fcce..8aa49531 100644
--- a/html/mu-init.subx.html
+++ b/html/mu-init.subx.html
@@ -68,24 +68,30 @@ if ('onhashchange' in window) {
 <span id="L12" class="LineNr">12 </span><span class="SpecialChar">Entry</span>:
 <span id="L13" class="LineNr">13 </span>  <span class="subxComment"># initialize stack</span>
 <span id="L14" class="LineNr">14 </span>  bd/copy-to-ebp 0/imm32
-<span id="L15" class="LineNr">15 </span><span class="CommentedCode">#?   (main 0 0 Primary-bus-secondary-drive)</span>
-<span id="L16" class="LineNr">16 </span>  <span class="subxComment"># always first run tests</span>
-<span id="L17" class="LineNr">17 </span>  (run-tests)
-<span id="L18" class="LineNr">18 </span>  (<a href='104test.subx.html#L17'>num-test-failures</a>)  <span class="subxComment"># =&gt; eax</span>
-<span id="L19" class="LineNr">19 </span>  <span class="subxComment"># call main if tests all passed</span>
-<span id="L20" class="LineNr">20 </span>  {
-<span id="L21" class="LineNr">21 </span>    3d/compare-eax-and 0/imm32
-<span id="L22" class="LineNr">22 </span>    75/jump-if-!= <span class="Constant">break</span>/disp8
-<span id="L23" class="LineNr">23 </span>    (<a href='500fake-screen.mu.html#L364'>clear-real-screen</a>)
-<span id="L24" class="LineNr">24 </span>    c7 0/subop/copy *<span class="SpecialChar"><a href='103grapheme.subx.html#L170'>Real-screen-cursor-x</a></span> 0/imm32
-<span id="L25" class="LineNr">25 </span>    c7 0/subop/copy *<span class="SpecialChar"><a href='103grapheme.subx.html#L172'>Real-screen-cursor-y</a></span> 0/imm32
-<span id="L26" class="LineNr">26 </span>    (main 0 0 <span class="SpecialChar"><a href='boot.subx.html#L899'>Primary-bus-secondary-drive</a></span>)
-<span id="L27" class="LineNr">27 </span>  }
-<span id="L28" class="LineNr">28 </span>
-<span id="L29" class="LineNr">29 </span>  <span class="subxComment"># hang indefinitely</span>
-<span id="L30" class="LineNr">30 </span>  {
-<span id="L31" class="LineNr">31 </span>    eb/jump <span class="Constant">loop</span>/disp8
-<span id="L32" class="LineNr">32 </span>  }
+<span id="L15" class="LineNr">15 </span>  <span class="subxComment"># Clear memory location 0 to ensure that uninitialized arrays run afoul of</span>
+<span id="L16" class="LineNr">16 </span>  <span class="subxComment"># the bounds checker.</span>
+<span id="L17" class="LineNr">17 </span>  <span class="subxComment"># TODO: This is utterly bonkers, and does not actually protect us against</span>
+<span id="L18" class="LineNr">18 </span>  <span class="subxComment"># all null pointer reads/writes. Create a real page table sometime.</span>
+<span id="L19" class="LineNr">19 </span>  b8/copy-to-eax 0/imm32
+<span id="L20" class="LineNr">20 </span>  c7 0/subop/copy *eax 0/imm32
+<span id="L21" class="LineNr">21 </span><span class="CommentedCode">#?   (main 0 0 Primary-bus-secondary-drive)</span>
+<span id="L22" class="LineNr">22 </span>  <span class="subxComment"># always first run tests</span>
+<span id="L23" class="LineNr">23 </span>  (run-tests)
+<span id="L24" class="LineNr">24 </span>  (<a href='104test.subx.html#L17'>num-test-failures</a>)  <span class="subxComment"># =&gt; eax</span>
+<span id="L25" class="LineNr">25 </span>  <span class="subxComment"># call main if tests all passed</span>
+<span id="L26" class="LineNr">26 </span>  {
+<span id="L27" class="LineNr">27 </span>    3d/compare-eax-and 0/imm32
+<span id="L28" class="LineNr">28 </span>    75/jump-if-!= <span class="Constant">break</span>/disp8
+<span id="L29" class="LineNr">29 </span>    (<a href='500fake-screen.mu.html#L364'>clear-real-screen</a>)
+<span id="L30" class="LineNr">30 </span>    c7 0/subop/copy *<span class="SpecialChar"><a href='103grapheme.subx.html#L170'>Real-screen-cursor-x</a></span> 0/imm32
+<span id="L31" class="LineNr">31 </span>    c7 0/subop/copy *<span class="SpecialChar"><a href='103grapheme.subx.html#L172'>Real-screen-cursor-y</a></span> 0/imm32
+<span id="L32" class="LineNr">32 </span>    (main 0 0 <span class="SpecialChar"><a href='boot.subx.html#L899'>Primary-bus-secondary-drive</a></span>)
+<span id="L33" class="LineNr">33 </span>  }
+<span id="L34" class="LineNr">34 </span>
+<span id="L35" class="LineNr">35 </span>  <span class="subxComment"># hang indefinitely</span>
+<span id="L36" class="LineNr">36 </span>  {
+<span id="L37" class="LineNr">37 </span>    eb/jump <span class="Constant">loop</span>/disp8
+<span id="L38" class="LineNr">38 </span>  }
 </pre>
 </body>
 </html>