From 16b14fdec07b15e90cb67a6bea98c5cdb66d57ca Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 5 Sep 2024 19:57:17 +0200 Subject: Map registers according to ZKA's ABI. Signed-off-by: Amlal El Mahrouss --- dev/NDK/Sources/CPlusPlusCompilerAMD64.cxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'dev') diff --git a/dev/NDK/Sources/CPlusPlusCompilerAMD64.cxx b/dev/NDK/Sources/CPlusPlusCompilerAMD64.cxx index 86482c1..0ca2fcf 100644 --- a/dev/NDK/Sources/CPlusPlusCompilerAMD64.cxx +++ b/dev/NDK/Sources/CPlusPlusCompilerAMD64.cxx @@ -43,11 +43,11 @@ /// @todo Throw error for scoped inside scoped variables when they get referenced outside. /// @todo Add class/struct/enum support. -///////////////////// +/////////////////////// -// ANSI ESCAPE CODES +// ANSI ESCAPE CODES // -///////////////////// +/////////////////////// #define kBlank "\e[0;30m" #define kRed "\e[0;31m" @@ -181,14 +181,14 @@ static std::vector cRegisters = { /// @brief The PEF calling convention (caller must save rax, rbp) /// @note callee must return via **rax**. static std::vector cRegistersCall = { - "rcx", - "rdx", "r8", "r9", - "xmm8", - "xmm9", - "xmm10", - "xmm11", + "r10", + "r11", + "r12", + "r13", + "r14", + "r15", }; static size_t kLevelFunction = 0UL; -- cgit v1.2.3