about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--subx/056trace.subx1
1 files changed, 1 insertions, 0 deletions
diff --git a/subx/056trace.subx b/subx/056trace.subx
index aea4a135..cf177c3f 100644
--- a/subx/056trace.subx
+++ b/subx/056trace.subx
@@ -328,6 +328,7 @@ trace-scan:  # line : string -> result/EAX : boolean
     # ESI = *Trace-stream
     8b/copy                         0/mod/indirect  5/rm32/.disp32            .             .           6/r32/ESI   Trace-stream/disp32               # copy *Trace-stream to ESI
     # ECX = Trace-stream->write
+    8b/copy                         0/mod/indirect  6/rm32/ESI    .           .             .           1/r32/ECX                   .                 # copy *ESI to ECX
 $trace-scan:loop:
     # if (Trace-stream->read >= Trace-stream->write) return false
     39/compare                      1/mod/*+disp8   6/rm32/ESI    .           .             .           1/r32/ECX   4/disp8         .                 # compare ECX with *(ESI+4)