From 22a9035e82f6584e86f0400353f5013029b6a6e1 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 21 Jul 2019 00:25:00 -0700 Subject: 5434 --- subx/apps/assort | Bin 34112 -> 34166 bytes subx/apps/dquotes | Bin 40465 -> 40519 bytes subx/apps/pack | Bin 46765 -> 46819 bytes subx/apps/subx-common.subx | 20 ++++++++++++++++++-- subx/apps/survey | Bin 42761 -> 42815 bytes subx/apps/tests | Bin 32925 -> 32979 bytes 6 files changed, 18 insertions(+), 2 deletions(-) (limited to 'subx') diff --git a/subx/apps/assort b/subx/apps/assort index 64ac8cea..0afd810e 100755 Binary files a/subx/apps/assort and b/subx/apps/assort differ diff --git a/subx/apps/dquotes b/subx/apps/dquotes index eeb0fafb..a97ed285 100755 Binary files a/subx/apps/dquotes and b/subx/apps/dquotes differ diff --git a/subx/apps/pack b/subx/apps/pack index 352749c4..5c2aba74 100755 Binary files a/subx/apps/pack and b/subx/apps/pack differ diff --git a/subx/apps/subx-common.subx b/subx/apps/subx-common.subx index 0e5eb63c..962053f7 100644 --- a/subx/apps/subx-common.subx +++ b/subx/apps/subx-common.subx @@ -120,6 +120,14 @@ $get:abort: e8/call _write/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP + # . _write(2/stderr, "\n") + # . . push args + 68/push "\n"/imm32 + 68/push 2/imm32/stderr + # . . call + e8/call _write/disp32 + # . . discard args + 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP # . syscall(exit, 1) bb/copy-to-EBX 1/imm32 b8/copy-to-EAX 1/imm32/exit @@ -289,6 +297,14 @@ $get-slice:abort: e8/call flush/disp32 # . . discard args 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # add to ESP + # . _write(2/stderr, "\n") + # . . push args + 68/push "\n"/imm32 + 68/push 2/imm32/stderr + # . . call + e8/call _write/disp32 + # . . discard args + 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP # . syscall(exit, 1) bb/copy-to-EBX 1/imm32 b8/copy-to-EAX 1/imm32/exit @@ -494,7 +510,7 @@ $get-or-insert:end: $get-or-insert:abort: # . _write(2/stderr, error) # . . push args - 68/push "get-or-insert: table is full"/imm32 + 68/push "get-or-insert: table is full\n"/imm32 68/push 2/imm32/stderr # . . call e8/call _write/disp32 @@ -755,7 +771,7 @@ $leaky-get-or-insert-slice:end: $leaky-get-or-insert-slice:abort: # . _write(2/stderr, error) # . . push args - 68/push "leaky-get-or-insert-slice: table is full"/imm32 + 68/push "leaky-get-or-insert-slice: table is full\n"/imm32 68/push 2/imm32/stderr # . . call e8/call _write/disp32 diff --git a/subx/apps/survey b/subx/apps/survey index 0b6c2dde..7150b3b4 100755 Binary files a/subx/apps/survey and b/subx/apps/survey differ diff --git a/subx/apps/tests b/subx/apps/tests index 511d691c..47d45649 100755 Binary files a/subx/apps/tests and b/subx/apps/tests differ -- cgit 1.4.1-2-gfad0