From 800320a70c981008302af56b2f35a142c1101401 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Wed, 17 Oct 2018 06:47:28 -0700 Subject: [PATCH] 4708 --- subx/055trace.subx | 4 ++-- subx/056write.subx | 4 ++-- 2 files changed, 4 insertions(+), 4 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: diff --git a/subx/056write.subx b/subx/056write.subx index 46cc985b..aaf04b9d 100644 --- a/subx/056write.subx +++ b/subx/056write.subx @@ -92,7 +92,7 @@ $write:else: # EDX = *EBX # s.length # *EAX = *EAX + EDX # update f.write (allowed to go past f.length) # # do this here just because it's convenient - # EAX = EAX+8+ESI # dest = &f.data[f.write] + # EAX = EAX+8+ESI # dest = &f.data[oldw] # ESI = EBX+4+EDX # srcend = &s.data[s.length] # EBX = EBX+4 # src = &s.data[0] # @@ -117,7 +117,7 @@ $write:else: 8d/copy-address 1/mod/*+disp8 4/rm32/sib 0/base/EAX 6/index/ESI . 0/r32/EAX 8/disp8 . # copy EAX+ESI+8 to EAX # ESI/srcend = &s.data[s.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 = &s.data + # EBX/src = &s.data[0] 81 0/subop/add 3/mod/direct 3/rm32/EBX . . . . . 4/imm32 # add to EBX # while (true) $write:loop: