about summary refs log tree commit diff stats
path: root/subx/056write.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-11-24 13:21:33 -0800
committerKartik Agaram <vc@akkartik.com>2018-11-24 13:21:33 -0800
commitd9820d82f8d43ce69416026cafa0f17a806e60b9 (patch)
treea5fd0d5dbc5a56988e49cad1472d1c4e0989e592 /subx/056write.subx
parent9f3c5187b28b7477d75e957e8c6337e8bf9d9998 (diff)
downloadmu-d9820d82f8d43ce69416026cafa0f17a806e60b9.tar.gz
4767
Diffstat (limited to 'subx/056write.subx')
-rw-r--r--subx/056write.subx30
1 files changed, 15 insertions, 15 deletions
diff --git a/subx/056write.subx b/subx/056write.subx
index 67115d5a..045a8187 100644
--- a/subx/056write.subx
+++ b/subx/056write.subx
@@ -54,24 +54,24 @@ $write:fake:
   53/push-EBX
   # ECX = f
   8b/copy                         1/mod/*+disp8   4/rm32/sib    5/base/EBP  4/index/none              1/r32/ECX   8/disp8         .                 # copy *(EBP+8) to ECX
-  # EDX = f.write
+  # EDX = f->write
   8b/copy                         0/mod/indirect  1/rm32/ECX    .           .             .           2/r32/EDX   .               .                 # copy *ECX to EDX
-  # EBX = f.length
+  # EBX = f->length
   8b/copy                         1/mod/*+disp8   1/rm32/ECX    .           .             .           3/r32/EBX   8/disp8         .                 # copy *(ECX+8) to EBX
-  # EAX = _append-3(&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]
+    # push &f->data[f->length]
   8d/copy-address                 1/mod/*+disp8   4/rm32/sib    1/base/ECX  3/index/EBX   .           3/r32/EBX   0xc/disp8       .                 # copy ECX+EBX+12 to EBX
   53/push-EBX
-    # push &f.data[f.write]
+    # push &f->data[f->write]
   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-3/disp32
     # discard args
   81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               0xc/imm32         # add to ESP
-  # f.write += EAX
+  # f->write += EAX
   01/add                          0/mod/indirect  1/rm32/ECX    .           .             .           0/r32/EAX   .               .                 # add EAX to *ECX
   # restore registers
   5b/pop-to-EBX
@@ -92,15 +92,15 @@ clear-stream:  # f : (address stream) -> <void>
   51/push-ECX
   # EAX = f
   8b/copy                         1/mod/*+disp8   4/rm32/sib    5/base/EBP  4/index/none              0/r32/EAX   8/disp8         .                 # copy *(EBP+8) to EAX
-  # ECX = f.length
+  # ECX = f->length
   8b/copy                         1/mod/*+disp8   0/rm32/EAX    .           .             .           1/r32/ECX   8/disp8         .                 # copy *(EAX+8) to ECX
-  # ECX = &f.data[f.length]
+  # ECX = &f->data[f->length]
   8d/copy-address                 1/mod/*+disp8   4/rm32/sib    0/base/EAX  1/index/ECX   .           1/r32/ECX   0xc/disp8       .                 # copy EAX+ECX+12 to ECX
-  # f.write = 0
+  # f->write = 0
   c7/copy                         0/mod/direct    0/rm32/EAX    .           .             .           .           .               0/imm32           # copy to *EAX
-  # f.read = 0
+  # f->read = 0
   c7/copy                         1/mod/*+disp8   0/rm32/EAX    .           .             .           .           4/disp8         0/imm32           # copy to *(EAX+4)
-  # EAX = f.data
+  # EAX = f->data
   81          0/subop/add         3/mod/direct    0/rm32/EAX    .           .             .           .           .               0xc/imm32         # add to EAX
   # while (true)
 $clear-stream:loop:
@@ -146,11 +146,11 @@ test-write-single:
   e8/call  check-ints-equal/disp32
     # discard args
   81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               0xc/imm32         # add to ESP
-  # check-ints-equal(*_test-stream.data, 41/A 62/b 00 00, msg)
+  # check-ints-equal(*_test-stream->data, 41/A 62/b 00 00, msg)
     # push args
   68/push  "F - test-write-single"/imm32
   68/push  0x006241/imm32/Ab
-    # push *_test-stream.data
+    # push *_test-stream->data
   b8/copy-to-EAX  _test-stream/imm32
   ff          6/subop/push        1/mod/*+disp8   0/rm32/EAX    .           .             .           .           0xc/disp8       .                 # push *(EAX+12)
     # call
@@ -184,11 +184,11 @@ test-write-appends:
   e8/call  write/disp32
     # discard args
   81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               8/imm32           # add to ESP
-  # check-ints-equal(*_test-stream.data, 43/C 44/D 00 00, msg)
+  # check-ints-equal(*_test-stream->data, 43/C 44/D 00 00, msg)
     # push args
   68/push  "F - test-write-appends"/imm32
   68/push  0x00004443/imm32/C-D
-    # push *_test-stream.data
+    # push *_test-stream->data
   b8/copy-to-EAX  _test-stream/imm32
   ff          6/subop/push        1/mod/*+disp8   0/rm32/EAX    .           .             .           .           0xc/disp8       .                 # push *(EAX+12)
     # call