aboutsummaryrefslogtreecommitdiff
path: root/src/main.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.s')
-rw-r--r--src/main.s11
1 files changed, 9 insertions, 2 deletions
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