Pagini recente » Cod sursa (job #1335236) | Cod sursa (job #1903951) | Cod sursa (job #2731362) | Cod sursa (job #761599) | Cod sursa (job #3184689)
.data
x: .long 0
i: .long 0
j: .long 0
mat: .space 400
formatString: .asciz "%s"
str: .asciz "%ld "
str2: .asciz "niggerslol"
.text
.global main
main:
lea mat, %edi
push $mat
push $formatString
call scanf
popl %ebx
popl %ebx
mov $0, %ebx
L1:
movzbl (%edi, %ebx, 1), %eax
push %eax
push $str
call printf
popl %edx
popl %edx
addl $1, %ebx
cmp $8, %ebx
jne L1
jmp skip
push $mat
push $formatString
call printf
popl %ebx
popl %ebx
skip:
pushl $0
call fflush
popl %ebx
et_exit:
movl $1, %eax
movl $0, %ebx
int $0x80