Skip to content

Instantly share code, notes, and snippets.

@tuttlem
Created November 27, 2012 02:22
Show Gist options
  • Save tuttlem/4151995 to your computer and use it in GitHub Desktop.
Save tuttlem/4151995 to your computer and use it in GitHub Desktop.
Adding 64bit link to C
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