Created
November 27, 2012 02:22
-
-
Save tuttlem/4151995 to your computer and use it in GitHub Desktop.
Adding 64bit link to C
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global add | |
section .text | |
add: | |
mov rax, rdi ; get the first parameter | |
add rax, rsi ; add the second parameter | |
; leaving the return value in rax | |
ret |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment