summaryrefslogtreecommitdiffhomepage
path: root/dev
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-09-05 19:57:17 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-09-05 19:57:17 +0200
commit16b14fdec07b15e90cb67a6bea98c5cdb66d57ca (patch)
treed0dc83af0c7de1e3108b21dc5103a66a09eb295a /dev
parent71e8cd7f4c32960d56c4c5cdd7a783c0d064dd04 (diff)
Map registers according to ZKA's ABI.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev')
-rw-r--r--dev/NDK/Sources/CPlusPlusCompilerAMD64.cxx18
1 files changed, 9 insertions, 9 deletions
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<std::string> cRegisters = {
/// @brief The PEF calling convention (caller must save rax, rbp)
/// @note callee must return via **rax**.
static std::vector<std::string> cRegistersCall = {
- "rcx",
- "rdx",
"r8",
"r9",
- "xmm8",
- "xmm9",
- "xmm10",
- "xmm11",
+ "r10",
+ "r11",
+ "r12",
+ "r13",
+ "r14",
+ "r15",
};
static size_t kLevelFunction = 0UL;