about summary refs log tree commit diff stats
path: root/apps/survey.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-11-26 22:11:23 -0800
committerKartik Agaram <vc@akkartik.com>2019-11-26 22:11:23 -0800
commit70187b1c01a0540bc677fbbfeaef129549d3075d (patch)
treeac869a1cabf2d0bf839cfbe93e22d304662e4693 /apps/survey.subx
parent55628fb6932c0468ca7f20db6ed3ec454be8c91f (diff)
downloadmu-70187b1c01a0540bc677fbbfeaef129549d3075d.tar.gz
5765
A couple more primitives now working. In the process I ran into an issue
with some buffer filling up when running ntranslate. Isolating it to survey.subx
was straightforward, but --trace ran out of RAM, and --trace --dump ran
out of (7GB of) disk. In the end what helped was just repeatedly inserting
exits at different points, and I realized there was a magic number that
hadn't been turned into a named constant.
Diffstat (limited to 'apps/survey.subx')
-rw-r--r--apps/survey.subx6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/survey.subx b/apps/survey.subx
index 87d519f3..70557261 100644
--- a/apps/survey.subx
+++ b/apps/survey.subx
@@ -23,7 +23,7 @@
 # The output is the stream of bytes without segment headers or label definitions,
 # and with label references replaced with numeric values/displacements.
 #
-#   $ cat x  |./subx run apps/assort
+#   $ cat x  |./subx run apps/survey
 #   ...ELF header bytes...
 #   # ELF header above will specify that code segment begins at this offset
 #   aa bb nn  # some computed address
@@ -53,9 +53,9 @@ Entry:  # run tests if necessary, convert stdin if not
     e8/call  new-segment/disp32
     # . . discard args
     81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               8/imm32           # add to esp
-    # initialize-trace-stream(256KB)
+    # initialize-trace-stream(Trace-size)
     # . . push args
-    68/push  0x40000/imm32/256KB
+    68/push  Trace-size/imm32
     # . . call
     e8/call  initialize-trace-stream/disp32
     # . . discard args