about summary refs log tree commit diff stats
path: root/html/065write-buffered.subx.html
diff options
context:
space:
mode:
Diffstat (limited to 'html/065write-buffered.subx.html')
-rw-r--r--html/065write-buffered.subx.html22
1 files changed, 11 insertions, 11 deletions
diff --git a/html/065write-buffered.subx.html b/html/065write-buffered.subx.html
index 755994e9..840b92c9 100644
--- a/html/065write-buffered.subx.html
+++ b/html/065write-buffered.subx.html
@@ -16,14 +16,14 @@ a { color:inherit; }
 * { font-size:12pt; font-size: 1em; }
 .subxComment { color: #005faf; }
 .subxS2Comment { color: #8a8a8a; }
+.subxTest { color: #5f8700; }
+.subxFunction { color: #af5f00; text-decoration: underline; }
 .LineNr { }
-.SpecialChar { color: #d70000; }
 .subxS1Comment { color: #0000af; }
-.subxFunction { color: #af5f00; text-decoration: underline; }
+.SpecialChar { color: #d70000; }
 .Normal { color: #000000; background-color: #c6c6c6; padding-bottom: 1px; }
-.subxH1Comment { color: #005faf; text-decoration: underline; }
 .Constant { color: #008787; }
-.subxTest { color: #5f8700; }
+.subxH1Comment { color: #005faf; text-decoration: underline; }
 -->
 </style>
 
@@ -69,9 +69,9 @@ if ('onhashchange' in window) {
 <span id="L8" class="LineNr">  8 </span><span class="subxFunction">write-buffered</span>:  <span class="subxComment"># f: (addr buffered-file), msg: (addr array byte)</span>
 <span id="L9" class="LineNr">  9 </span>    <span class="subxComment"># pseudocode:</span>
 <span id="L10" class="LineNr"> 10 </span>    <span class="subxComment">#   in = msg-&gt;data</span>
-<span id="L11" class="LineNr"> 11 </span>    <span class="subxComment">#   inend = &amp;msg-&gt;data[msg-&gt;length]</span>
+<span id="L11" class="LineNr"> 11 </span>    <span class="subxComment">#   inend = &amp;msg-&gt;data[msg-&gt;size]</span>
 <span id="L12" class="LineNr"> 12 </span>    <span class="subxComment">#   while (in &lt; inend)</span>
-<span id="L13" class="LineNr"> 13 </span>    <span class="subxComment">#     if f-&gt;write &gt;= f-&gt;length</span>
+<span id="L13" class="LineNr"> 13 </span>    <span class="subxComment">#     if f-&gt;write &gt;= f-&gt;size</span>
 <span id="L14" class="LineNr"> 14 </span>    <span class="subxComment">#       flush(f)</span>
 <span id="L15" class="LineNr"> 15 </span>    <span class="subxComment">#       clear-stream(f)</span>
 <span id="L16" class="LineNr"> 16 </span>    <span class="subxComment">#     c = *in</span>
@@ -83,7 +83,7 @@ if ('onhashchange' in window) {
 <span id="L22" class="LineNr"> 22 </span>    <span class="subxComment">#   in: esi</span>
 <span id="L23" class="LineNr"> 23 </span>    <span class="subxComment">#   inend: ecx</span>
 <span id="L24" class="LineNr"> 24 </span>    <span class="subxComment">#   f: edi</span>
-<span id="L25" class="LineNr"> 25 </span>    <span class="subxComment">#   f-&gt;length: edx</span>
+<span id="L25" class="LineNr"> 25 </span>    <span class="subxComment">#   f-&gt;size: edx</span>
 <span id="L26" class="LineNr"> 26 </span>    <span class="subxComment">#   f-&gt;write: ebx (cached; need to keep in sync)</span>
 <span id="L27" class="LineNr"> 27 </span>    <span class="subxComment">#   c: eax</span>
 <span id="L28" class="LineNr"> 28 </span>    <span class="subxComment">#</span>
@@ -101,12 +101,12 @@ if ('onhashchange' in window) {
 <span id="L40" class="LineNr"> 40 </span>    8b/copy                         1/mod/*+disp8   5/rm32/ebp   <span class="Normal"> . </span>         <span class="Normal"> . </span>                        0/r32/eax   0xc/disp8      <span class="Normal"> . </span>                <span class="subxComment"># copy *(ebp+12) to eax</span>
 <span id="L41" class="LineNr"> 41 </span>    <span class="subxComment"># var in/esi: (addr byte) = msg-&gt;data</span>
 <span id="L42" class="LineNr"> 42 </span>    8d/copy-address                 1/mod/*+disp8   0/rm32/eax   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>          6/r32/esi   4/disp8        <span class="Normal"> . </span>                <span class="subxComment"># copy eax+4 to esi</span>
-<span id="L43" class="LineNr"> 43 </span>    <span class="subxComment"># var inend/ecx: (addr byte) = &amp;msg-&gt;data[msg-&gt;length]</span>
+<span id="L43" class="LineNr"> 43 </span>    <span class="subxComment"># var inend/ecx: (addr byte) = &amp;msg-&gt;data[msg-&gt;size]</span>
 <span id="L44" class="LineNr"> 44 </span>    8b/copy                         0/mod/indirect  0/rm32/eax   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>          1/r32/ecx  <span class="Normal"> . </span>             <span class="Normal"> . </span>                <span class="subxComment"># copy *eax to ecx</span>
 <span id="L45" class="LineNr"> 45 </span>    8d/copy-address                 0/mod/indirect  4/rm32/sib    6/base/esi  1/index/ecx  <span class="Normal"> . </span>          1/r32/ecx  <span class="Normal"> . </span>             <span class="Normal"> . </span>                <span class="subxComment"># copy esi+ecx to ecx</span>
 <span id="L46" class="LineNr"> 46 </span>    <span class="subxComment"># edi = f</span>
 <span id="L47" class="LineNr"> 47 </span>    8b/copy                         1/mod/*+disp8   5/rm32/ebp   <span class="Normal"> . </span>         <span class="Normal"> . </span>                        7/r32/edi   8/disp8        <span class="Normal"> . </span>                <span class="subxComment"># copy *(ebp+8) to edi</span>
-<span id="L48" class="LineNr"> 48 </span>    <span class="subxComment"># edx = f-&gt;length</span>
+<span id="L48" class="LineNr"> 48 </span>    <span class="subxComment"># edx = f-&gt;size</span>
 <span id="L49" class="LineNr"> 49 </span>    8b/copy                         1/mod/*+disp8   7/rm32/edi   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>          2/r32/edx   0xc/disp8      <span class="Normal"> . </span>                <span class="subxComment"># copy *(edi+12) to edx</span>
 <span id="L50" class="LineNr"> 50 </span>    <span class="subxComment"># ebx = f-&gt;write</span>
 <span id="L51" class="LineNr"> 51 </span>    8b/copy                         1/mod/*+disp8   7/rm32/edi   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>          3/r32/ebx   4/disp8        <span class="Normal"> . </span>                <span class="subxComment"># copy *(edi+4) to ebx</span>
@@ -114,7 +114,7 @@ if ('onhashchange' in window) {
 <span id="L53" class="LineNr"> 53 </span>    <span class="subxComment"># if (in &gt;= inend) break</span>
 <span id="L54" class="LineNr"> 54 </span>    39/compare                      3/mod/direct    6/rm32/esi   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>          1/r32/ecx  <span class="Normal"> . </span>             <span class="Normal"> . </span>                <span class="subxComment"># compare esi with ecx</span>
 <span id="L55" class="LineNr"> 55 </span>    73/jump-if-addr&gt;=  $write-buffered:loop-end/disp8
-<span id="L56" class="LineNr"> 56 </span>    <span class="subxComment"># if (f-&gt;write &gt;= f-&gt;length) flush and clear f's stream</span>
+<span id="L56" class="LineNr"> 56 </span>    <span class="subxComment"># if (f-&gt;write &gt;= f-&gt;size) flush and clear f's stream</span>
 <span id="L57" class="LineNr"> 57 </span>    39/compare                      3/mod/direct    3/rm32/ebx   <span class="Normal"> . </span>         <span class="Normal"> . </span>           <span class="Normal"> . </span>          2/r32/edx  <span class="Normal"> . </span>             <span class="Normal"> . </span>                <span class="subxComment"># compare ebx with edx</span>
 <span id="L58" class="LineNr"> 58 </span>    7c/jump-if-&lt;  $write-buffered:to-stream/disp8
 <span id="L59" class="LineNr"> 59 </span>    <span class="subxS1Comment"># . persist f-&gt;write</span>
@@ -276,7 +276,7 @@ if ('onhashchange' in window) {
 <span id="L215" class="LineNr">215 </span>    0/imm32
 <span id="L216" class="LineNr">216 </span>    <span class="subxComment">#   current read index</span>
 <span id="L217" class="LineNr">217 </span>    0/imm32
-<span id="L218" class="LineNr">218 </span>    <span class="subxComment">#   length</span>
+<span id="L218" class="LineNr">218 </span>    <span class="subxComment">#   size</span>
 <span id="L219" class="LineNr">219 </span>    8/imm32
 <span id="L220" class="LineNr">220 </span>    <span class="subxComment">#   data</span>
 <span id="L221" class="LineNr">221 </span>    00 00 00 00 00 00 00 00  <span class="subxComment"># 8 bytes</span>