From 9b78134668154cd704a52b65de2a22ce163b8917 Mon Sep 17 00:00:00 2001 From: mithe24 Date: Tue, 28 Oct 2025 00:09:01 +0100 Subject: I can't manually find the error in the output, yet check.py fails --- src/main.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.s') diff --git a/src/main.s b/src/main.s index bad6042..9c04823 100644 --- a/src/main.s +++ b/src/main.s @@ -15,8 +15,8 @@ _start: # Sort movq %rax, %rdi # Select address of array - movq %r15, %rsi # Select length of array - decq %rsi + leaq -1(%r15), %rcx # Select length of array -1 as high + xorq %rsi, %rsi # low = 0 movq $1, %rdx # Sort by key 1 call qsort # Sort the array -- cgit v1.2.3-70-g09d2