From 3943b27a003f31e5d3779e60609361db642478ad Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Thu, 18 Jul 2019 23:02:00 -0700 Subject: 5417 Clean up. --- subx/apps/survey | Bin 41196 -> 41174 bytes subx/apps/survey.subx | 16 ++++++++-------- subx/examples/ex6.subx | 1 - 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/subx/apps/survey b/subx/apps/survey index 92da0e6b..61e2f974 100755 Binary files a/subx/apps/survey and b/subx/apps/survey differ diff --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 -- cgit 1.4.1-2-gfad0