about summary refs log tree commit diff stats
path: root/html/082slurp.subx.html
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-06-12 07:57:27 -0700
committerKartik Agaram <vc@akkartik.com>2020-06-12 07:57:38 -0700
commit86351aafe218a7386f6578be3c4da3edcdcb0c98 (patch)
tree209e27b8ad7ed2a8f733c699b278d19d0f59bf43 /html/082slurp.subx.html
parent07dba48f13be2aaa531b3d75a7d48d36e6ab4cb1 (diff)
downloadmu-86351aafe218a7386f6578be3c4da3edcdcb0c98.tar.gz
6513
Diffstat (limited to 'html/082slurp.subx.html')
-rw-r--r--html/082slurp.subx.html115
1 files changed, 57 insertions, 58 deletions
diff --git a/html/082slurp.subx.html b/html/082slurp.subx.html
index 843f0258..5442d4ab 100644
--- a/html/082slurp.subx.html
+++ b/html/082slurp.subx.html
@@ -154,68 +154,67 @@ if ('onhashchange' in window) {
 <span id="L95" class="LineNr"> 95 </span>    68/push  <span class="Constant">&quot;slurp: destination too small\n&quot;</span>/imm32
 <span id="L96" class="LineNr"> 96 </span>    68/push  2/imm32/stderr
 <span id="L97" class="LineNr"> 97 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L98" class="LineNr"> 98 </span>    e8/call  <a href='050_write.subx.html#L14'>_write</a>/disp32
+<span id="L98" class="LineNr"> 98 </span>    e8/call  <a href='050_write.subx.html#L12'>_write</a>/disp32
 <span id="L99" class="LineNr"> 99 </span>    <span class="subxS2Comment"># . . discard args</span>
 <span id="L100" class="LineNr">100 </span>    81          0/subop/add         3/mod/direct    4/rm32/esp   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              8/imm32           <span class="subxComment"># add to esp</span>
 <span id="L101" class="LineNr">101 </span>    <span class="subxS1Comment"># . syscall(exit, 1)</span>
 <span id="L102" class="LineNr">102 </span>    bb/copy-to-ebx  1/imm32
-<span id="L103" class="LineNr">103 </span>    b8/copy-to-eax  1/imm32/exit
-<span id="L104" class="LineNr">104 </span>    cd/syscall  0x80/imm8
-<span id="L105" class="LineNr">105 </span>    <span class="subxComment"># never gets here</span>
-<span id="L106" class="LineNr">106 </span>
-<span id="L107" class="LineNr">107 </span><span class="subxTest">test-slurp</span>:
-<span id="L108" class="LineNr">108 </span>    <span class="subxComment"># setup</span>
-<span id="L109" class="LineNr">109 </span>    <span class="subxS1Comment"># . clear-stream(_test-stream)</span>
-<span id="L110" class="LineNr">110 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L111" class="LineNr">111 </span>    68/push  <a href='057write.subx.html#L148'>_test-stream</a>/imm32
-<span id="L112" class="LineNr">112 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L113" class="LineNr">113 </span>    e8/call  <a href='055stream.subx.html#L17'>clear-stream</a>/disp32
-<span id="L114" class="LineNr">114 </span>    <span class="subxS2Comment"># . . discard args</span>
-<span id="L115" class="LineNr">115 </span>    81          0/subop/add         3/mod/direct    4/rm32/esp   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              4/imm32           <span class="subxComment"># add to esp</span>
-<span id="L116" class="LineNr">116 </span>    <span class="subxS1Comment"># . clear-stream($_test-buffered-file-&gt;buffer)</span>
-<span id="L117" class="LineNr">117 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L118" class="LineNr">118 </span>    68/push  $_test-buffered-file-&gt;buffer/imm32
-<span id="L119" class="LineNr">119 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L120" class="LineNr">120 </span>    e8/call  <a href='055stream.subx.html#L17'>clear-stream</a>/disp32
-<span id="L121" class="LineNr">121 </span>    <span class="subxS2Comment"># . . discard args</span>
-<span id="L122" class="LineNr">122 </span>    81          0/subop/add         3/mod/direct    4/rm32/esp   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              4/imm32           <span class="subxComment"># add to esp</span>
-<span id="L123" class="LineNr">123 </span>    <span class="subxS1Comment"># . clear-stream(_test-tmp-stream)</span>
-<span id="L124" class="LineNr">124 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L125" class="LineNr">125 </span>    68/push  <a href='060read.subx.html#L429'>_test-tmp-stream</a>/imm32
-<span id="L126" class="LineNr">126 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L127" class="LineNr">127 </span>    e8/call  <a href='055stream.subx.html#L17'>clear-stream</a>/disp32
-<span id="L128" class="LineNr">128 </span>    <span class="subxS2Comment"># . . discard args</span>
-<span id="L129" class="LineNr">129 </span>    81          0/subop/add         3/mod/direct    4/rm32/esp   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              4/imm32           <span class="subxComment"># add to esp</span>
-<span id="L130" class="LineNr">130 </span>    <span class="subxComment"># write(_test-stream, &quot;ab\ncd&quot;)</span>
-<span id="L131" class="LineNr">131 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L132" class="LineNr">132 </span>    68/push  <span class="Constant">&quot;ab\ncd&quot;</span>/imm32
-<span id="L133" class="LineNr">133 </span>    68/push  <a href='057write.subx.html#L148'>_test-stream</a>/imm32
-<span id="L134" class="LineNr">134 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L135" class="LineNr">135 </span>    e8/call  <a href='057write.subx.html#L24'>write</a>/disp32
-<span id="L136" class="LineNr">136 </span>    <span class="subxS2Comment"># . . discard args</span>
-<span id="L137" class="LineNr">137 </span>    81          0/subop/add         3/mod/direct    4/rm32/esp   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              8/imm32           <span class="subxComment"># add to esp</span>
-<span id="L138" class="LineNr">138 </span>    <span class="subxComment"># read a line from _test-stream (buffered by _test-buffered-file) into _test-tmp-stream</span>
-<span id="L139" class="LineNr">139 </span>    <span class="subxS1Comment"># . eax = slurp(_test-buffered-file, _test-tmp-stream)</span>
-<span id="L140" class="LineNr">140 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L141" class="LineNr">141 </span>    68/push  <a href='060read.subx.html#L429'>_test-tmp-stream</a>/imm32
-<span id="L142" class="LineNr">142 </span>    68/push  <a href='061read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
-<span id="L143" class="LineNr">143 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L144" class="LineNr">144 </span>    e8/call  <a href='082slurp.subx.html#L8'>slurp</a>/disp32
-<span id="L145" class="LineNr">145 </span>    <span class="subxS2Comment"># . . discard args</span>
-<span id="L146" class="LineNr">146 </span>    81          0/subop/add         3/mod/direct    4/rm32/esp   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              8/imm32           <span class="subxComment"># add to esp</span>
-<span id="L147" class="LineNr">147 </span>    <span class="subxComment"># check-stream-equal(_test-tmp-stream, &quot;ab\ncd&quot;, msg)</span>
-<span id="L148" class="LineNr">148 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L149" class="LineNr">149 </span>    68/push  <span class="Constant">&quot;F - test-slurp&quot;</span>/imm32
-<span id="L150" class="LineNr">150 </span>    68/push  <span class="Constant">&quot;ab\ncd&quot;</span>/imm32
-<span id="L151" class="LineNr">151 </span>    68/push  <a href='060read.subx.html#L429'>_test-tmp-stream</a>/imm32
-<span id="L152" class="LineNr">152 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L153" class="LineNr">153 </span>    e8/call  <a href='058stream-equal.subx.html#L194'>check-stream-equal</a>/disp32
-<span id="L154" class="LineNr">154 </span>    <span class="subxS2Comment"># . . discard args</span>
-<span id="L155" class="LineNr">155 </span>    81          0/subop/add         3/mod/direct    4/rm32/esp   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              0xc/imm32         <span class="subxComment"># add to esp</span>
-<span id="L156" class="LineNr">156 </span>    <span class="subxComment"># end</span>
-<span id="L157" class="LineNr">157 </span>    c3/return
-<span id="L158" class="LineNr">158 </span>
-<span id="L159" class="LineNr">159 </span><span class="subxS2Comment"># . . vim&#0058;nowrap:textwidth=0</span>
+<span id="L103" class="LineNr">103 </span>    e8/call  syscall_exit/disp32
+<span id="L104" class="LineNr">104 </span>    <span class="subxComment"># never gets here</span>
+<span id="L105" class="LineNr">105 </span>
+<span id="L106" class="LineNr">106 </span><span class="subxTest">test-slurp</span>:
+<span id="L107" class="LineNr">107 </span>    <span class="subxComment"># setup</span>
+<span id="L108" class="LineNr">108 </span>    <span class="subxS1Comment"># . clear-stream(_test-stream)</span>
+<span id="L109" class="LineNr">109 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L110" class="LineNr">110 </span>    68/push  <a href='057write.subx.html#L148'>_test-stream</a>/imm32
+<span id="L111" class="LineNr">111 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L112" class="LineNr">112 </span>    e8/call  <a href='055stream.subx.html#L17'>clear-stream</a>/disp32
+<span id="L113" class="LineNr">113 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L114" class="LineNr">114 </span>    81          0/subop/add         3/mod/direct    4/rm32/esp   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              4/imm32           <span class="subxComment"># add to esp</span>
+<span id="L115" class="LineNr">115 </span>    <span class="subxS1Comment"># . clear-stream($_test-buffered-file-&gt;buffer)</span>
+<span id="L116" class="LineNr">116 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L117" class="LineNr">117 </span>    68/push  $_test-buffered-file-&gt;buffer/imm32
+<span id="L118" class="LineNr">118 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L119" class="LineNr">119 </span>    e8/call  <a href='055stream.subx.html#L17'>clear-stream</a>/disp32
+<span id="L120" class="LineNr">120 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L121" class="LineNr">121 </span>    81          0/subop/add         3/mod/direct    4/rm32/esp   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              4/imm32           <span class="subxComment"># add to esp</span>
+<span id="L122" class="LineNr">122 </span>    <span class="subxS1Comment"># . clear-stream(_test-tmp-stream)</span>
+<span id="L123" class="LineNr">123 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L124" class="LineNr">124 </span>    68/push  <a href='060read.subx.html#L428'>_test-tmp-stream</a>/imm32
+<span id="L125" class="LineNr">125 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L126" class="LineNr">126 </span>    e8/call  <a href='055stream.subx.html#L17'>clear-stream</a>/disp32
+<span id="L127" class="LineNr">127 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L128" class="LineNr">128 </span>    81          0/subop/add         3/mod/direct    4/rm32/esp   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              4/imm32           <span class="subxComment"># add to esp</span>
+<span id="L129" class="LineNr">129 </span>    <span class="subxComment"># write(_test-stream, &quot;ab\ncd&quot;)</span>
+<span id="L130" class="LineNr">130 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L131" class="LineNr">131 </span>    68/push  <span class="Constant">&quot;ab\ncd&quot;</span>/imm32
+<span id="L132" class="LineNr">132 </span>    68/push  <a href='057write.subx.html#L148'>_test-stream</a>/imm32
+<span id="L133" class="LineNr">133 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L134" class="LineNr">134 </span>    e8/call  <a href='057write.subx.html#L24'>write</a>/disp32
+<span id="L135" class="LineNr">135 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L136" class="LineNr">136 </span>    81          0/subop/add         3/mod/direct    4/rm32/esp   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              8/imm32           <span class="subxComment"># add to esp</span>
+<span id="L137" class="LineNr">137 </span>    <span class="subxComment"># read a line from _test-stream (buffered by _test-buffered-file) into _test-tmp-stream</span>
+<span id="L138" class="LineNr">138 </span>    <span class="subxS1Comment"># . eax = slurp(_test-buffered-file, _test-tmp-stream)</span>
+<span id="L139" class="LineNr">139 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L140" class="LineNr">140 </span>    68/push  <a href='060read.subx.html#L428'>_test-tmp-stream</a>/imm32
+<span id="L141" class="LineNr">141 </span>    68/push  <a href='061read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
+<span id="L142" class="LineNr">142 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L143" class="LineNr">143 </span>    e8/call  <a href='082slurp.subx.html#L8'>slurp</a>/disp32
+<span id="L144" class="LineNr">144 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L145" class="LineNr">145 </span>    81          0/subop/add         3/mod/direct    4/rm32/esp   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              8/imm32           <span class="subxComment"># add to esp</span>
+<span id="L146" class="LineNr">146 </span>    <span class="subxComment"># check-stream-equal(_test-tmp-stream, &quot;ab\ncd&quot;, msg)</span>
+<span id="L147" class="LineNr">147 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L148" class="LineNr">148 </span>    68/push  <span class="Constant">&quot;F - test-slurp&quot;</span>/imm32
+<span id="L149" class="LineNr">149 </span>    68/push  <span class="Constant">&quot;ab\ncd&quot;</span>/imm32
+<span id="L150" class="LineNr">150 </span>    68/push  <a href='060read.subx.html#L428'>_test-tmp-stream</a>/imm32
+<span id="L151" class="LineNr">151 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L152" class="LineNr">152 </span>    e8/call  <a href='058stream-equal.subx.html#L194'>check-stream-equal</a>/disp32
+<span id="L153" class="LineNr">153 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L154" class="LineNr">154 </span>    81          0/subop/add         3/mod/direct    4/rm32/esp   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>         <span class="Normal"> . </span>              0xc/imm32         <span class="subxComment"># add to esp</span>
+<span id="L155" class="LineNr">155 </span>    <span class="subxComment"># end</span>
+<span id="L156" class="LineNr">156 </span>    c3/return
+<span id="L157" class="LineNr">157 </span>
+<span id="L158" class="LineNr">158 </span><span class="subxS2Comment"># . . vim&#0058;nowrap:textwidth=0</span>
 </pre>
 </body>
 </html>