about summary refs log tree commit diff stats
path: root/subx/055trace.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-10-17 06:47:28 -0700
committerKartik Agaram <vc@akkartik.com>2018-10-17 06:47:28 -0700
commit800320a70c981008302af56b2f35a142c1101401 (patch)
treef0f82d6d68eef2b43019361ddd4ecb536ccb4dda /subx/055trace.subx
parent3d6450f216f98a5348f86542444737c0a6178fc4 (diff)
downloadmu-800320a70c981008302af56b2f35a142c1101401.tar.gz
4708
Diffstat (limited to 'subx/055trace.subx')
-rw-r--r--subx/055trace.subx4
1 files changed, 2 insertions, 2 deletions
diff --git a/subx/055trace.subx b/subx/055trace.subx
index f5e3d7bf..641c3ef6 100644
--- a/subx/055trace.subx
+++ b/subx/055trace.subx
@@ -114,7 +114,7 @@ trace:  # t : (address trace-stream), line : string
   #   *EAX = *EAX + EDX # update t.write  (allowed to go past t.length)
   #                     # do this here just because it's convenient
   #   ++ *EAX  # for the newline
-  #   EAX = EAX+12+ESI  # dest = &t.data[t.write]
+  #   EAX = EAX+12+ESI  # dest = &t.data[oldw]
   #   ESI = EBX+4+EDX   # srcend = &line.data[line.length]
   #   EBX = EBX+4       # src = &line.data[0]
   #
@@ -138,7 +138,7 @@ trace:  # t : (address trace-stream), line : string
   8d/copy-address                 1/mod/*+disp8   4/rm32/sib    0/base/EAX  6/index/ESI   .           0/r32/EAX   0xc/disp8       .                 # copy EAX+ESI+12 to EAX
   # ESI/srcend = &line.data[line.length]
   8d/copy-address                 1/mod/*+disp8   4/rm32/sib    3/base/EBX  2/index/EDX   .           6/r32/ESI   4/disp8         .                 # copy EBX+EDX+4 to ESI
-  # EBX/src = &line.data
+  # EBX/src = &line.data[0]
   81          0/subop/add         3/mod/direct    3/rm32/EBX    .           .             .           .           .               4/imm32           # add to EBX
   # while (true)
 $trace:loop: