diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-04-10 21:18:55 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-04-10 21:18:55 -0700 |
commit | 09492d3867b5da6d0b2f21b139d097cd481a8fa1 (patch) | |
tree | 82d48abf1cd4af9f6d5eacd817bf4c17bbefd0b7 /html/subx/071read-line.subx.html | |
parent | 1b28ab9044ed5f076e2dfa65999c1c3cbbadc34f (diff) | |
download | mu-09492d3867b5da6d0b2f21b139d097cd481a8fa1.tar.gz |
5077
Diffstat (limited to 'html/subx/071read-line.subx.html')
-rw-r--r-- | html/subx/071read-line.subx.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/html/subx/071read-line.subx.html b/html/subx/071read-line.subx.html index 557b130a..8d334d9c 100644 --- a/html/subx/071read-line.subx.html +++ b/html/subx/071read-line.subx.html @@ -131,7 +131,7 @@ if ('onhashchange' in window) { <span id="L69" class="LineNr"> 69 </span> <span class="subxComment"># if (f->write == 0) break</span> <span id="L70" class="LineNr"> 70 </span> <span class="subxComment"># since f->read was initially 0, EAX is the same as f->write</span> <span id="L71" class="LineNr"> 71 </span> <span class="subxS1Comment"># . if (EAX == 0) return true</span> -<span id="L72" class="LineNr"> 72 </span> 81 7/subop/compare 3/mod/direct 0/rm32/EAX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/imm32 <span class="subxComment"># compare EAX</span> +<span id="L72" class="LineNr"> 72 </span> 3d/compare-EAX-and 0/imm32 <span id="L73" class="LineNr"> 73 </span> 74/jump-if-equal $read-line:end/disp8 <span id="L74" class="LineNr"> 74 </span><span class="Constant">$read-line:from-stream</span>: <span id="L75" class="LineNr"> 75 </span> <span class="subxComment"># AL = f->data[f->read]</span> @@ -144,7 +144,7 @@ if ('onhashchange' in window) { <span id="L82" class="LineNr"> 82 </span> <span class="subxComment"># ++s->write</span> <span id="L83" class="LineNr"> 83 </span> 42/increment-EDX <span id="L84" class="LineNr"> 84 </span> <span class="subxComment"># if (AL == '\n') return</span> -<span id="L85" class="LineNr"> 85 </span> 81 7/subop/compare 3/mod/direct 0/rm32/EAX <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0xa/imm32 <span class="subxComment"># compare EAX</span> +<span id="L85" class="LineNr"> 85 </span> 3d/compare-EAX-and 0xa/imm32 <span id="L86" class="LineNr"> 86 </span> 75/jump-if-not-equal $read-line:loop/disp8 <span id="L87" class="LineNr"> 87 </span><span class="Constant">$read-line:end</span>: <span id="L88" class="LineNr"> 88 </span> <span class="subxComment"># save f->read</span> @@ -206,7 +206,7 @@ if ('onhashchange' in window) { <span id="L144" class="LineNr">144 </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="L145" class="LineNr">145 </span> <span class="subxS1Comment"># . clear-stream(_test-tmp-stream)</span> <span id="L146" class="LineNr">146 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L147" class="LineNr">147 </span> 68/push <a href='060read.subx.html#L345'>_test-tmp-stream</a>/imm32 +<span id="L147" class="LineNr">147 </span> 68/push <a href='060read.subx.html#L430'>_test-tmp-stream</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='055stream.subx.html#L17'>clear-stream</a>/disp32 <span id="L150" class="LineNr">150 </span> <span class="subxS2Comment"># . . discard args</span> @@ -239,7 +239,7 @@ if ('onhashchange' in window) { <span id="L177" class="LineNr">177 </span> <span class="subxComment"># read a line from _test-stream (buffered by _test-buffered-file) into _test-tmp-stream</span> <span id="L178" class="LineNr">178 </span> <span class="subxS1Comment"># . EAX = read-line(_test-buffered-file, _test-tmp-stream)</span> <span id="L179" class="LineNr">179 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L180" class="LineNr">180 </span> 68/push <a href='060read.subx.html#L345'>_test-tmp-stream</a>/imm32 +<span id="L180" class="LineNr">180 </span> 68/push <a href='060read.subx.html#L430'>_test-tmp-stream</a>/imm32 <span id="L181" class="LineNr">181 </span> 68/push <a href='061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 <span id="L182" class="LineNr">182 </span> <span class="subxS2Comment"># . . call</span> <span id="L183" class="LineNr">183 </span> e8/call <a href='071read-line.subx.html#L16'>read-line</a>/disp32 @@ -249,7 +249,7 @@ if ('onhashchange' in window) { <span id="L187" class="LineNr">187 </span> <span class="subxS2Comment"># . . push args</span> <span id="L188" class="LineNr">188 </span> 68/push <span class="Constant">"F - test-read-line"</span>/imm32 <span id="L189" class="LineNr">189 </span> 68/push <span class="Constant">"ab"</span>/imm32 -<span id="L190" class="LineNr">190 </span> 68/push <a href='060read.subx.html#L345'>_test-tmp-stream</a>/imm32 +<span id="L190" class="LineNr">190 </span> 68/push <a href='060read.subx.html#L430'>_test-tmp-stream</a>/imm32 <span id="L191" class="LineNr">191 </span> <span class="subxS2Comment"># . . call</span> <span id="L192" class="LineNr">192 </span> e8/call <a href='058stream-equal.subx.html#L644'>check-next-stream-line-equal</a>/disp32 <span id="L193" class="LineNr">193 </span> <span class="subxS2Comment"># . . discard args</span> @@ -277,7 +277,7 @@ if ('onhashchange' in window) { <span id="L215" class="LineNr">215 </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="L216" class="LineNr">216 </span> <span class="subxS1Comment"># . clear-stream(_test-tmp-stream)</span> <span id="L217" class="LineNr">217 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L218" class="LineNr">218 </span> 68/push <a href='060read.subx.html#L345'>_test-tmp-stream</a>/imm32 +<span id="L218" class="LineNr">218 </span> 68/push <a href='060read.subx.html#L430'>_test-tmp-stream</a>/imm32 <span id="L219" class="LineNr">219 </span> <span class="subxS2Comment"># . . call</span> <span id="L220" class="LineNr">220 </span> e8/call <a href='055stream.subx.html#L17'>clear-stream</a>/disp32 <span id="L221" class="LineNr">221 </span> <span class="subxS2Comment"># . . discard args</span> @@ -293,7 +293,7 @@ if ('onhashchange' in window) { <span id="L231" class="LineNr">231 </span> <span class="subxComment"># read a line from _test-stream (buffered by _test-buffered-file) into _test-tmp-stream</span> <span id="L232" class="LineNr">232 </span> <span class="subxS1Comment"># . EAX = read-line(_test-buffered-file, _test-tmp-stream)</span> <span id="L233" class="LineNr">233 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L234" class="LineNr">234 </span> 68/push <a href='060read.subx.html#L345'>_test-tmp-stream</a>/imm32 +<span id="L234" class="LineNr">234 </span> 68/push <a href='060read.subx.html#L430'>_test-tmp-stream</a>/imm32 <span id="L235" class="LineNr">235 </span> 68/push <a href='061read-byte.subx.html#L289'>_test-buffered-file</a>/imm32 <span id="L236" class="LineNr">236 </span> <span class="subxS2Comment"># . . call</span> <span id="L237" class="LineNr">237 </span> e8/call <a href='071read-line.subx.html#L16'>read-line</a>/disp32 @@ -303,7 +303,7 @@ if ('onhashchange' in window) { <span id="L241" class="LineNr">241 </span> <span class="subxS2Comment"># . . push args</span> <span id="L242" class="LineNr">242 </span> 68/push <span class="Constant">"F - test-read-line-reads-final-line-until-Eof"</span>/imm32 <span id="L243" class="LineNr">243 </span> 68/push <span class="Constant">"cd"</span>/imm32 -<span id="L244" class="LineNr">244 </span> 68/push <a href='060read.subx.html#L345'>_test-tmp-stream</a>/imm32 +<span id="L244" class="LineNr">244 </span> 68/push <a href='060read.subx.html#L430'>_test-tmp-stream</a>/imm32 <span id="L245" class="LineNr">245 </span> <span class="subxS2Comment"># . . call</span> <span id="L246" class="LineNr">246 </span> e8/call <a href='058stream-equal.subx.html#L199'>check-stream-equal</a>/disp32 <span id="L247" class="LineNr">247 </span> <span class="subxS2Comment"># . . discard args</span> |