.lcomm ch 1 .global _start .text _start: movl $1,%edx movl $ch,%ecx pushl %edx pushl %ecx movl $0,%ebx movl $3,%eax int $0x80 popl %ecx popl %edx cmpl $0,%eax jz done cmpb $'\n',ch jz _start movl $1,%ebx movl $4,%eax int $0x80 jmp _start done: movl $1,%eax movl $0,%ebx int $0x80