about summary refs log tree commit diff stats
path: root/html/subx/072slice.subx.html
diff options
context:
space:
mode:
Diffstat (limited to 'html/subx/072slice.subx.html')
-rw-r--r--html/subx/072slice.subx.html167
1 files changed, 138 insertions, 29 deletions
diff --git a/html/subx/072slice.subx.html b/html/subx/072slice.subx.html
index 6d3be6ad..535e2937 100644
--- a/html/subx/072slice.subx.html
+++ b/html/subx/072slice.subx.html
@@ -223,8 +223,8 @@ if ('onhashchange' in window) {
 <span id="L161" class="LineNr">161 </span>    55/push-EBP
 <span id="L162" class="LineNr">162 </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="L163" class="LineNr">163 </span>    <span class="subxComment"># var slice/ECX</span>
-<span id="L164" class="LineNr">164 </span>    68/push  <a href='072slice.subx.html#L514'>_test-slice-data-3</a>/imm32/end
-<span id="L165" class="LineNr">165 </span>    68/push  <a href='072slice.subx.html#L508'>_test-slice-data-0</a>/imm32/start
+<span id="L164" class="LineNr">164 </span>    68/push  <a href='072slice.subx.html#L623'>_test-slice-data-3</a>/imm32/end
+<span id="L165" class="LineNr">165 </span>    68/push  <a href='072slice.subx.html#L617'>_test-slice-data-0</a>/imm32/start
 <span id="L166" class="LineNr">166 </span>    89/copy                         3/mod/direct    1/rm32/ECX   <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 ECX</span>
 <span id="L167" class="LineNr">167 </span>    <span class="subxComment"># EAX = slice-equal?(ECX, &quot;Abc&quot;)</span>
 <span id="L168" class="LineNr">168 </span>    <span class="subxS2Comment"># . . push args</span>
@@ -254,8 +254,8 @@ if ('onhashchange' in window) {
 <span id="L192" class="LineNr">192 </span>    55/push-EBP
 <span id="L193" class="LineNr">193 </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="L194" class="LineNr">194 </span>    <span class="subxComment"># var slice/ECX</span>
-<span id="L195" class="LineNr">195 </span>    68/push  <a href='072slice.subx.html#L516'>_test-slice-data-4</a>/imm32/end
-<span id="L196" class="LineNr">196 </span>    68/push  <a href='072slice.subx.html#L510'>_test-slice-data-1</a>/imm32/start
+<span id="L195" class="LineNr">195 </span>    68/push  <a href='072slice.subx.html#L625'>_test-slice-data-4</a>/imm32/end
+<span id="L196" class="LineNr">196 </span>    68/push  <a href='072slice.subx.html#L619'>_test-slice-data-1</a>/imm32/start
 <span id="L197" class="LineNr">197 </span>    89/copy                         3/mod/direct    1/rm32/ECX   <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 ECX</span>
 <span id="L198" class="LineNr">198 </span>    <span class="subxComment"># EAX = slice-equal?(ECX, &quot;Abc&quot;)</span>
 <span id="L199" class="LineNr">199 </span>    <span class="subxS2Comment"># . . push args</span>
@@ -285,8 +285,8 @@ if ('onhashchange' in window) {
 <span id="L223" class="LineNr">223 </span>    55/push-EBP
 <span id="L224" class="LineNr">224 </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="L225" class="LineNr">225 </span>    <span class="subxComment"># var slice/ECX</span>
-<span id="L226" class="LineNr">226 </span>    68/push  <a href='072slice.subx.html#L516'>_test-slice-data-4</a>/imm32/end
-<span id="L227" class="LineNr">227 </span>    68/push  <a href='072slice.subx.html#L508'>_test-slice-data-0</a>/imm32/start
+<span id="L226" class="LineNr">226 </span>    68/push  <a href='072slice.subx.html#L625'>_test-slice-data-4</a>/imm32/end
+<span id="L227" class="LineNr">227 </span>    68/push  <a href='072slice.subx.html#L617'>_test-slice-data-0</a>/imm32/start
 <span id="L228" class="LineNr">228 </span>    89/copy                         3/mod/direct    1/rm32/ECX   <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 ECX</span>
 <span id="L229" class="LineNr">229 </span>    <span class="subxComment"># EAX = slice-equal?(ECX, &quot;Abc&quot;)</span>
 <span id="L230" class="LineNr">230 </span>    <span class="subxS2Comment"># . . push args</span>
@@ -316,8 +316,8 @@ if ('onhashchange' in window) {
 <span id="L254" class="LineNr">254 </span>    55/push-EBP
 <span id="L255" class="LineNr">255 </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="L256" class="LineNr">256 </span>    <span class="subxComment"># var slice/ECX</span>
-<span id="L257" class="LineNr">257 </span>    68/push  <a href='072slice.subx.html#L510'>_test-slice-data-1</a>/imm32/end
-<span id="L258" class="LineNr">258 </span>    68/push  <a href='072slice.subx.html#L508'>_test-slice-data-0</a>/imm32/start
+<span id="L257" class="LineNr">257 </span>    68/push  <a href='072slice.subx.html#L619'>_test-slice-data-1</a>/imm32/end
+<span id="L258" class="LineNr">258 </span>    68/push  <a href='072slice.subx.html#L617'>_test-slice-data-0</a>/imm32/start
 <span id="L259" class="LineNr">259 </span>    89/copy                         3/mod/direct    1/rm32/ECX   <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 ECX</span>
 <span id="L260" class="LineNr">260 </span>    <span class="subxComment"># EAX = slice-equal?(ECX, &quot;Abc&quot;)</span>
 <span id="L261" class="LineNr">261 </span>    <span class="subxS2Comment"># . . push args</span>
@@ -347,8 +347,8 @@ if ('onhashchange' in window) {
 <span id="L285" class="LineNr">285 </span>    55/push-EBP
 <span id="L286" class="LineNr">286 </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="L287" class="LineNr">287 </span>    <span class="subxComment"># var slice/ECX</span>
-<span id="L288" class="LineNr">288 </span>    68/push  <a href='072slice.subx.html#L508'>_test-slice-data-0</a>/imm32/end
-<span id="L289" class="LineNr">289 </span>    68/push  <a href='072slice.subx.html#L508'>_test-slice-data-0</a>/imm32/start
+<span id="L288" class="LineNr">288 </span>    68/push  <a href='072slice.subx.html#L617'>_test-slice-data-0</a>/imm32/end
+<span id="L289" class="LineNr">289 </span>    68/push  <a href='072slice.subx.html#L617'>_test-slice-data-0</a>/imm32/start
 <span id="L290" class="LineNr">290 </span>    89/copy                         3/mod/direct    1/rm32/ECX   <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 ECX</span>
 <span id="L291" class="LineNr">291 </span>    <span class="subxComment"># EAX = slice-equal?(ECX, &quot;Abc&quot;)</span>
 <span id="L292" class="LineNr">292 </span>    <span class="subxS2Comment"># . . push args</span>
@@ -378,8 +378,8 @@ if ('onhashchange' in window) {
 <span id="L316" class="LineNr">316 </span>    55/push-EBP
 <span id="L317" class="LineNr">317 </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="L318" class="LineNr">318 </span>    <span class="subxComment"># var slice/ECX</span>
-<span id="L319" class="LineNr">319 </span>    68/push  <a href='072slice.subx.html#L512'>_test-slice-data-2</a>/imm32/end
-<span id="L320" class="LineNr">320 </span>    68/push  <a href='072slice.subx.html#L508'>_test-slice-data-0</a>/imm32/start
+<span id="L319" class="LineNr">319 </span>    68/push  <a href='072slice.subx.html#L621'>_test-slice-data-2</a>/imm32/end
+<span id="L320" class="LineNr">320 </span>    68/push  <a href='072slice.subx.html#L617'>_test-slice-data-0</a>/imm32/start
 <span id="L321" class="LineNr">321 </span>    89/copy                         3/mod/direct    1/rm32/ECX   <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 ECX</span>
 <span id="L322" class="LineNr">322 </span>    <span class="subxComment"># EAX = slice-equal?(ECX, &quot;&quot;)</span>
 <span id="L323" class="LineNr">323 </span>    <span class="subxS2Comment"># . . push args</span>
@@ -409,8 +409,8 @@ if ('onhashchange' in window) {
 <span id="L347" class="LineNr">347 </span>    55/push-EBP
 <span id="L348" class="LineNr">348 </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="L349" class="LineNr">349 </span>    <span class="subxComment"># var slice/ECX</span>
-<span id="L350" class="LineNr">350 </span>    68/push  <a href='072slice.subx.html#L508'>_test-slice-data-0</a>/imm32/end
-<span id="L351" class="LineNr">351 </span>    68/push  <a href='072slice.subx.html#L508'>_test-slice-data-0</a>/imm32/start
+<span id="L350" class="LineNr">350 </span>    68/push  <a href='072slice.subx.html#L617'>_test-slice-data-0</a>/imm32/end
+<span id="L351" class="LineNr">351 </span>    68/push  <a href='072slice.subx.html#L617'>_test-slice-data-0</a>/imm32/start
 <span id="L352" class="LineNr">352 </span>    89/copy                         3/mod/direct    1/rm32/ECX   <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 ECX</span>
 <span id="L353" class="LineNr">353 </span>    <span class="subxComment"># EAX = slice-equal?(ECX, &quot;&quot;)</span>
 <span id="L354" class="LineNr">354 </span>    <span class="subxS2Comment"># . . push args</span>
@@ -533,8 +533,8 @@ if ('onhashchange' in window) {
 <span id="L471" class="LineNr">471 </span>    <span class="subxS2Comment"># . . discard args</span>
 <span id="L472" class="LineNr">472 </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="L473" class="LineNr">473 </span>    <span class="subxComment"># var slice/ECX = &quot;Abc&quot;</span>
-<span id="L474" class="LineNr">474 </span>    68/push  <a href='072slice.subx.html#L514'>_test-slice-data-3</a>/imm32/end
-<span id="L475" class="LineNr">475 </span>    68/push  <a href='072slice.subx.html#L508'>_test-slice-data-0</a>/imm32/start
+<span id="L474" class="LineNr">474 </span>    68/push  <a href='072slice.subx.html#L623'>_test-slice-data-3</a>/imm32/end
+<span id="L475" class="LineNr">475 </span>    68/push  <a href='072slice.subx.html#L617'>_test-slice-data-0</a>/imm32/start
 <span id="L476" class="LineNr">476 </span>    89/copy                         3/mod/direct    1/rm32/ECX   <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 ECX</span>
 <span id="L477" class="LineNr">477 </span>    <span class="subxComment"># write-slice(_test-buffered-file, slice)</span>
 <span id="L478" class="LineNr">478 </span>    <span class="subxS2Comment"># . . push args</span>
@@ -565,19 +565,128 @@ if ('onhashchange' in window) {
 <span id="L503" class="LineNr">503 </span>    5d/pop-to-EBP
 <span id="L504" class="LineNr">504 </span>    c3/return
 <span id="L505" class="LineNr">505 </span>
-<span id="L506" class="LineNr">506 </span>== data
-<span id="L507" class="LineNr">507 </span>
-<span id="L508" class="LineNr">508 </span><span class="subxMinorFunction">_test-slice-data-0</span>:
-<span id="L509" class="LineNr">509 </span>    41/A
-<span id="L510" class="LineNr">510 </span><span class="subxMinorFunction">_test-slice-data-1</span>:
-<span id="L511" class="LineNr">511 </span>    62/b
-<span id="L512" class="LineNr">512 </span><span class="subxMinorFunction">_test-slice-data-2</span>:
-<span id="L513" class="LineNr">513 </span>    63/c
-<span id="L514" class="LineNr">514 </span><span class="subxMinorFunction">_test-slice-data-3</span>:
-<span id="L515" class="LineNr">515 </span>    64/d
-<span id="L516" class="LineNr">516 </span><span class="subxMinorFunction">_test-slice-data-4</span>:
-<span id="L517" class="LineNr">517 </span>
-<span id="L518" class="LineNr">518 </span><span class="subxS1Comment"># . _. vim&#0058;nowrap:textwidth=0</span>
+<span id="L506" class="LineNr">506 </span><span class="subxComment"># write an entire stream's contents to a buffered-file</span>
+<span id="L507" class="LineNr">507 </span><span class="subxComment"># ways to do this:</span>
+<span id="L508" class="LineNr">508 </span><span class="subxComment">#   - construct a 'maximal slice' and pass it to write-slice</span>
+<span id="L509" class="LineNr">509 </span><span class="subxComment">#   - flush the buffered-file and pass the stream directly to its fd (disabling buffering)</span>
+<span id="L510" class="LineNr">510 </span><span class="subxComment"># we'll go with the first way for now</span>
+<span id="L511" class="LineNr">511 </span><span class="subxFunction">write-stream-buffered</span>:  <span class="subxComment"># f : (address buffered-file), s : (address stream)</span>
+<span id="L512" class="LineNr">512 </span>    <span class="subxS1Comment"># . prolog</span>
+<span id="L513" class="LineNr">513 </span>    55/push-EBP
+<span id="L514" class="LineNr">514 </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="L515" class="LineNr">515 </span>    <span class="subxS1Comment"># . save registers</span>
+<span id="L516" class="LineNr">516 </span>    50/push-EAX
+<span id="L517" class="LineNr">517 </span>    56/push-ESI
+<span id="L518" class="LineNr">518 </span>    <span class="subxComment"># ESI = s</span>
+<span id="L519" class="LineNr">519 </span>    8b/copy                         1/mod/*+disp8   5/rm32/EBP   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>          6/r32/ESI   0xc/disp8      <span class="Normal"> . </span>                <span class="subxComment"># copy *(EBP+12) to ESI</span>
+<span id="L520" class="LineNr">520 </span>    <span class="subxComment"># var slice/ECX = {s-&gt;data, s-&gt;data + s-&gt;write}</span>
+<span id="L521" class="LineNr">521 </span>    <span class="subxS1Comment"># . push s-&gt;data + s-&gt;write</span>
+<span id="L522" class="LineNr">522 </span>    8b/copy                         0/mod/indirect  6/rm32/ESI   <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"># copy *ESI to EAX</span>
+<span id="L523" class="LineNr">523 </span>    8d/copy-address                 1/mod/*+disp8   4/rm32/sib    6/base/ESI  0/index/EAX  <span class="Normal"> . </span>          0/r32/EAX   0xc/disp8      <span class="Normal"> . </span>                <span class="subxComment"># copy ESI+EAX+12 to EAX</span>
+<span id="L524" class="LineNr">524 </span>    50/push-EAX
+<span id="L525" class="LineNr">525 </span>    <span class="subxS1Comment"># . push s-&gt;data</span>
+<span id="L526" class="LineNr">526 </span>    8d/copy-address                 1/mod/*+disp8   6/rm32/ESI   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>          0/r32/EAX   0xc/disp8      <span class="Normal"> . </span>                <span class="subxComment"># copy ESI+12 to EAX</span>
+<span id="L527" class="LineNr">527 </span>    50/push-EAX
+<span id="L528" class="LineNr">528 </span>    <span class="subxS1Comment"># . ECX = ESP</span>
+<span id="L529" class="LineNr">529 </span>    89/copy                         3/mod/direct    1/rm32/ECX   <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 ECX</span>
+<span id="L530" class="LineNr">530 </span>    <span class="subxComment"># write-slice(f, slice)</span>
+<span id="L531" class="LineNr">531 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L532" class="LineNr">532 </span>    51/push-ECX
+<span id="L533" class="LineNr">533 </span>    ff          6/subop/push        1/mod/*+disp8   5/rm32/EBP   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>         <span class="Normal"> . </span>          8/disp8        <span class="Normal"> . </span>                <span class="subxComment"># push *(EBP+8)</span>
+<span id="L534" class="LineNr">534 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L535" class="LineNr">535 </span>    e8/call  <a href='072slice.subx.html#L375'>write-slice</a>/disp32
+<span id="L536" class="LineNr">536 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L537" class="LineNr">537 </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="L538" class="LineNr">538 </span><span class="Constant">$write-stream-buffered:end</span>:
+<span id="L539" class="LineNr">539 </span>    <span class="subxS1Comment"># . restore registers</span>
+<span id="L540" class="LineNr">540 </span>    5e/pop-to-ESI
+<span id="L541" class="LineNr">541 </span>    58/pop-to-EAX
+<span id="L542" class="LineNr">542 </span>    <span class="subxS1Comment"># . epilog</span>
+<span id="L543" class="LineNr">543 </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="L544" class="LineNr">544 </span>    5d/pop-to-EBP
+<span id="L545" class="LineNr">545 </span>    c3/return
+<span id="L546" class="LineNr">546 </span>
+<span id="L547" class="LineNr">547 </span><span class="subxTest">test-write-stream-buffered</span>:
+<span id="L548" class="LineNr">548 </span>    <span class="subxS1Comment"># . prolog</span>
+<span id="L549" class="LineNr">549 </span>    55/push-EBP
+<span id="L550" class="LineNr">550 </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="L551" class="LineNr">551 </span>    <span class="subxComment"># setup</span>
+<span id="L552" class="LineNr">552 </span>    <span class="subxS1Comment"># . clear-stream(_test-stream)</span>
+<span id="L553" class="LineNr">553 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L554" class="LineNr">554 </span>    68/push  <a href='057write.subx.html#L155'>_test-stream</a>/imm32
+<span id="L555" class="LineNr">555 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L556" class="LineNr">556 </span>    e8/call  <a href='055stream.subx.html#L24'>clear-stream</a>/disp32
+<span id="L557" class="LineNr">557 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L558" class="LineNr">558 </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="L559" class="LineNr">559 </span>    <span class="subxS1Comment"># . clear-stream(_test-buffered-file+4)</span>
+<span id="L560" class="LineNr">560 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L561" class="LineNr">561 </span>    b8/copy-to-EAX  <a href='061read-byte.subx.html#L290'>_test-buffered-file</a>/imm32
+<span id="L562" class="LineNr">562 </span>    05/add-to-EAX  4/imm32
+<span id="L563" class="LineNr">563 </span>    50/push-EAX
+<span id="L564" class="LineNr">564 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L565" class="LineNr">565 </span>    e8/call  <a href='055stream.subx.html#L24'>clear-stream</a>/disp32
+<span id="L566" class="LineNr">566 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L567" class="LineNr">567 </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="L568" class="LineNr">568 </span>    <span class="subxS1Comment"># . clear-stream(_test-tmp-stream)</span>
+<span id="L569" class="LineNr">569 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L570" class="LineNr">570 </span>    68/push  <a href='060read.subx.html#L352'>_test-tmp-stream</a>/imm32
+<span id="L571" class="LineNr">571 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L572" class="LineNr">572 </span>    e8/call  <a href='055stream.subx.html#L24'>clear-stream</a>/disp32
+<span id="L573" class="LineNr">573 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L574" class="LineNr">574 </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="L575" class="LineNr">575 </span>    <span class="subxComment"># initialize input</span>
+<span id="L576" class="LineNr">576 </span>    <span class="subxS1Comment"># . write(_test-tmp-stream, &quot;abcd&quot;)</span>
+<span id="L577" class="LineNr">577 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L578" class="LineNr">578 </span>    68/push  <span class="Constant">&quot;abcd&quot;</span>/imm32
+<span id="L579" class="LineNr">579 </span>    68/push  <a href='060read.subx.html#L352'>_test-tmp-stream</a>/imm32
+<span id="L580" class="LineNr">580 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L581" class="LineNr">581 </span>    e8/call  <a href='057write.subx.html#L31'>write</a>/disp32
+<span id="L582" class="LineNr">582 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L583" class="LineNr">583 </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="L584" class="LineNr">584 </span>    <span class="subxComment"># perform the write-stream-buffered</span>
+<span id="L585" class="LineNr">585 </span>    <span class="subxS1Comment"># . write-stream-buffered(_test-buffered-file, _test-tmp-stream)</span>
+<span id="L586" class="LineNr">586 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L587" class="LineNr">587 </span>    68/push  <a href='060read.subx.html#L352'>_test-tmp-stream</a>/imm32
+<span id="L588" class="LineNr">588 </span>    68/push  <a href='061read-byte.subx.html#L290'>_test-buffered-file</a>/imm32
+<span id="L589" class="LineNr">589 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L590" class="LineNr">590 </span>    e8/call  <a href='072slice.subx.html#L511'>write-stream-buffered</a>/disp32
+<span id="L591" class="LineNr">591 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L592" class="LineNr">592 </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="L593" class="LineNr">593 </span>    <span class="subxComment"># check that the write happened as expected</span>
+<span id="L594" class="LineNr">594 </span>    <span class="subxS1Comment"># . flush(_test-buffered-file)</span>
+<span id="L595" class="LineNr">595 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L596" class="LineNr">596 </span>    68/push  <a href='061read-byte.subx.html#L290'>_test-buffered-file</a>/imm32
+<span id="L597" class="LineNr">597 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L598" class="LineNr">598 </span>    e8/call  <a href='064write-byte.subx.html#L86'>flush</a>/disp32
+<span id="L599" class="LineNr">599 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L600" class="LineNr">600 </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="L601" class="LineNr">601 </span>    <span class="subxS1Comment"># . check-stream-equal(_test-stream, &quot;abcd&quot;, msg)</span>
+<span id="L602" class="LineNr">602 </span>    <span class="subxS2Comment"># . . push args</span>
+<span id="L603" class="LineNr">603 </span>    68/push  <span class="Constant">&quot;F - test-write-stream-buffered&quot;</span>/imm32
+<span id="L604" class="LineNr">604 </span>    68/push  <span class="Constant">&quot;abcd&quot;</span>/imm32
+<span id="L605" class="LineNr">605 </span>    68/push  <a href='057write.subx.html#L155'>_test-stream</a>/imm32
+<span id="L606" class="LineNr">606 </span>    <span class="subxS2Comment"># . . call</span>
+<span id="L607" class="LineNr">607 </span>    e8/call  <a href='058stream-equal.subx.html#L199'>check-stream-equal</a>/disp32
+<span id="L608" class="LineNr">608 </span>    <span class="subxS2Comment"># . . discard args</span>
+<span id="L609" class="LineNr">609 </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="L610" class="LineNr">610 </span>    <span class="subxS1Comment"># . epilog</span>
+<span id="L611" class="LineNr">611 </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="L612" class="LineNr">612 </span>    5d/pop-to-EBP
+<span id="L613" class="LineNr">613 </span>    c3/return
+<span id="L614" class="LineNr">614 </span>
+<span id="L615" class="LineNr">615 </span>== data
+<span id="L616" class="LineNr">616 </span>
+<span id="L617" class="LineNr">617 </span><span class="subxMinorFunction">_test-slice-data-0</span>:
+<span id="L618" class="LineNr">618 </span>    41/A
+<span id="L619" class="LineNr">619 </span><span class="subxMinorFunction">_test-slice-data-1</span>:
+<span id="L620" class="LineNr">620 </span>    62/b
+<span id="L621" class="LineNr">621 </span><span class="subxMinorFunction">_test-slice-data-2</span>:
+<span id="L622" class="LineNr">622 </span>    63/c
+<span id="L623" class="LineNr">623 </span><span class="subxMinorFunction">_test-slice-data-3</span>:
+<span id="L624" class="LineNr">624 </span>    64/d
+<span id="L625" class="LineNr">625 </span><span class="subxMinorFunction">_test-slice-data-4</span>:
+<span id="L626" class="LineNr">626 </span>
+<span id="L627" class="LineNr">627 </span><span class="subxS1Comment"># . _. vim&#0058;nowrap:textwidth=0</span>
 </pre>
 </body>
 </html>