Advertisement
Guest User

Untitled

a guest
Apr 24th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. section .data
  2.  
  3. format db '%f'
  4. section .bss
  5. broj resq 1
  6. section .text
  7. global main
  8. extern printf
  9. main:
  10. FLDPI
  11. FST qword [broj]
  12.  
  13.  
  14. mov rdi,format
  15.  
  16. ;align 16
  17. movq xmm0,[broj]
  18.  
  19. sub rsp,8
  20.  
  21. ;number of xmm parameters
  22. mov rax,1
  23. call printf
  24.  
  25. ;segmentation fault
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement