diff options
author | Kartik Agaram <vc@akkartik.com> | 2021-05-18 13:01:59 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2021-05-18 13:04:33 -0700 |
commit | 5396e24cba8390ca2d70d99c7e8772eee4ec3a11 (patch) | |
tree | b266edbb6c21db7904370d082a7966783fb9e9d4 /html/mu-init.subx.html | |
parent | b4c0b12542c1f1a1e141ed0c8db2f6165af06e0f (diff) | |
download | mu-5396e24cba8390ca2d70d99c7e8772eee4ec3a11.tar.gz |
.
Diffstat (limited to 'html/mu-init.subx.html')
-rw-r--r-- | html/mu-init.subx.html | 41 |
1 files changed, 18 insertions, 23 deletions
diff --git a/html/mu-init.subx.html b/html/mu-init.subx.html index 8aa49531..e36e8a54 100644 --- a/html/mu-init.subx.html +++ b/html/mu-init.subx.html @@ -68,30 +68,25 @@ 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="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"># => 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="L15" class="LineNr">15 </span> <span class="subxComment">#</span> +<span id="L16" class="LineNr">16 </span><span class="CommentedCode">#? (main 0 0 Primary-bus-secondary-drive)</span> +<span id="L17" class="LineNr">17 </span> <span class="subxComment"># always first run tests</span> +<span id="L18" class="LineNr">18 </span> (run-tests) +<span id="L19" class="LineNr">19 </span> (<a href='104test.subx.html#L17'>num-test-failures</a>) <span class="subxComment"># => eax</span> +<span id="L20" class="LineNr">20 </span> <span class="subxComment"># call main if tests all passed</span> +<span id="L21" class="LineNr">21 </span> { +<span id="L22" class="LineNr">22 </span> 3d/compare-eax-and 0/imm32 +<span id="L23" class="LineNr">23 </span> 75/jump-if-!= <span class="Constant">break</span>/disp8 +<span id="L24" class="LineNr">24 </span> (<a href='500fake-screen.mu.html#L364'>clear-real-screen</a>) +<span id="L25" class="LineNr">25 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='103grapheme.subx.html#L170'>Real-screen-cursor-x</a></span> 0/imm32 +<span id="L26" class="LineNr">26 </span> c7 0/subop/copy *<span class="SpecialChar"><a href='103grapheme.subx.html#L172'>Real-screen-cursor-y</a></span> 0/imm32 +<span id="L27" class="LineNr">27 </span> (main 0 0 <span class="SpecialChar"><a href='boot.subx.html#L920'>Primary-bus-secondary-drive</a></span>) +<span id="L28" class="LineNr">28 </span> } +<span id="L29" class="LineNr">29 </span> +<span id="L30" class="LineNr">30 </span> <span class="subxComment"># hang indefinitely</span> +<span id="L31" class="LineNr">31 </span> { +<span id="L32" class="LineNr">32 </span> eb/jump <span class="Constant">loop</span>/disp8 <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> |