about summary refs log tree commit diff stats
path: root/054string-equal.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-06-10 23:09:30 -0700
committerKartik Agaram <vc@akkartik.com>2020-06-10 23:09:30 -0700
commit7dac9ade153d736b7a183d073d83b7a17b22b4cc (patch)
treef19ba4be87306ae53caa0ba8c61e5202899cee48 /054string-equal.subx
parent72d893b6b1c0dcaea5c4a38dd6fd83fd0569dd79 (diff)
downloadmu-7dac9ade153d736b7a183d073d83b7a17b22b4cc.tar.gz
6507 - use syscall names everywhere
Diffstat (limited to '054string-equal.subx')
-rw-r--r--054string-equal.subx3
1 files changed, 1 insertions, 2 deletions
diff --git a/054string-equal.subx b/054string-equal.subx
index 24d001b0..d193bb2d 100644
--- a/054string-equal.subx
+++ b/054string-equal.subx
@@ -10,8 +10,7 @@ Entry:  # run all tests
     e8/call  run-tests/disp32  # 'run-tests' is a function created automatically by SubX. It calls all functions that start with 'test-'.
     # syscall(exit, Num-test-failures)
     8b/copy                         0/mod/indirect  5/rm32/.disp32            .             .           3/r32/ebx   Num-test-failures/disp32          # copy *Num-test-failures to ebx
-    b8/copy-to-eax  1/imm32/exit
-    cd/syscall  0x80/imm8
+    e8/call  syscall_exit/disp32
 
 string-equal?:  # s: (addr array byte), benchmark: (addr array byte) -> eax: boolean
     # pseudocode: