mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-16 20:17:05 +03:00
[Doc] Fixed documentation of SystemV X86_64 calling convention. (#417)
The first 6 arguments passed on UNIX64 platform is by RDI, RSI, RDX, RCX, R8, R9.
This commit is contained in:
@@ -45,7 +45,7 @@ ASMJIT_BEGIN_SUB_NAMESPACE(x86)
|
||||
//! // Decide between 32-bit CDECL, WIN64, and SysV64 calling conventions:
|
||||
//! // 32-BIT - passed all arguments by stack.
|
||||
//! // WIN64 - passes first 4 arguments by RCX, RDX, R8, and R9.
|
||||
//! // UNIX64 - passes first 6 arguments by RDI, RSI, RCX, RDX, R8, and R9.
|
||||
//! // UNIX64 - passes first 6 arguments by RDI, RSI, RDX, RCX, R8, and R9.
|
||||
//! x86::Gp arr, cnt;
|
||||
//! x86::Gp sum = x86::eax; // Use EAX as 'sum' as it's a return register.
|
||||
//!
|
||||
|
||||
Reference in New Issue
Block a user