Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 28 lines (15 sloc) 0.517 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

        .include "utils.s"

        global_text main

        prepare_stack

        .set offset , 0

        stack_allocate ARGV , 8
        stack_allocate DATA , 8

        mov %rsi , ARGV(%rbp)
        
        mov $1000 , %rdi

        call malloc ; mov %rax , DATA(%rbp)

        set1 $0 , DATA , 0

        mov DATA(%rbp) , %rdi ; ref8 ARGV , 1 , %rsi ; call strcat
        mov DATA(%rbp) , %rdi ; ref8 ARGV , 2 , %rsi ; call strcat

        print_string DATA(%rbp)
        print_nl

        return_integer $0
Something went wrong with that request. Please try again.