Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %define two 0x4000000000000000
- section .text
- foo:
- push rbp
- mov rbp, rsp
- mov QWORD [rdi], two
- pop rbp
- ret
- mov r9, 0x4000000000000000
- mov [rdi], r9
- #!/bin/bash
- nasm -f elf64 -g -F dwarf vvp_asm.asm -o vvp_asm.o
- g++ -c -m64 -std=c++11 main.cpp -o main.o
- g++ -o main -m64 vvp_asm.o main.o
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement