diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-07-10 23:44:10 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-07-10 23:53:28 -0700 |
commit | ec73ed1230d75deb0f913a32617c9f1e0a5ca640 (patch) | |
tree | 55c0e38d65d43420f6ce481c864a9efdbd1cb445 /html/apps/mulisp.subx.html | |
parent | c5a3f65502d6931a5fb888a5c5327c0659578a57 (diff) | |
download | mu-ec73ed1230d75deb0f913a32617c9f1e0a5ca640.tar.gz |
6631
Diffstat (limited to 'html/apps/mulisp.subx.html')
-rw-r--r-- | html/apps/mulisp.subx.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/html/apps/mulisp.subx.html b/html/apps/mulisp.subx.html index 1fc6e57f..62316dfb 100644 --- a/html/apps/mulisp.subx.html +++ b/html/apps/mulisp.subx.html @@ -72,22 +72,22 @@ if ('onhashchange' in window) { <span id="L14" class="LineNr"> 14 </span> <span class="subxS1Comment"># . prologue</span> <span id="L15" class="LineNr"> 15 </span> 89/<- %ebp 4/r32/esp <span id="L16" class="LineNr"> 16 </span> <span class="subxComment"># initialize heap</span> -<span id="L17" class="LineNr"> 17 </span> (<a href='../053new-segment.subx.html#L40'>new-segment</a> *<span class="SpecialChar"><a href='../069allocate.subx.html#L34'>Heap-size</a></span> <span class="SpecialChar"><a href='../069allocate.subx.html#L27'>Heap</a></span>) +<span id="L17" class="LineNr"> 17 </span> (<a href='../104new-segment.subx.html#L40'>new-segment</a> *<span class="SpecialChar"><a href='../120allocate.subx.html#L34'>Heap-size</a></span> <span class="SpecialChar"><a href='../120allocate.subx.html#L27'>Heap</a></span>) <span id="L18" class="LineNr"> 18 </span> { <span id="L19" class="LineNr"> 19 </span> <span class="subxComment"># if (argc <= 1) break</span> <span id="L20" class="LineNr"> 20 </span> 81 7/subop/compare *ebp 1/imm32 <span id="L21" class="LineNr"> 21 </span> 7e/jump-if-<= <span class="Constant">break</span>/disp8 <span id="L22" class="LineNr"> 22 </span> <span class="subxComment"># if (argv[1] != "test")) break</span> -<span id="L23" class="LineNr"> 23 </span> (<a href='../052kernel-string-equal.subx.html#L31'>kernel-string-equal?</a> *(ebp+8) <span class="Constant">"test"</span>) <span class="subxComment"># => eax</span> +<span id="L23" class="LineNr"> 23 </span> (<a href='../103kernel-string-equal.subx.html#L31'>kernel-string-equal?</a> *(ebp+8) <span class="Constant">"test"</span>) <span class="subxComment"># => eax</span> <span id="L24" class="LineNr"> 24 </span> 3d/compare-eax-and 0/imm32/false <span id="L25" class="LineNr"> 25 </span> 74/jump-if-= <span class="Constant">break</span>/disp8 <span id="L26" class="LineNr"> 26 </span> <span class="subxComment">#</span> <span id="L27" class="LineNr"> 27 </span> (run-tests) <span id="L28" class="LineNr"> 28 </span> <span class="subxComment"># syscall(exit, *Num-test-failures)</span> -<span id="L29" class="LineNr"> 29 </span> 8b/-> *<span class="SpecialChar"><a href='../051test.subx.html#L89'>Num-test-failures</a></span> 3/r32/ebx +<span id="L29" class="LineNr"> 29 </span> 8b/-> *<span class="SpecialChar"><a href='../102test.subx.html#L89'>Num-test-failures</a></span> 3/r32/ebx <span id="L30" class="LineNr"> 30 </span> eb/jump $main:end/disp8 <span id="L31" class="LineNr"> 31 </span> } -<span id="L32" class="LineNr"> 32 </span> (<a href='mulisp.subx.html#L76'>repl</a> <span class="SpecialChar"><a href='../061read-byte.subx.html#L14'>Stdin</a></span> <span class="SpecialChar"><a href='../064write-byte.subx.html#L10'>Stdout</a></span>) +<span id="L32" class="LineNr"> 32 </span> (<a href='mulisp.subx.html#L76'>repl</a> <span class="SpecialChar"><a href='../112read-byte.subx.html#L14'>Stdin</a></span> <span class="SpecialChar"><a href='../115write-byte.subx.html#L10'>Stdout</a></span>) <span id="L33" class="LineNr"> 33 </span> <span class="subxComment"># syscall(exit, 0)</span> <span id="L34" class="LineNr"> 34 </span> bb/copy-to-ebx 0/imm32 <span id="L35" class="LineNr"> 35 </span><span class="Constant">$main:end</span>: @@ -138,13 +138,13 @@ if ('onhashchange' in window) { <span id="L80" class="LineNr"> 80 </span> <span class="subxS1Comment"># . save registers</span> <span id="L81" class="LineNr"> 81 </span> 50/push-eax <span id="L82" class="LineNr"> 82 </span> { -<span id="L83" class="LineNr"> 83 </span> (<a href='mulisp.subx.html#L106'>lisp-read</a> <span class="SpecialChar"><a href='../061read-byte.subx.html#L14'>Stdin</a></span>) <span class="subxComment"># => eax: (handle cell)</span> +<span id="L83" class="LineNr"> 83 </span> (<a href='mulisp.subx.html#L106'>lisp-read</a> <span class="SpecialChar"><a href='../112read-byte.subx.html#L14'>Stdin</a></span>) <span class="subxComment"># => eax: (handle cell)</span> <span id="L84" class="LineNr"> 84 </span> <span class="subxComment"># if (eax == 0) break</span> <span id="L85" class="LineNr"> 85 </span> 3d/compare-eax-and 0/imm32 <span id="L86" class="LineNr"> 86 </span> 74/jump-if-= <span class="Constant">break</span>/disp8 <span id="L87" class="LineNr"> 87 </span> <span class="subxComment">#</span> <span id="L88" class="LineNr"> 88 </span> (<a href='mulisp.subx.html#L200'>lisp-eval</a> %eax) <span class="subxComment"># => eax: (handle cell)</span> -<span id="L89" class="LineNr"> 89 </span> (<a href='mulisp.subx.html#L213'>lisp-print</a> <span class="SpecialChar"><a href='../064write-byte.subx.html#L10'>Stdout</a></span> %eax) +<span id="L89" class="LineNr"> 89 </span> (<a href='mulisp.subx.html#L213'>lisp-print</a> <span class="SpecialChar"><a href='../115write-byte.subx.html#L10'>Stdout</a></span> %eax) <span id="L90" class="LineNr"> 90 </span> eb/jump <span class="Constant">loop</span>/disp8 <span id="L91" class="LineNr"> 91 </span> } <span id="L92" class="LineNr"> 92 </span><span class="Constant">$repl:end</span>: @@ -175,8 +175,8 @@ if ('onhashchange' in window) { <span id="L117" class="LineNr">117 </span> 89/<- %ecx 4/r32/esp <span id="L118" class="LineNr">118 </span> { <span id="L119" class="LineNr">119 </span> <span class="subxComment"># read line into s</span> -<span id="L120" class="LineNr">120 </span> (<a href='../055stream.subx.html#L17'>clear-stream</a> %ecx) -<span id="L121" class="LineNr">121 </span> (<a href='../071read-line.subx.html#L9'>read-line-buffered</a> *(ebp+8) %ecx) +<span id="L120" class="LineNr">120 </span> (<a href='../106stream.subx.html#L17'>clear-stream</a> %ecx) +<span id="L121" class="LineNr">121 </span> (<a href='../122read-line.subx.html#L9'>read-line-buffered</a> *(ebp+8) %ecx) <span id="L122" class="LineNr">122 </span> <span class="subxComment"># if (s->write == 0) return null</span> <span id="L123" class="LineNr">123 </span> { <span id="L124" class="LineNr">124 </span> 81 7/subop/compare *ecx 0/imm32 @@ -274,9 +274,9 @@ if ('onhashchange' in window) { <span id="L216" class="LineNr">216 </span> 89/<- %ebp 4/r32/esp <span id="L217" class="LineNr">217 </span> <span class="subxS1Comment"># . save registers</span> <span id="L218" class="LineNr">218 </span> <span class="subxComment"># write(x)</span> -<span id="L219" class="LineNr">219 </span> (<a href='../065write-buffered.subx.html#L8'>write-buffered</a> <span class="SpecialChar"><a href='../064write-byte.subx.html#L10'>Stdout</a></span> <span class="Constant">"=> "</span>) -<span id="L220" class="LineNr">220 </span> (<a href='../074write-stream-data.subx.html#L11'>write-stream-data</a> <span class="SpecialChar"><a href='../064write-byte.subx.html#L10'>Stdout</a></span> *(ebp+0xc)) -<span id="L221" class="LineNr">221 </span> (<a href='../064write-byte.subx.html#L81'>flush</a> <span class="SpecialChar"><a href='../064write-byte.subx.html#L10'>Stdout</a></span>) +<span id="L219" class="LineNr">219 </span> (<a href='../116write-buffered.subx.html#L8'>write-buffered</a> <span class="SpecialChar"><a href='../115write-byte.subx.html#L10'>Stdout</a></span> <span class="Constant">"=> "</span>) +<span id="L220" class="LineNr">220 </span> (<a href='../125write-stream-data.subx.html#L11'>write-stream-data</a> <span class="SpecialChar"><a href='../115write-byte.subx.html#L10'>Stdout</a></span> *(ebp+0xc)) +<span id="L221" class="LineNr">221 </span> (<a href='../115write-byte.subx.html#L81'>flush</a> <span class="SpecialChar"><a href='../115write-byte.subx.html#L10'>Stdout</a></span>) <span id="L222" class="LineNr">222 </span><span class="Constant">$lisp-print:end</span>: <span id="L223" class="LineNr">223 </span> <span class="subxS1Comment"># . restore registers</span> <span id="L224" class="LineNr">224 </span> <span class="subxS1Comment"># . epilogue</span> |