From c1e02dc55845da673fc1b559d8323ee662c487fd Mon Sep 17 00:00:00 2001 From: Xing Guo Date: Fri, 6 Oct 2023 17:06:48 +0800 Subject: [PATCH] [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. --- src/asmjit/x86/x86assembler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asmjit/x86/x86assembler.h b/src/asmjit/x86/x86assembler.h index 4687a21..a533798 100644 --- a/src/asmjit/x86/x86assembler.h +++ b/src/asmjit/x86/x86assembler.h @@ -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. //!