Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .section .data
- poruka: .ascii "Unesite string:\0"
- br_poruka = . - poruka
- nijep: .ascii "String nije palindrom.\n\0"
- br_nijep = . - nijep
- jestep: .ascii "String je palindrom.\n\0"
- br_jestep = . - jestep
- unos: .fill 50,1,42
- br_unos = . - unos
- .section .text
- .globl main
- main:
- movl $4, %eax #unesite str
- movl $1, %ebx
- leal poruka, %ecx
- movl $br_poruka, %edx
- int $0x80
- movl $3, %eax #unosimo str
- movl $0, %ebx
- leal unos, %ecx
- movl $br_unos, %edx
- int $0x80
- movl %eax, %edi
- kraj:
- movl $1, %eax
- movl $0, %ebx
- int $0x80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement