Skip to content

Instantly share code, notes, and snippets.

@leveled
Created August 2, 2019 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leveled/b5a6678c4917d4b75b5edcfc07805266 to your computer and use it in GitHub Desktop.
Save leveled/b5a6678c4917d4b75b5edcfc07805266 to your computer and use it in GitHub Desktop.
x86/x86_64 calling conventions
x86 function calls:
parameters pushed last in first
x86 syscalls
eax -syscall number
ebx through ebp are used for parameters
return value is in eax
x86_64 syscalls
The kernel interface uses %rdi, %rsi, %rdx, %r10, %r8 and %r9.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment