diff options
Diffstat (limited to 'subx')
-rw-r--r-- | subx/062write-byte.subx | 2 |
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) |