about summary refs log tree commit diff stats
path: root/apps/crenshaw2-1.subx
diff options
context:
space:
mode:
Diffstat (limited to 'apps/crenshaw2-1.subx')
-rw-r--r--apps/crenshaw2-1.subx3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/crenshaw2-1.subx b/apps/crenshaw2-1.subx
index 8e20342b..60c1ed5b 100644
--- a/apps/crenshaw2-1.subx
+++ b/apps/crenshaw2-1.subx
@@ -86,8 +86,7 @@ $run-main:
     # syscall(exit, 0)
     bb/copy-to-ebx  0/imm32
 $main:end:
-    b8/copy-to-eax  1/imm32/exit
-    cd/syscall  0x80/imm8
+    e8/call  syscall_exit/disp32
 
 # the main entry point
 compile:  # in: (addr buffered-file), out: fd or (addr stream byte), err: fd or (addr stream byte), ed: (addr exit-descriptor)