From 80f53f4a18d3121445ee98bf405669676c5e7017 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Wed, 10 Jun 2020 23:26:53 -0700 Subject: 6508 - support null exit-descriptor --- apps/assort | Bin 44225 -> 44233 bytes apps/braces | Bin 46088 -> 46096 bytes apps/calls | Bin 50735 -> 50743 bytes apps/crenshaw2-1 | Bin 43576 -> 43574 bytes apps/crenshaw2-1.subx | 10 ++-------- apps/crenshaw2-1b | Bin 44123 -> 44121 bytes apps/crenshaw2-1b.subx | 10 ++-------- apps/dquotes | Bin 47847 -> 47855 bytes apps/factorial | Bin 42669 -> 42677 bytes apps/hex | Bin 46415 -> 46413 bytes apps/hex.subx | 10 ++-------- apps/mu | Bin 270430 -> 270438 bytes apps/pack | Bin 56540 -> 56548 bytes apps/sigils | Bin 58457 -> 58465 bytes apps/survey | Bin 54157 -> 54165 bytes apps/tests | Bin 42997 -> 43005 bytes 16 files changed, 6 insertions(+), 24 deletions(-) (limited to 'apps') diff --git a/apps/assort b/apps/assort index 4531e654..37b188ee 100755 Binary files a/apps/assort and b/apps/assort differ diff --git a/apps/braces b/apps/braces index 6fc70561..d3111278 100755 Binary files a/apps/braces and b/apps/braces differ diff --git a/apps/calls b/apps/calls index a4f41796..500c9009 100755 Binary files a/apps/calls and b/apps/calls differ diff --git a/apps/crenshaw2-1 b/apps/crenshaw2-1 index 842de58d..41429db7 100755 Binary files a/apps/crenshaw2-1 and b/apps/crenshaw2-1 differ diff --git a/apps/crenshaw2-1.subx b/apps/crenshaw2-1.subx index 60c1ed5b..9b1747cb 100644 --- a/apps/crenshaw2-1.subx +++ b/apps/crenshaw2-1.subx @@ -67,15 +67,9 @@ Entry: # run tests if necessary, call 'compile' if not eb/jump $main:end/disp8 $run-main: # - otherwise read a program from stdin and emit its translation to stdout - # var ed/eax: exit-descriptor - 81 5/subop/subtract 3/mod/direct 4/rm32/esp . . . . . 8/imm32 # subtract from esp - 89/copy 3/mod/direct 0/rm32/eax . . . 4/r32/esp . . # copy esp to eax - # configure ed to really exit() - # . ed->target = 0 - c7 0/subop/copy 0/mod/direct 0/rm32/eax . . . . . 0/imm32 # copy to *eax - # compile(Stdin, 1/stdout, 2/stderr, ed) + # . compile(Stdin, 1/stdout, 2/stderr, ed) # . . push args - 50/push-eax/ed + 68/push 0/imm32/exit-descriptor 68/push 2/imm32/stderr 68/push 1/imm32/stdout 68/push Stdin/imm32 diff --git a/apps/crenshaw2-1b b/apps/crenshaw2-1b index 545911df..81bbd4f7 100755 Binary files a/apps/crenshaw2-1b and b/apps/crenshaw2-1b differ diff --git a/apps/crenshaw2-1b.subx b/apps/crenshaw2-1b.subx index 289f91e2..0d17a320 100644 --- a/apps/crenshaw2-1b.subx +++ b/apps/crenshaw2-1b.subx @@ -67,15 +67,9 @@ Entry: # run tests if necessary, call 'compile' if not eb/jump $main:end/disp8 $run-main: # - otherwise read a program from stdin and emit its translation to stdout - # var ed/eax: exit-descriptor - 81 5/subop/subtract 3/mod/direct 4/rm32/esp . . . . . 8/imm32 # subtract from esp - 89/copy 3/mod/direct 0/rm32/eax . . . 4/r32/esp . . # copy esp to eax - # configure ed to really exit() - # . ed->target = 0 - c7 0/subop/copy 0/mod/direct 0/rm32/eax . . . . . 0/imm32 # copy to *eax - # compile(Stdin, 1/stdout, 2/stderr, ed) + # . compile(Stdin, 1/stdout, 2/stderr, 0) # . . push args - 50/push-eax/ed + 68/push 0/imm32/exit-descriptor 68/push 2/imm32/stderr 68/push 1/imm32/stdout 68/push Stdin/imm32 diff --git a/apps/dquotes b/apps/dquotes index 5ae175b8..90bcf0b3 100755 Binary files a/apps/dquotes and b/apps/dquotes differ diff --git a/apps/factorial b/apps/factorial index df1bb158..79c0e8da 100755 Binary files a/apps/factorial and b/apps/factorial differ diff --git a/apps/hex b/apps/hex index fd3ae016..794ce191 100755 Binary files a/apps/hex and b/apps/hex differ diff --git a/apps/hex.subx b/apps/hex.subx index 5dc8c023..4c95fdc5 100644 --- a/apps/hex.subx +++ b/apps/hex.subx @@ -54,15 +54,9 @@ Entry: # run tests if necessary, convert stdin if not eb/jump $subx-hex-main:end/disp8 $subx-hex-main:interactive: # - otherwise convert stdin - # var ed/eax: exit-descriptor - 81 5/subop/subtract 3/mod/direct 4/rm32/esp . . . . . 8/imm32 # subtract from esp - 89/copy 3/mod/direct 0/rm32/eax . . . 4/r32/esp . . # copy esp to eax - # configure ed to really exit() - # . ed->target = 0 - c7 0/subop/copy 0/mod/direct 0/rm32/eax . . . . . 0/imm32 # copy to *eax - # subx-hex(Stdin, Stdout, Stderr, ed) + # . subx-hex(Stdin, Stdout, Stderr, 0) # . . push args - 50/push-eax/ed + 68/push 0/imm32/exit-descriptor 68/push Stderr/imm32 68/push Stdout/imm32 68/push Stdin/imm32 diff --git a/apps/mu b/apps/mu index dd1e624a..65375c3c 100755 Binary files a/apps/mu and b/apps/mu differ diff --git a/apps/pack b/apps/pack index ad0f2173..ad15dd42 100755 Binary files a/apps/pack and b/apps/pack differ diff --git a/apps/sigils b/apps/sigils index 201c69fe..b2ab77cf 100755 Binary files a/apps/sigils and b/apps/sigils differ diff --git a/apps/survey b/apps/survey index 91a05441..0d94f444 100755 Binary files a/apps/survey and b/apps/survey differ diff --git a/apps/tests b/apps/tests index aa317d7c..5f431146 100755 Binary files a/apps/tests and b/apps/tests differ -- cgit 1.4.1-2-gfad0