Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %include "io64.inc"
- extern scanf
- extern printf
- section .rodata
- fstr db '%ll', 0
- section .bss
- n resq 1
- section .text
- global CMAIN
- CMAIN:
- mov rbp, rsp; for correct debugging
- push rbp
- mov rbp, rsp; for correct debugging
- and rsp, -16
- xor eax, eax
- lea rdi, [fstr]
- lea rsi, [n]
- call scanf
- xor eax, eax
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement