about summary refs log tree commit diff stats
path: root/subx/052kernel_string_equal.subx
diff options
context:
space:
mode:
Diffstat (limited to 'subx/052kernel_string_equal.subx')
-rw-r--r--subx/052kernel_string_equal.subx4
1 files changed, 2 insertions, 2 deletions
diff --git a/subx/052kernel_string_equal.subx b/subx/052kernel_string_equal.subx
index e07d2157..21bd9a09 100644
--- a/subx/052kernel_string_equal.subx
+++ b/subx/052kernel_string_equal.subx
@@ -22,8 +22,8 @@
 
 # main:  (manual test if this is the last file loaded)
   e8/call  run_tests/disp32  # 'run_tests' is a function created automatically by SubX. It calls all functions that start with 'test_'.
-  # exit(EAX)
-  89/copy                         3/mod/direct    3/rm32/EBX    .           .             .           0/r32/EAX   .               .                 # copy EAX to EBX
+  # 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                         .               .             .           .             .           .           .               1/imm32           # copy to EAX
   cd/syscall  0x80/imm8