about summary refs log tree commit diff stats
path: root/apps/pack.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-06-08 00:11:24 -0700
committerKartik Agaram <vc@akkartik.com>2020-06-08 00:11:24 -0700
commitbc597793389185a804dd4728fe488f062bb58783 (patch)
tree8f77495aef17520d6faa40a9eacc7937a93c7738 /apps/pack.subx
parent2d0c3b3e68ef76cf9e78bedac231c08b33277566 (diff)
downloadmu-bc597793389185a804dd4728fe488f062bb58783.tar.gz
6503
Diffstat (limited to 'apps/pack.subx')
-rw-r--r--apps/pack.subx14
1 files changed, 3 insertions, 11 deletions
diff --git a/apps/pack.subx b/apps/pack.subx
index 36ae590b..a72079a7 100644
--- a/apps/pack.subx
+++ b/apps/pack.subx
@@ -55,22 +55,14 @@ Entry:  # run tests if necessary, convert stdin if not
     eb/jump  $subx-pack-main:end/disp8
 $subx-pack-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-pack(Stdin, Stdout, Stderr, ed)
-    # . . push args
-    50/push-eax/ed
-    68/push  Stderr/imm32
+    # subx-pack(Stdin, Stdout)
+    # . . push args
     68/push  Stdout/imm32
     68/push  Stdin/imm32
     # . . call
     e8/call  subx-pack/disp32
     # . . discard args
-    81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               0x10/imm32        # add to esp
+    81          0/subop/add         3/mod/direct    4/rm32/esp    .           .             .           .           .               0x8/imm32         # add to esp
     # syscall(exit, 0)
     bb/copy-to-ebx  0/imm32
 $subx-pack-main:end: