about summary refs log tree commit diff stats
path: root/072slice.subx
diff options
context:
space:
mode:
Diffstat (limited to '072slice.subx')
-rw-r--r--072slice.subx6
1 files changed, 2 insertions, 4 deletions
diff --git a/072slice.subx b/072slice.subx
index b2ff476f..3809f34e 100644
--- a/072slice.subx
+++ b/072slice.subx
@@ -858,8 +858,7 @@ $write-slice:abort:
     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
-    cd/syscall  0x80/imm8
+    e8/call  syscall_exit/disp32
     # never gets here
 
 test-write-slice:
@@ -1123,8 +1122,7 @@ $slice-to-string:abort:
     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
-    cd/syscall  0x80/imm8
+    e8/call  syscall_exit/disp32
     # never gets here
 
 test-slice-to-string: