Guest User

Untitled

a guest
Oct 16th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. void print_int_nl(long long int i)
  2. {
  3. printf("%lli\n", i);
  4. }
  5.  
  6. ================================
  7.  
  8. .globl main
  9. main:
  10. pushq %rbp
  11. movq %rsp, %rbp
  12. movq $100, %rax
  13. pushq %rax
  14. call print_int_nl
  15. addq $8, %rsp
  16. movq $0, %rax
  17. leave
  18. ret
  19.  
  20. =================================
  21.  
  22. This prints "1", not "100".
Add Comment
Please, Sign In to add comment