diff options
Diffstat (limited to 'src/main.s')
| -rw-r--r-- | src/main.s | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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 |