about summary refs log tree commit diff stats
path: root/apps/hex.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-06-10 23:26:53 -0700
committerKartik Agaram <vc@akkartik.com>2020-06-10 23:34:42 -0700
commit80f53f4a18d3121445ee98bf405669676c5e7017 (patch)
treed4c2a2b717c4ffc1a2da55bef334b705ba3a60b7 /apps/hex.subx
parent7dac9ade153d736b7a183d073d83b7a17b22b4cc (diff)
downloadmu-80f53f4a18d3121445ee98bf405669676c5e7017.tar.gz
6508 - support null exit-descriptor
Diffstat (limited to 'apps/hex.subx')
-rw-r--r--apps/hex.subx10
1 files changed, 2 insertions, 8 deletions
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