Open main menu

CDOT Wiki β

Changes

X86 64 Register and Instruction Quick Start

45 bytes added, 09:41, 18 February 2022
Registers
Usage during [[Syscalls|syscall]]/function call:
* First six arguments are in rdi, rsi, rdx, rcx, r8d, r9d; remaining arguments are on the stack.
* For syscalls, the syscall number is in rax. For procedure calls, rax should be set to 0.
* Return value is in rax.
* The called routine is expected to preserve rsp,rbp, rbx, r12, r13, r14, and r15 but may trample any other registers.