Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .section .data
  2.  
  3. string_max = 40
  4. string1: .ascii "Unesite ime i prezime:\0"
  5. str_len1 = . - string1
  6. string2: .fill string_max, 1, 0
  7. string3: .ascii "Vi ste:"
  8. str_len3= . - string3
  9.  
  10. .section .text
  11. .global main
  12.  
  13. main:
  14.  
  15.     movl $4, %eax
  16.     movl $1, %ebx
  17.     leal string1, %ecx
  18.     movl $str_len1, %edx
  19.     int $0x80
  20.  
  21.     movl $3, %eax
  22.     movl $0, %ebx
  23.     leal string2, %ecx
  24.     movl $string_max, %edx
  25.     int $0x80
  26.    
  27.     movl $4, %eax
  28.     movl $1, %ebx
  29.     leal string3, %ecx
  30.     movl $str_len3, %edx
  31.     int $0x80
  32.    
  33.     movl $4, %eax
  34.     movl $1, %ebx
  35.     leal string2, %ecx
  36.     movl $string_max, %edx
  37.     int $0x80
  38.  
  39. kraj:
  40.     movl $1, %eax
  41.     movl $0, %ebx
  42.     int $0x80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement