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/082slurp.subx.html | |
parent | 540974343290cb9ac0cf55b999447bf563928612 (diff) | |
download | mu-b1635a5c8e25650a19999c246be321a0794eb58a.tar.gz |
5701
Diffstat (limited to 'html/082slurp.subx.html')
-rw-r--r-- | html/082slurp.subx.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/html/082slurp.subx.html b/html/082slurp.subx.html index 1f4e4003..ed4e1f1d 100644 --- a/html/082slurp.subx.html +++ b/html/082slurp.subx.html @@ -64,7 +64,7 @@ if ('onhashchange' in window) { <span id="L5" class="LineNr"> 5 </span> <span id="L6" class="LineNr"> 6 </span><span class="subxComment"># read all bytes from 'f' and store them into 's'</span> <span id="L7" class="LineNr"> 7 </span><span class="subxComment"># abort if 's' is too small</span> -<span id="L8" class="LineNr"> 8 </span><span class="subxFunction">slurp</span>: <span class="subxComment"># f : (address buffered-file), s : (address stream byte) -> <void></span> +<span id="L8" class="LineNr"> 8 </span><span class="subxFunction">slurp</span>: <span class="subxComment"># f : (address buffered-file), s : (address stream byte)</span> <span id="L9" class="LineNr"> 9 </span> <span class="subxComment"># pseudocode:</span> <span id="L10" class="LineNr"> 10 </span> <span class="subxComment"># while true</span> <span id="L11" class="LineNr"> 11 </span> <span class="subxComment"># if (s->write >= s->length) abort</span> @@ -74,7 +74,7 @@ if ('onhashchange' in window) { <span id="L15" class="LineNr"> 15 </span> <span class="subxComment"># s->data[s->write] = AL</span> <span id="L16" class="LineNr"> 16 </span> <span class="subxComment"># ++f->read</span> <span id="L17" class="LineNr"> 17 </span> <span class="subxComment"># ++s->write</span> -<span id="L18" class="LineNr"> 18 </span> <span class="subxS1Comment"># . prolog</span> +<span id="L18" class="LineNr"> 18 </span> <span class="subxS1Comment"># . prologue</span> <span id="L19" class="LineNr"> 19 </span> 55/push-ebp <span id="L20" class="LineNr"> 20 </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="L21" class="LineNr"> 21 </span> <span class="subxS1Comment"># . save registers</span> @@ -143,7 +143,7 @@ if ('onhashchange' in window) { <span id="L84" class="LineNr"> 84 </span> 5a/pop-to-edx <span id="L85" class="LineNr"> 85 </span> 59/pop-to-ecx <span id="L86" class="LineNr"> 86 </span> 58/pop-to-eax -<span id="L87" class="LineNr"> 87 </span> <span class="subxS1Comment"># . epilog</span> +<span id="L87" class="LineNr"> 87 </span> <span class="subxS1Comment"># . epilogue</span> <span id="L88" class="LineNr"> 88 </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="L89" class="LineNr"> 89 </span> 5d/pop-to-ebp <span id="L90" class="LineNr"> 90 </span> c3/return |