.data .global n .align 4 .type n,@object .size n,40 n: .zero 40 .text .globl main main: movl $3, %eax # 3 for read movl $0, %ebx # 0 for STDIN movl $n, %ecx # string address movl $40, %edx # length int $0x80 movl $4, %eax # 4 for write movl $1, %ebx # 1 for STDOUT movl $n, %ecx # string address movl $40, %edx # length int $0x80 movl $1, %eax # 1 for exit xorl %ebx,%ebx int $0x80 leave ret