about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--apps/hex.subx2
-rwxr-xr-xapps/packbin56618 -> 56598 bytes
-rw-r--r--apps/pack.subx14
3 files changed, 4 insertions, 12 deletions
diff --git a/apps/hex.subx b/apps/hex.subx
index 81019840..0fa9f485 100644
--- a/apps/hex.subx
+++ b/apps/hex.subx
@@ -60,7 +60,7 @@ $subx-hex-main:interactive:
     # 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, 1/stdout, 2/stderr, ed)
+    # subx-hex(Stdin, Stdout, Stderr, ed)
     # . . push args
     50/push-eax/ed
     68/push  Stderr/imm32
diff --git a/apps/pack b/apps/pack
index 997c34dd..8f1996bd 100755
--- a/apps/pack
+++ b/apps/pack
Binary files differdiff --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: