Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. %define two 0x4000000000000000
  2.  
  3. section .text
  4.  
  5. foo:
  6.  
  7. push rbp
  8. mov rbp, rsp
  9.  
  10. mov QWORD [rdi], two
  11.  
  12. pop rbp
  13. ret
  14.  
  15. mov r9, 0x4000000000000000
  16. mov [rdi], r9
  17.  
  18. #!/bin/bash
  19. nasm -f elf64 -g -F dwarf vvp_asm.asm -o vvp_asm.o
  20. g++ -c -m64 -std=c++11 main.cpp -o main.o
  21. g++ -o main -m64 vvp_asm.o main.o
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement