about summary refs log tree commit diff stats
path: root/subx/056write.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-10-30 22:36:52 -0700
committerKartik Agaram <vc@akkartik.com>2018-10-30 22:36:52 -0700
commitdd63f4dcb43a4271e620a125c4110a72e25f65a9 (patch)
tree0ee4bfcf6a7c8045d29120c5b5e9c7c18e82d4ad /subx/056write.subx
parent0e6f3d086ec310e65c13df8e003eb74552ad1479 (diff)
downloadmu-dd63f4dcb43a4271e620a125c4110a72e25f65a9.tar.gz
4738
Diffstat (limited to 'subx/056write.subx')
-rw-r--r--subx/056write.subx4
1 files changed, 2 insertions, 2 deletions
diff --git a/subx/056write.subx b/subx/056write.subx
index 7ac0dfd0..9cb7a3c7 100644
--- a/subx/056write.subx
+++ b/subx/056write.subx
@@ -70,7 +70,7 @@ $write:fake:
   8b/copy                         0/mod/indirect  1/rm32/ECX    .           .             .           2/r32/EDX   .               .                 # copy *ECX to EDX
   # EBX = f.length
   8b/copy                         1/mod/*+disp8   1/rm32/ECX    .           .             .           3/r32/EBX   8/disp8         .                 # copy *(ECX+8) to EBX
-  # EAX = _append(&f.data[f.write], &f.data[f.length], s)
+  # EAX = _append-3(&f.data[f.write], &f.data[f.length], s)
     # push s
   ff          6/subop/push        1/mod/*+disp8   4/rm32/sib    5/base/EBP  4/index/none  .           .           0xc/disp8       .                 # push *(EBP+12)
     # push &f.data[f.length]
@@ -80,7 +80,7 @@ $write:fake:
   8d/copy-address                 1/mod/*+disp8   4/rm32/sib    1/base/ECX  2/index/EDX   .           3/r32/EBX   0xc/disp8       .                 # copy ECX+EDX+12 to EBX
   53/push-EBX
     # call
-  e8/call  _append/disp32
+  e8/call  _append-3/disp32
     # discard args
   81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               0xc/imm32         # add to ESP
   # f.write += EAX