about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-12-04 09:59:42 -0800
committerKartik Agaram <vc@akkartik.com>2018-12-04 09:59:42 -0800
commitca0a598c877a66f03b2dd5301c5d1d6341c12e19 (patch)
tree76be74a61eced049ba8e902d23d5457d61281094
parent768093cd94eda44f869f45ea90f941f55c09a0ba (diff)
downloadmu-ca0a598c877a66f03b2dd5301c5d1d6341c12e19.tar.gz
4836
-rw-r--r--html/subx/062write-byte.subx.html2
-rw-r--r--subx/062write-byte.subx2
2 files changed, 2 insertions, 2 deletions
diff --git a/html/subx/062write-byte.subx.html b/html/subx/062write-byte.subx.html
index f06ea8b9..d544a136 100644
--- a/html/subx/062write-byte.subx.html
+++ b/html/subx/062write-byte.subx.html
@@ -112,7 +112,7 @@ if ('onhashchange' in window) {
 <span id="L47" class="LineNr"> 47 </span>    8b/copy                         1/mod/*+disp8   4/rm32/sib    5/base/EBP  4/index/none <span class="CommentedCode"> . </span>          6/r32/ESI   8/disp8        <span class="CommentedCode"> . </span>                <span class="subxComment"># copy *(EBP+8) to ESI</span>
 <span id="L48" class="LineNr"> 48 </span>    <span class="subxComment"># ECX = f-&gt;write</span>
 <span id="L49" class="LineNr"> 49 </span>    8b/copy                         1/mod/*+disp8   6/rm32/ESI   <span class="CommentedCode"> . </span>         <span class="CommentedCode"> . </span>           <span class="CommentedCode"> . </span>          1/r32/ECX   4/disp8        <span class="CommentedCode"> . </span>                <span class="subxComment"># copy *(ESI+4) to ECX</span>
-<span id="L50" class="LineNr"> 50 </span>    <span class="subxComment"># if (f-&gt;write &gt;= f-&gt;length) flush and clear stream</span>
+<span id="L50" class="LineNr"> 50 </span>    <span class="subxComment"># if (f-&gt;write &gt;= f-&gt;length) flush and clear f's stream</span>
 <span id="L51" class="LineNr"> 51 </span>    3b/compare                      1/mod/*+disp8   6/rm32/ESI   <span class="CommentedCode"> . </span>         <span class="CommentedCode"> . </span>           <span class="CommentedCode"> . </span>          1/r32/ECX   0xc/disp8      <span class="CommentedCode"> . </span>                <span class="subxComment"># compare ECX with *(ESI+12)</span>
 <span id="L52" class="LineNr"> 52 </span>    7c/jump-if-lesser  $write-byte:to-stream/disp8
 <span id="L53" class="LineNr"> 53 </span>    <span class="subxS1Comment"># . flush(f)</span>
diff --git a/subx/062write-byte.subx b/subx/062write-byte.subx
index de32428e..9451ee46 100644
--- a/subx/062write-byte.subx
+++ b/subx/062write-byte.subx
@@ -47,7 +47,7 @@ write-byte:  # f : (address buffered-file), n : num -> <void>
     8b/copy                         1/mod/*+disp8   4/rm32/sib    5/base/EBP  4/index/none  .           6/r32/ESI   8/disp8         .                 # copy *(EBP+8) to ESI
     # ECX = f->write
     8b/copy                         1/mod/*+disp8   6/rm32/ESI    .           .             .           1/r32/ECX   4/disp8         .                 # copy *(ESI+4) to ECX
-    # if (f->write >= f->length) flush and clear stream
+    # if (f->write >= f->length) flush and clear f's stream
     3b/compare                      1/mod/*+disp8   6/rm32/ESI    .           .             .           1/r32/ECX   0xc/disp8       .                 # compare ECX with *(ESI+12)
     7c/jump-if-lesser  $write-byte:to-stream/disp8
     # . flush(f)