about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--055stream.subx2
-rw-r--r--run_one_test.subx2
2 files changed, 3 insertions, 1 deletions
diff --git a/055stream.subx b/055stream.subx
index 1250ffdc..15d82ce6 100644
--- a/055stream.subx
+++ b/055stream.subx
@@ -31,6 +31,8 @@ clear-stream:  # f: (addr stream byte)
     c7          0/subop/copy        0/mod/direct    0/rm32/eax    .           .             .           .           .               0/imm32           # copy to *eax
     # f->read = 0
     c7          0/subop/copy        1/mod/*+disp8   0/rm32/eax    .           .             .           .           4/disp8         0/imm32           # copy to *(eax+4)
+    # - clear all stream data
+    # - this isn't strictly necessary, and it can slow things down *a lot*, but better safe than sorry.
     # var curr/eax: (addr byte) = f->data
     81          0/subop/add         3/mod/direct    0/rm32/eax    .           .             .           .           .               0xc/imm32         # add to eax
 $clear-stream:loop:
diff --git a/run_one_test.subx b/run_one_test.subx
index def4c430..37d72ea0 100644
--- a/run_one_test.subx
+++ b/run_one_test.subx
@@ -9,7 +9,7 @@ Entry:
     # Heap = new-segment(64KB)
     # . . push args
     68/push  Heap/imm32
-    68/push  0x10000/imm32/64KB
+    ff          6/subop/push        0/mod/indirect  5/rm32/.disp32            .             .           .           Heap-size/disp32                  # push *Heap-size
     # . . call
     e8/call  new-segment/disp32
     # . . discard args
=c1041a26ad35c22578bee34d368568d6f6c5dac7'>^
8b9f1750 ^
8cb4e365 ^
8cb4e365 ^






795f5244 ^
166e3c0d ^



8cb4e365 ^




1c57bab6 ^

ec99eb7a ^
1c57bab6 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34