From 5a9795bb661314d658afffd84059cc32e3b3b709 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Fri, 28 Dec 2018 08:56:21 -0800 Subject: 4881 --- subx/052kernel_string_equal.subx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subx/052kernel_string_equal.subx') diff --git a/subx/052kernel_string_equal.subx b/subx/052kernel_string_equal.subx index 7eb7c7af..02284c20 100644 --- a/subx/052kernel_string_equal.subx +++ b/subx/052kernel_string_equal.subx @@ -23,7 +23,7 @@ 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 + b8/copy-to-EAX 1/imm32/exit cd/syscall 0x80/imm8 # compare a null-terminated ascii string with a more idiomatic length-prefixed byte array -- cgit 1.4.1-2-gfad0