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/062write-stream.subx.html | |
parent | 2249e605c19f0dbe0c34c1c4f635b802f56dc535 (diff) | |
download | mu-8aeb85f04ee68b960a6d326aca1a17dec2f6d019.tar.gz |
5806
Diffstat (limited to 'html/062write-stream.subx.html')
-rw-r--r-- | html/062write-stream.subx.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/html/062write-stream.subx.html b/html/062write-stream.subx.html index 248e84d1..14f5902c 100644 --- a/html/062write-stream.subx.html +++ b/html/062write-stream.subx.html @@ -76,7 +76,7 @@ if ('onhashchange' in window) { <span id="L15" class="LineNr"> 15 </span><span class="CommentedCode">#? b8/copy-to-eax 1/imm32/exit</span> <span id="L16" class="LineNr"> 16 </span><span class="CommentedCode">#? cd/syscall 0x80/imm8</span> <span id="L17" class="LineNr"> 17 </span> -<span id="L18" class="LineNr"> 18 </span><span class="subxFunction">write-stream</span>: <span class="subxComment"># f : fd or (address stream), s : (address stream)</span> +<span id="L18" class="LineNr"> 18 </span><span class="subxFunction">write-stream</span>: <span class="subxComment"># f : fd or (address stream byte), s : (address stream byte)</span> <span id="L19" class="LineNr"> 19 </span> <span class="subxS1Comment"># . prologue</span> <span id="L20" class="LineNr"> 20 </span> 55/push-ebp <span id="L21" class="LineNr"> 21 </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> @@ -119,7 +119,7 @@ if ('onhashchange' in window) { <span id="L58" class="LineNr"> 58 </span> 8d/copy-address 1/mod/*+disp8 4/rm32/sib 7/base/edi 0/index/eax <span class="Normal"> . </span> 0/r32/eax 0xc/disp8 <span class="Normal"> . </span> <span class="subxComment"># copy edi+eax+12 to eax</span> <span id="L59" class="LineNr"> 59 </span> 50/push-eax <span id="L60" class="LineNr"> 60 </span> <span class="subxS2Comment"># . . call</span> -<span id="L61" class="LineNr"> 61 </span> e8/call <a href='056trace.subx.html#L913'>_append-4</a>/disp32 +<span id="L61" class="LineNr"> 61 </span> e8/call <a href='056trace.subx.html#L893'>_append-4</a>/disp32 <span id="L62" class="LineNr"> 62 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L63" class="LineNr"> 63 </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> 0x10/imm32 <span class="subxComment"># add to esp</span> <span id="L64" class="LineNr"> 64 </span> <span class="subxComment"># f->write += eax</span> @@ -136,7 +136,7 @@ if ('onhashchange' in window) { <span id="L75" class="LineNr"> 75 </span> 5d/pop-to-ebp <span id="L76" class="LineNr"> 76 </span> c3/return <span id="L77" class="LineNr"> 77 </span> -<span id="L78" class="LineNr"> 78 </span><span class="subxMinorFunction">_write-stream</span>: <span class="subxComment"># fd : int, s : (address stream)</span> +<span id="L78" class="LineNr"> 78 </span><span class="subxMinorFunction">_write-stream</span>: <span class="subxComment"># fd : int, s : (address stream byte)</span> <span id="L79" class="LineNr"> 79 </span> <span class="subxS1Comment"># . prologue</span> <span id="L80" class="LineNr"> 80 </span> 55/push-ebp <span id="L81" class="LineNr"> 81 </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> @@ -186,7 +186,7 @@ if ('onhashchange' in window) { <span id="L125" class="LineNr">125 </span> 68/push <span class="Constant">"_write-stream: failed to <a href='057write.subx.html#L24'>write</a> to file\n"</span>/imm32 <span id="L126" class="LineNr">126 </span> 68/push 2/imm32/stderr <span id="L127" class="LineNr">127 </span> <span class="subxS2Comment"># . . call</span> -<span id="L128" class="LineNr">128 </span> e8/call <a href='050_write.subx.html#L14'>_write</a>/disp32 +<span id="L128" class="LineNr">128 </span> e8/call <a href='050_write.subx.html#L34'>_write</a>/disp32 <span id="L129" class="LineNr">129 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L130" class="LineNr">130 </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="L131" class="LineNr">131 </span> <span class="subxS1Comment"># . syscall(exit, 1)</span> @@ -233,7 +233,7 @@ if ('onhashchange' in window) { <span id="L172" class="LineNr">172 </span> 68/push <span class="Constant">"Ab"</span>/imm32 <span id="L173" class="LineNr">173 </span> 68/push <a href='057write.subx.html#L148'>_test-stream</a>/imm32 <span id="L174" class="LineNr">174 </span> <span class="subxS2Comment"># . . call</span> -<span id="L175" class="LineNr">175 </span> e8/call <a href='058stream-equal.subx.html#L193'>check-stream-equal</a>/disp32 +<span id="L175" class="LineNr">175 </span> e8/call <a href='058stream-equal.subx.html#L194'>check-stream-equal</a>/disp32 <span id="L176" class="LineNr">176 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L177" class="LineNr">177 </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="L178" class="LineNr">178 </span> <span class="subxS1Comment"># . end</span> @@ -295,7 +295,7 @@ if ('onhashchange' in window) { <span id="L234" class="LineNr">234 </span> 68/push <span class="Constant">"CD"</span>/imm32 <span id="L235" class="LineNr">235 </span> 68/push <a href='057write.subx.html#L148'>_test-stream</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='058stream-equal.subx.html#L193'>check-stream-equal</a>/disp32 +<span id="L237" class="LineNr">237 </span> e8/call <a href='058stream-equal.subx.html#L194'>check-stream-equal</a>/disp32 <span id="L238" class="LineNr">238 </span> <span class="subxS2Comment"># . . discard args</span> <span id="L239" class="LineNr">239 </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="L240" class="LineNr">240 </span> <span class="subxS1Comment"># . end</span> @@ -303,7 +303,7 @@ if ('onhashchange' in window) { <span id="L242" class="LineNr">242 </span> <span id="L243" class="LineNr">243 </span>== data <span id="L244" class="LineNr">244 </span> -<span id="L245" class="LineNr">245 </span><span class="subxMinorFunction">_test-stream2</span>: +<span id="L245" class="LineNr">245 </span><span class="subxMinorFunction">_test-stream2</span>: <span class="subxComment"># (ref stream byte)</span> <span id="L246" class="LineNr">246 </span> <span class="subxComment"># current write index</span> <span id="L247" class="LineNr">247 </span> 4/imm32 <span id="L248" class="LineNr">248 </span> <span class="subxComment"># current read index</span> |