diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-10-17 22:03:35 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-10-17 22:03:48 -0700 |
commit | b1635a5c8e25650a19999c246be321a0794eb58a (patch) | |
tree | a5ce06d138fac34b1e13fb1b06fd91b8b6c55712 /html/071read-line.subx.html | |
parent | 540974343290cb9ac0cf55b999447bf563928612 (diff) | |
download | mu-b1635a5c8e25650a19999c246be321a0794eb58a.tar.gz |
5701
Diffstat (limited to 'html/071read-line.subx.html')
-rw-r--r-- | html/071read-line.subx.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/html/071read-line.subx.html b/html/071read-line.subx.html index 05b328e0..556a1a56 100644 --- a/html/071read-line.subx.html +++ b/html/071read-line.subx.html @@ -66,7 +66,7 @@ if ('onhashchange' in window) { <span id="L6" class="LineNr"> 6 </span><span class="subxComment"># read bytes from 'f' until (and including) a newline and store them into 's'</span> <span id="L7" class="LineNr"> 7 </span><span class="subxComment"># 's' fails to grow if and only if no data found</span> <span id="L8" class="LineNr"> 8 </span><span class="subxComment"># just abort if 's' is too small</span> -<span id="L9" class="LineNr"> 9 </span><span class="subxFunction">read-line-buffered</span>: <span class="subxComment"># f : (address buffered-file), s : (address stream byte) -> <void></span> +<span id="L9" class="LineNr"> 9 </span><span class="subxFunction">read-line-buffered</span>: <span class="subxComment"># f : (address buffered-file), s : (address stream byte)</span> <span id="L10" class="LineNr"> 10 </span> <span class="subxComment"># pseudocode:</span> <span id="L11" class="LineNr"> 11 </span> <span class="subxComment"># while true</span> <span id="L12" class="LineNr"> 12 </span> <span class="subxComment"># if (s->write >= s->length) abort</span> @@ -77,7 +77,7 @@ if ('onhashchange' in window) { <span id="L17" class="LineNr"> 17 </span> <span class="subxComment"># ++f->read</span> <span id="L18" class="LineNr"> 18 </span> <span class="subxComment"># ++s->write</span> <span id="L19" class="LineNr"> 19 </span> <span class="subxComment"># if (AL == '\n') break</span> -<span id="L20" class="LineNr"> 20 </span> <span class="subxS1Comment"># . prolog</span> +<span id="L20" class="LineNr"> 20 </span> <span class="subxS1Comment"># . prologue</span> <span id="L21" class="LineNr"> 21 </span> 55/push-ebp <span id="L22" class="LineNr"> 22 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> <span id="L23" class="LineNr"> 23 </span> <span class="subxS1Comment"># . save registers</span> @@ -148,7 +148,7 @@ if ('onhashchange' in window) { <span id="L88" class="LineNr"> 88 </span> 5a/pop-to-edx <span id="L89" class="LineNr"> 89 </span> 59/pop-to-ecx <span id="L90" class="LineNr"> 90 </span> 58/pop-to-eax -<span id="L91" class="LineNr"> 91 </span> <span class="subxS1Comment"># . epilog</span> +<span id="L91" class="LineNr"> 91 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L92" class="LineNr"> 92 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> <span id="L93" class="LineNr"> 93 </span> 5d/pop-to-ebp <span id="L94" class="LineNr"> 94 </span> c3/return @@ -280,7 +280,7 @@ if ('onhashchange' in window) { <span id="L220" class="LineNr">220 </span><span class="subxComment"># read bytes from 'f' until (and including) a newline and store them into 's'</span> <span id="L221" class="LineNr">221 </span><span class="subxComment"># 's' fails to grow if and only if no data found</span> <span id="L222" class="LineNr">222 </span><span class="subxComment"># just abort if 's' is too small</span> -<span id="L223" class="LineNr">223 </span><span class="subxFunction">read-line</span>: <span class="subxComment"># f : (address stream), s : (address stream byte) -> <void></span> +<span id="L223" class="LineNr">223 </span><span class="subxFunction">read-line</span>: <span class="subxComment"># f : (address stream), s : (address stream byte)</span> <span id="L224" class="LineNr">224 </span> <span class="subxComment"># pseudocode:</span> <span id="L225" class="LineNr">225 </span> <span class="subxComment"># while true</span> <span id="L226" class="LineNr">226 </span> <span class="subxComment"># if (s->write >= s->length) abort</span> @@ -290,7 +290,7 @@ if ('onhashchange' in window) { <span id="L230" class="LineNr">230 </span> <span class="subxComment"># ++f->read</span> <span id="L231" class="LineNr">231 </span> <span class="subxComment"># ++s->write</span> <span id="L232" class="LineNr">232 </span> <span class="subxComment"># if (AL == '\n') break</span> -<span id="L233" class="LineNr">233 </span> <span class="subxS1Comment"># . prolog</span> +<span id="L233" class="LineNr">233 </span> <span class="subxS1Comment"># . prologue</span> <span id="L234" class="LineNr">234 </span> 55/push-ebp <span id="L235" class="LineNr">235 </span> 89/copy 3/mod/direct 5/rm32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 4/r32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy esp to ebp</span> <span id="L236" class="LineNr">236 </span> <span class="subxS1Comment"># . save registers</span> @@ -337,7 +337,7 @@ if ('onhashchange' in window) { <span id="L277" class="LineNr">277 </span> 5a/pop-to-edx <span id="L278" class="LineNr">278 </span> 59/pop-to-ecx <span id="L279" class="LineNr">279 </span> 58/pop-to-eax -<span id="L280" class="LineNr">280 </span> <span class="subxS1Comment"># . epilog</span> +<span id="L280" class="LineNr">280 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L281" class="LineNr">281 </span> 89/copy 3/mod/direct 4/rm32/esp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 5/r32/ebp <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># copy ebp to esp</span> <span id="L282" class="LineNr">282 </span> 5d/pop-to-ebp <span id="L283" class="LineNr">283 </span> c3/return |