diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-12-09 01:26:58 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-12-09 01:26:58 -0800 |
commit | 8aeb85f04ee68b960a6d326aca1a17dec2f6d019 (patch) | |
tree | 26f861361c28ca77fb8298b21a905dc6e06c91ef /html/082slurp.subx.html | |
parent | 2249e605c19f0dbe0c34c1c4f635b802f56dc535 (diff) | |
download | mu-8aeb85f04ee68b960a6d326aca1a17dec2f6d019.tar.gz |
5806
Diffstat (limited to 'html/082slurp.subx.html')
-rw-r--r-- | html/082slurp.subx.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/html/082slurp.subx.html b/html/082slurp.subx.html index 0105f5df..06c6566c 100644 --- a/html/082slurp.subx.html +++ b/html/082slurp.subx.html @@ -122,10 +122,10 @@ if ('onhashchange' in window) { <span id="L63" class="LineNr"> 63 </span> 3d/compare-eax-and 0/imm32 <span id="L64" class="LineNr"> 64 </span> 74/jump-if-equal $slurp:end/disp8 <span id="L65" class="LineNr"> 65 </span><span class="Constant">$slurp:from-stream</span>: -<span id="L66" class="LineNr"> 66 </span> <span class="subxComment"># AL = f->data[f->read]</span> +<span id="L66" class="LineNr"> 66 </span> <span class="subxComment"># var c/eax : byte = f->data[f->read]</span> <span id="L67" class="LineNr"> 67 </span> 31/xor 3/mod/direct 0/rm32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="Normal"> . </span> 0/r32/eax <span class="Normal"> . </span> <span class="Normal"> . </span> <span class="subxComment"># clear eax</span> <span id="L68" class="LineNr"> 68 </span> 8a/copy-byte 1/mod/*+disp8 4/rm32/sib 6/base/esi 1/index/ecx <span class="Normal"> . </span> 0/r32/AL 0x10/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy byte at *(esi+ecx+16) to AL</span> -<span id="L69" class="LineNr"> 69 </span> <span class="subxComment"># s->data[s->write] = AL</span> +<span id="L69" class="LineNr"> 69 </span> <span class="subxComment"># s->data[s->write] = c</span> <span id="L70" class="LineNr"> 70 </span> 88/copy-byte 1/mod/*+disp8 4/rm32/sib 7/base/edi 2/index/edx <span class="Normal"> . </span> 0/r32/AL 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy AL to *(edi+edx+12)</span> <span id="L71" class="LineNr"> 71 </span> <span class="subxComment"># ++f->read</span> <span id="L72" class="LineNr"> 72 </span> 41/increment-ecx @@ -154,7 +154,7 @@ if ('onhashchange' in window) { <span id="L95" class="LineNr"> 95 </span> 68/push <span class="Constant">"slurp: destination too small\n"</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#L34'>_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> @@ -172,16 +172,16 @@ if ('onhashchange' in window) { <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->buffer)</span> +<span id="L116" class="LineNr">116 </span> <span class="subxS1Comment"># . clear-stream($_test-buffered-file->buffer)</span> <span id="L117" class="LineNr">117 </span> <span class="subxS2Comment"># . . push args</span> -<span id="L118" class="LineNr">118 </span> 68/push <a href='061read-byte.subx.html#L278'>_test-buffered-file->buffer</a>/imm32 +<span id="L118" class="LineNr">118 </span> 68/push $_test-buffered-file->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#L430'>_test-tmp-stream</a>/imm32 +<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> @@ -197,8 +197,8 @@ if ('onhashchange' in window) { <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#L430'>_test-tmp-stream</a>/imm32 -<span id="L142" class="LineNr">142 </span> 68/push <a href='061read-byte.subx.html#L275'>_test-buffered-file</a>/imm32 +<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> @@ -207,9 +207,9 @@ if ('onhashchange' in window) { <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">"F - test-slurp"</span>/imm32 <span id="L150" class="LineNr">150 </span> 68/push <span class="Constant">"ab\ncd"</span>/imm32 -<span id="L151" class="LineNr">151 </span> 68/push <a href='060read.subx.html#L430'>_test-tmp-stream</a>/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#L193'>check-stream-equal</a>/disp32 +<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> |