Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. .global _func
  2. func:
  3. mov %rdx,%rax
  4. ret
  5.  
  6. .text
  7. .global _func
  8. _func:
  9. mov rax,rdx
  10. ret
  11.  
  12. #include <stdio.h>
  13. void func(void);
  14. int main(int argc, const char * argv[]) {
  15. func();
  16. return 0;
  17. }
  18.  
  19. .intel_syntax noprefix
  20. .text
  21. .global _func
  22. _func:
  23. mov rax,rdx
  24. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement