Skip to content

Instantly share code, notes, and snippets.

@segrax
Last active August 29, 2015 14:16
Show Gist options
  • Save segrax/273c1c12ccc06c05cf83 to your computer and use it in GitHub Desktop.
Save segrax/273c1c12ccc06c05cf83 to your computer and use it in GitHub Desktop.
x64 CPU Register function call usage
RAX temporary register; with variable arguments passes information about the number of vector registers used; 1st return register
RDI used to pass 1st argument to functions
RSI used to pass 2nd argument to functions
RDX used to pass 3rd argument to functions; 2nd return register
RCX used to pass 4th argument to functions
R8 used to pass 5th argument to functions
R9 used to pass 6th argument to functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment