about summary refs log tree commit diff stats
path: root/html/071read-line.subx.html
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-12-09 01:26:58 -0800
committerKartik Agaram <vc@akkartik.com>2019-12-09 01:26:58 -0800
commit8aeb85f04ee68b960a6d326aca1a17dec2f6d019 (patch)
tree26f861361c28ca77fb8298b21a905dc6e06c91ef /html/071read-line.subx.html
parent2249e605c19f0dbe0c34c1c4f635b802f56dc535 (diff)
downloadmu-8aeb85f04ee68b960a6d326aca1a17dec2f6d019.tar.gz
5806
Diffstat (limited to 'html/071read-line.subx.html')
-rw-r--r--html/071read-line.subx.html50
1 files changed, 25 insertions, 25 deletions
diff --git a/html/071read-line.subx.html b/html/071read-line.subx.html
index 6fd39164..167e6ae7 100644
--- a/html/071read-line.subx.html
+++ b/html/071read-line.subx.html
@@ -159,7 +159,7 @@ if ('onhashchange' in window) {
 <span id="L99" class="LineNr"> 99 </span>    68/push  <span class="Constant">&quot;read-line-buffered: line too long\n&quot;</span>/imm32
 <span id="L100" class="LineNr">100 </span>    68/push  2/imm32/stderr
 <span id="L101" class="LineNr">101 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L102" class="LineNr">102 </span>    e8/call  <a href='050_write.subx.html#L14'>_write</a>/disp32
+<span id="L102" class="LineNr">102 </span>    e8/call  <a href='050_write.subx.html#L34'>_write</a>/disp32
 <span id="L103" class="LineNr">103 </span>    <span class="subxS2Comment"># . . discard args</span>
 <span id="L104" class="LineNr">104 </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="L105" class="LineNr">105 </span>    <span class="subxS1Comment"># . syscall(exit, 1)</span>
@@ -178,16 +178,16 @@ if ('onhashchange' in window) {
 <span id="L118" class="LineNr">118 </span>    e8/call  <a href='055stream.subx.html#L17'>clear-stream</a>/disp32
 <span id="L119" class="LineNr">119 </span>    <span class="subxS2Comment"># . . discard args</span>
 <span id="L120" class="LineNr">120 </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="L121" class="LineNr">121 </span>    <span class="subxS1Comment"># . clear-stream(_test-buffered-file-&gt;buffer)</span>
+<span id="L121" class="LineNr">121 </span>    <span class="subxS1Comment"># . clear-stream($_test-buffered-file-&gt;buffer)</span>
 <span id="L122" class="LineNr">122 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L123" class="LineNr">123 </span>    68/push  <a href='061read-byte.subx.html#L278'>_test-buffered-file-&gt;buffer</a>/imm32
+<span id="L123" class="LineNr">123 </span>    68/push  $_test-buffered-file-&gt;buffer/imm32
 <span id="L124" class="LineNr">124 </span>    <span class="subxS2Comment"># . . call</span>
 <span id="L125" class="LineNr">125 </span>    e8/call  <a href='055stream.subx.html#L17'>clear-stream</a>/disp32
 <span id="L126" class="LineNr">126 </span>    <span class="subxS2Comment"># . . discard args</span>
 <span id="L127" class="LineNr">127 </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="L128" class="LineNr">128 </span>    <span class="subxS1Comment"># . clear-stream(_test-tmp-stream)</span>
 <span id="L129" class="LineNr">129 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L130" class="LineNr">130 </span>    68/push  <a href='060read.subx.html#L430'>_test-tmp-stream</a>/imm32
+<span id="L130" class="LineNr">130 </span>    68/push  <a href='060read.subx.html#L429'>_test-tmp-stream</a>/imm32
 <span id="L131" class="LineNr">131 </span>    <span class="subxS2Comment"># . . call</span>
 <span id="L132" class="LineNr">132 </span>    e8/call  <a href='055stream.subx.html#L17'>clear-stream</a>/disp32
 <span id="L133" class="LineNr">133 </span>    <span class="subxS2Comment"># . . discard args</span>
@@ -203,8 +203,8 @@ if ('onhashchange' in window) {
 <span id="L143" class="LineNr">143 </span>    <span class="subxComment"># read a line from _test-stream (buffered by _test-buffered-file) into _test-tmp-stream</span>
 <span id="L144" class="LineNr">144 </span>    <span class="subxS1Comment"># . eax = read-line-buffered(_test-buffered-file, _test-tmp-stream)</span>
 <span id="L145" class="LineNr">145 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L146" class="LineNr">146 </span>    68/push  <a href='060read.subx.html#L430'>_test-tmp-stream</a>/imm32
-<span id="L147" class="LineNr">147 </span>    68/push  <a href='061read-byte.subx.html#L275'>_test-buffered-file</a>/imm32
+<span id="L146" class="LineNr">146 </span>    68/push  <a href='060read.subx.html#L429'>_test-tmp-stream</a>/imm32
+<span id="L147" class="LineNr">147 </span>    68/push  <a href='061read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
 <span id="L148" class="LineNr">148 </span>    <span class="subxS2Comment"># . . call</span>
 <span id="L149" class="LineNr">149 </span>    e8/call  <a href='071read-line.subx.html#L9'>read-line-buffered</a>/disp32
 <span id="L150" class="LineNr">150 </span>    <span class="subxS2Comment"># . . discard args</span>
@@ -213,9 +213,9 @@ if ('onhashchange' in window) {
 <span id="L153" class="LineNr">153 </span>    <span class="subxS2Comment"># . . push args</span>
 <span id="L154" class="LineNr">154 </span>    68/push  <span class="Constant">&quot;F - test-read-line-buffered&quot;</span>/imm32
 <span id="L155" class="LineNr">155 </span>    68/push  <span class="Constant">&quot;ab&quot;</span>/imm32
-<span id="L156" class="LineNr">156 </span>    68/push  <a href='060read.subx.html#L430'>_test-tmp-stream</a>/imm32
+<span id="L156" class="LineNr">156 </span>    68/push  <a href='060read.subx.html#L429'>_test-tmp-stream</a>/imm32
 <span id="L157" class="LineNr">157 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L158" class="LineNr">158 </span>    e8/call  <a href='058stream-equal.subx.html#L563'>check-next-stream-line-equal</a>/disp32
+<span id="L158" class="LineNr">158 </span>    e8/call  <a href='058stream-equal.subx.html#L565'>check-next-stream-line-equal</a>/disp32
 <span id="L159" class="LineNr">159 </span>    <span class="subxS2Comment"># . . discard args</span>
 <span id="L160" class="LineNr">160 </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="L161" class="LineNr">161 </span>    <span class="subxComment"># end</span>
@@ -230,16 +230,16 @@ if ('onhashchange' in window) {
 <span id="L170" class="LineNr">170 </span>    e8/call  <a href='055stream.subx.html#L17'>clear-stream</a>/disp32
 <span id="L171" class="LineNr">171 </span>    <span class="subxS2Comment"># . . discard args</span>
 <span id="L172" class="LineNr">172 </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="L173" class="LineNr">173 </span>    <span class="subxS1Comment"># . clear-stream(_test-buffered-file-&gt;buffer)</span>
+<span id="L173" class="LineNr">173 </span>    <span class="subxS1Comment"># . clear-stream($_test-buffered-file-&gt;buffer)</span>
 <span id="L174" class="LineNr">174 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L175" class="LineNr">175 </span>    68/push  <a href='061read-byte.subx.html#L278'>_test-buffered-file-&gt;buffer</a>/imm32
+<span id="L175" class="LineNr">175 </span>    68/push  $_test-buffered-file-&gt;buffer/imm32
 <span id="L176" class="LineNr">176 </span>    <span class="subxS2Comment"># . . call</span>
 <span id="L177" class="LineNr">177 </span>    e8/call  <a href='055stream.subx.html#L17'>clear-stream</a>/disp32
 <span id="L178" class="LineNr">178 </span>    <span class="subxS2Comment"># . . discard args</span>
 <span id="L179" class="LineNr">179 </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="L180" class="LineNr">180 </span>    <span class="subxS1Comment"># . clear-stream(_test-tmp-stream)</span>
 <span id="L181" class="LineNr">181 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L182" class="LineNr">182 </span>    68/push  <a href='060read.subx.html#L430'>_test-tmp-stream</a>/imm32
+<span id="L182" class="LineNr">182 </span>    68/push  <a href='060read.subx.html#L429'>_test-tmp-stream</a>/imm32
 <span id="L183" class="LineNr">183 </span>    <span class="subxS2Comment"># . . call</span>
 <span id="L184" class="LineNr">184 </span>    e8/call  <a href='055stream.subx.html#L17'>clear-stream</a>/disp32
 <span id="L185" class="LineNr">185 </span>    <span class="subxS2Comment"># . . discard args</span>
@@ -255,8 +255,8 @@ if ('onhashchange' in window) {
 <span id="L195" class="LineNr">195 </span>    <span class="subxComment"># read a line from _test-stream (buffered by _test-buffered-file) into _test-tmp-stream</span>
 <span id="L196" class="LineNr">196 </span>    <span class="subxS1Comment"># . eax = read-line-buffered(_test-buffered-file, _test-tmp-stream)</span>
 <span id="L197" class="LineNr">197 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L198" class="LineNr">198 </span>    68/push  <a href='060read.subx.html#L430'>_test-tmp-stream</a>/imm32
-<span id="L199" class="LineNr">199 </span>    68/push  <a href='061read-byte.subx.html#L275'>_test-buffered-file</a>/imm32
+<span id="L198" class="LineNr">198 </span>    68/push  <a href='060read.subx.html#L429'>_test-tmp-stream</a>/imm32
+<span id="L199" class="LineNr">199 </span>    68/push  <a href='061read-byte.subx.html#L274'>_test-buffered-file</a>/imm32
 <span id="L200" class="LineNr">200 </span>    <span class="subxS2Comment"># . . call</span>
 <span id="L201" class="LineNr">201 </span>    e8/call  <a href='071read-line.subx.html#L9'>read-line-buffered</a>/disp32
 <span id="L202" class="LineNr">202 </span>    <span class="subxS2Comment"># . . discard args</span>
@@ -265,9 +265,9 @@ if ('onhashchange' in window) {
 <span id="L205" class="LineNr">205 </span>    <span class="subxS2Comment"># . . push args</span>
 <span id="L206" class="LineNr">206 </span>    68/push  <span class="Constant">&quot;F - test-read-line-buffered-reads-final-line-until-Eof&quot;</span>/imm32
 <span id="L207" class="LineNr">207 </span>    68/push  <span class="Constant">&quot;cd&quot;</span>/imm32
-<span id="L208" class="LineNr">208 </span>    68/push  <a href='060read.subx.html#L430'>_test-tmp-stream</a>/imm32
+<span id="L208" class="LineNr">208 </span>    68/push  <a href='060read.subx.html#L429'>_test-tmp-stream</a>/imm32
 <span id="L209" class="LineNr">209 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L210" class="LineNr">210 </span>    e8/call  <a href='058stream-equal.subx.html#L193'>check-stream-equal</a>/disp32
+<span id="L210" class="LineNr">210 </span>    e8/call  <a href='058stream-equal.subx.html#L194'>check-stream-equal</a>/disp32
 <span id="L211" class="LineNr">211 </span>    <span class="subxS2Comment"># . . discard args</span>
 <span id="L212" class="LineNr">212 </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="L213" class="LineNr">213 </span>    <span class="subxComment"># end</span>
@@ -276,7 +276,7 @@ if ('onhashchange' in window) {
 <span id="L216" class="LineNr">216 </span><span class="subxComment"># read bytes from 'f' until (and including) a newline and store them into 's'</span>
 <span id="L217" class="LineNr">217 </span><span class="subxComment"># 's' fails to grow if and only if no data found</span>
 <span id="L218" class="LineNr">218 </span><span class="subxComment"># just abort if 's' is too small</span>
-<span id="L219" class="LineNr">219 </span><span class="subxFunction">read-line</span>:  <span class="subxComment"># f : (address stream), s : (address stream byte)</span>
+<span id="L219" class="LineNr">219 </span><span class="subxFunction">read-line</span>:  <span class="subxComment"># f : (address stream byte), s : (address stream byte)</span>
 <span id="L220" class="LineNr">220 </span>    <span class="subxComment"># pseudocode:</span>
 <span id="L221" class="LineNr">221 </span>    <span class="subxComment">#   while true</span>
 <span id="L222" class="LineNr">222 </span>    <span class="subxComment">#     if (s-&gt;write &gt;= s-&gt;length) abort</span>
@@ -344,7 +344,7 @@ if ('onhashchange' in window) {
 <span id="L284" class="LineNr">284 </span>    68/push  <span class="Constant">&quot;read-line: line too long\n&quot;</span>/imm32
 <span id="L285" class="LineNr">285 </span>    68/push  2/imm32/stderr
 <span id="L286" class="LineNr">286 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L287" class="LineNr">287 </span>    e8/call  <a href='050_write.subx.html#L14'>_write</a>/disp32
+<span id="L287" class="LineNr">287 </span>    e8/call  <a href='050_write.subx.html#L34'>_write</a>/disp32
 <span id="L288" class="LineNr">288 </span>    <span class="subxS2Comment"># . . discard args</span>
 <span id="L289" class="LineNr">289 </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="L290" class="LineNr">290 </span>    <span class="subxS1Comment"># . syscall(exit, 1)</span>
@@ -365,7 +365,7 @@ if ('onhashchange' in window) {
 <span id="L305" class="LineNr">305 </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="L306" class="LineNr">306 </span>    <span class="subxS1Comment"># . clear-stream(_test-tmp-stream)</span>
 <span id="L307" class="LineNr">307 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L308" class="LineNr">308 </span>    68/push  <a href='060read.subx.html#L430'>_test-tmp-stream</a>/imm32
+<span id="L308" class="LineNr">308 </span>    68/push  <a href='060read.subx.html#L429'>_test-tmp-stream</a>/imm32
 <span id="L309" class="LineNr">309 </span>    <span class="subxS2Comment"># . . call</span>
 <span id="L310" class="LineNr">310 </span>    e8/call  <a href='055stream.subx.html#L17'>clear-stream</a>/disp32
 <span id="L311" class="LineNr">311 </span>    <span class="subxS2Comment"># . . discard args</span>
@@ -381,7 +381,7 @@ if ('onhashchange' in window) {
 <span id="L321" class="LineNr">321 </span>    <span class="subxComment"># read a line from _test-stream into _test-tmp-stream</span>
 <span id="L322" class="LineNr">322 </span>    <span class="subxS1Comment"># . eax = read-line(_test-stream, _test-tmp-stream)</span>
 <span id="L323" class="LineNr">323 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L324" class="LineNr">324 </span>    68/push  <a href='060read.subx.html#L430'>_test-tmp-stream</a>/imm32
+<span id="L324" class="LineNr">324 </span>    68/push  <a href='060read.subx.html#L429'>_test-tmp-stream</a>/imm32
 <span id="L325" class="LineNr">325 </span>    68/push  <a href='057write.subx.html#L148'>_test-stream</a>/imm32
 <span id="L326" class="LineNr">326 </span>    <span class="subxS2Comment"># . . call</span>
 <span id="L327" class="LineNr">327 </span>    e8/call  <a href='071read-line.subx.html#L219'>read-line</a>/disp32
@@ -391,9 +391,9 @@ if ('onhashchange' in window) {
 <span id="L331" class="LineNr">331 </span>    <span class="subxS2Comment"># . . push args</span>
 <span id="L332" class="LineNr">332 </span>    68/push  <span class="Constant">&quot;F - test-read-line&quot;</span>/imm32
 <span id="L333" class="LineNr">333 </span>    68/push  <span class="Constant">&quot;ab&quot;</span>/imm32
-<span id="L334" class="LineNr">334 </span>    68/push  <a href='060read.subx.html#L430'>_test-tmp-stream</a>/imm32
+<span id="L334" class="LineNr">334 </span>    68/push  <a href='060read.subx.html#L429'>_test-tmp-stream</a>/imm32
 <span id="L335" class="LineNr">335 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L336" class="LineNr">336 </span>    e8/call  <a href='058stream-equal.subx.html#L563'>check-next-stream-line-equal</a>/disp32
+<span id="L336" class="LineNr">336 </span>    e8/call  <a href='058stream-equal.subx.html#L565'>check-next-stream-line-equal</a>/disp32
 <span id="L337" class="LineNr">337 </span>    <span class="subxS2Comment"># . . discard args</span>
 <span id="L338" class="LineNr">338 </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="L339" class="LineNr">339 </span>    <span class="subxComment"># end</span>
@@ -410,7 +410,7 @@ if ('onhashchange' in window) {
 <span id="L350" class="LineNr">350 </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="L351" class="LineNr">351 </span>    <span class="subxS1Comment"># . clear-stream(_test-tmp-stream)</span>
 <span id="L352" class="LineNr">352 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L353" class="LineNr">353 </span>    68/push  <a href='060read.subx.html#L430'>_test-tmp-stream</a>/imm32
+<span id="L353" class="LineNr">353 </span>    68/push  <a href='060read.subx.html#L429'>_test-tmp-stream</a>/imm32
 <span id="L354" class="LineNr">354 </span>    <span class="subxS2Comment"># . . call</span>
 <span id="L355" class="LineNr">355 </span>    e8/call  <a href='055stream.subx.html#L17'>clear-stream</a>/disp32
 <span id="L356" class="LineNr">356 </span>    <span class="subxS2Comment"># . . discard args</span>
@@ -426,7 +426,7 @@ if ('onhashchange' in window) {
 <span id="L366" class="LineNr">366 </span>    <span class="subxComment"># read a line from _test-stream into _test-tmp-stream</span>
 <span id="L367" class="LineNr">367 </span>    <span class="subxS1Comment"># . eax = read-line(_test-stream, _test-tmp-stream)</span>
 <span id="L368" class="LineNr">368 </span>    <span class="subxS2Comment"># . . push args</span>
-<span id="L369" class="LineNr">369 </span>    68/push  <a href='060read.subx.html#L430'>_test-tmp-stream</a>/imm32
+<span id="L369" class="LineNr">369 </span>    68/push  <a href='060read.subx.html#L429'>_test-tmp-stream</a>/imm32
 <span id="L370" class="LineNr">370 </span>    68/push  <a href='057write.subx.html#L148'>_test-stream</a>/imm32
 <span id="L371" class="LineNr">371 </span>    <span class="subxS2Comment"># . . call</span>
 <span id="L372" class="LineNr">372 </span>    e8/call  <a href='071read-line.subx.html#L219'>read-line</a>/disp32
@@ -436,9 +436,9 @@ if ('onhashchange' in window) {
 <span id="L376" class="LineNr">376 </span>    <span class="subxS2Comment"># . . push args</span>
 <span id="L377" class="LineNr">377 </span>    68/push  <span class="Constant">&quot;F - test-read-line-reads-final-line-until-Eof&quot;</span>/imm32
 <span id="L378" class="LineNr">378 </span>    68/push  <span class="Constant">&quot;cd&quot;</span>/imm32
-<span id="L379" class="LineNr">379 </span>    68/push  <a href='060read.subx.html#L430'>_test-tmp-stream</a>/imm32
+<span id="L379" class="LineNr">379 </span>    68/push  <a href='060read.subx.html#L429'>_test-tmp-stream</a>/imm32
 <span id="L380" class="LineNr">380 </span>    <span class="subxS2Comment"># . . call</span>
-<span id="L381" class="LineNr">381 </span>    e8/call  <a href='058stream-equal.subx.html#L193'>check-stream-equal</a>/disp32
+<span id="L381" class="LineNr">381 </span>    e8/call  <a href='058stream-equal.subx.html#L194'>check-stream-equal</a>/disp32
 <span id="L382" class="LineNr">382 </span>    <span class="subxS2Comment"># . . discard args</span>
 <span id="L383" class="LineNr">383 </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="L384" class="LineNr">384 </span>    <span class="subxComment"># end</span>