.globl _start .text _start: xorl %esi,%esi movl $int,%eax loop: movl $0,%edx movl $10,%ebx divl %ebx addb $48,%dl pushq %rdx incl %esi cmpb $0,%al jnz loop next: movl $sym,%ecx popq (%rcx) testl %esi,%esi jz exit decl %esi movl $4,%eax movl $1,%ebx movl $2,%edx int $0x80 jmp next exit: movl $1,%eax int $0x80 .data int = 1234 sym: .quad 0x0