From ca0a598c877a66f03b2dd5301c5d1d6341c12e19 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 4 Dec 2018 09:59:42 -0800 Subject: 4836 --- subx/062write-byte.subx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subx') 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 -> 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) -- cgit 1.4.1-2-gfad0