about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-07-18 23:02:00 -0700
committerKartik Agaram <vc@akkartik.com>2019-07-18 23:29:36 -0700
commit3943b27a003f31e5d3779e60609361db642478ad (patch)
tree4bc400c2a67a5f01fed92b732cbe2fc0d2ab8dfb
parent8da4c8c3006c7d60d92a951a2a096449dc398e68 (diff)
downloadmu-3943b27a003f31e5d3779e60609361db642478ad.tar.gz
5417
Clean up.
-rwxr-xr-xsubx/apps/surveybin41196 -> 41174 bytes
-rw-r--r--subx/apps/survey.subx16
-rw-r--r--subx/examples/ex6.subx1
3 files changed, 8 insertions, 9 deletions
diff --git a/subx/apps/survey b/subx/apps/survey
index 92da0e6b..61e2f974 100755
--- a/subx/apps/survey
+++ b/subx/apps/survey
Binary files differdiff --git a/subx/apps/survey.subx b/subx/apps/survey.subx
index 0f5428bb..f25c62d2 100644
--- a/subx/apps/survey.subx
+++ b/subx/apps/survey.subx
@@ -87,14 +87,14 @@ $run-main:
     e8/call  convert/disp32
     # . . discard args
     81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               8/imm32           # add to ESP
-    # . write-stream(2/stderr, Trace-stream)
-    # . . push args
-    ff          6/subop/push        0/mod/indirect  5/rm32/.disp32            .             .           .           Trace-stream/disp32               # push *Trace-stream
-    68/push  2/imm32/stderr
-    # . . call
-    e8/call  write-stream/disp32
-    # . . discard args
-    81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               8/imm32           # add to ESP
+#?     # . write-stream(2/stderr, Trace-stream)
+#?     # . . push args
+#?     ff          6/subop/push        0/mod/indirect  5/rm32/.disp32            .             .           .           Trace-stream/disp32               # push *Trace-stream
+#?     68/push  2/imm32/stderr
+#?     # . . call
+#?     e8/call  write-stream/disp32
+#?     # . . discard args
+#?     81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               8/imm32           # add to ESP
     # . syscall(exit, 0)
     bb/copy-to-EBX  0/imm32
 $main:end:
diff --git a/subx/examples/ex6.subx b/subx/examples/ex6.subx
index d690d378..a90f11df 100644
--- a/subx/examples/ex6.subx
+++ b/subx/examples/ex6.subx
@@ -17,7 +17,6 @@ Entry:
     # . initialize X (location to write result to)
     b9/copy-to-ECX  X/imm32
     # . initialize Size
-# HERE
     8b/copy                         0/mod/indirect  5/rm32/.disp32            .             .           2/r32/EDX   Size/disp32     .                 # copy *Size to EDX
     # . syscall
     b8/copy-to-EAX  4/imm32/write