about summary refs log tree commit diff stats
path: root/subx/062write-byte.subx
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 /subx/062write-byte.subx
parent768093cd94eda44f869f45ea90f941f55c09a0ba (diff)
downloadmu-ca0a598c877a66f03b2dd5301c5d1d6341c12e19.tar.gz
4836
Diffstat (limited to 'subx/062write-byte.subx')
-rw-r--r--subx/062write-byte.subx2
1 files changed, 1 insertions, 1 deletions
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)