Cod sursa(job #3184689)

Utilizator tudorbuhniaTudor Buhnia tudorbuhnia Data 16 decembrie 2023 15:20:52
Problema A+B Scor 0
Compilator c-32 Status done
Runda Arhiva de probleme Marime 0.54 kb
.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