From 2e39f481369d708cf2c723136c3bf4c765d6c994 Mon Sep 17 00:00:00 2001 From: mithe24 Date: Sun, 26 Oct 2025 15:38:43 +0100 Subject: fix(printing & int2str): Better printing and int to string func --- src/main.s | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/main.s') diff --git a/src/main.s b/src/main.s index 318bb02..196515f 100644 --- a/src/main.s +++ b/src/main.s @@ -19,10 +19,17 @@ _start: movq $1, %rdx # Sort by key 1 call qsort # Sort the array - # Print array + # Convert array to string + # in tsv format movq %rax, %rdi # Select the pointer to the array movq %r15, %rsi # Select length of array - call print_buffer # Print array + call tub2tsv # Print array + + # print string to stdout + movq %rax, %rsi + movq $1, %rax + movq $1, %rdi + syscall # Exit movq $60, %rax -- cgit v1.2.3-70-g09d2