diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-01-05 11:10:54 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-01-05 11:14:57 +0100 |
| commit | c3b10ee1e28737375d65c3811f390d77a84fc165 (patch) | |
| tree | 898acd05db58943e7b9203232c00445c17ce4836 /dev/LibCompiler/AAL | |
| parent | b6f625090109568d4bfd9f5fc6bc5c88682795b8 (diff) | |
WIP: ARM64 support is coming soon.
WIP: Prototyping ELF linker for ZkaOS.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/LibCompiler/AAL')
| -rw-r--r-- | dev/LibCompiler/AAL/AssemblyInterface.h | 15 | ||||
| -rw-r--r-- | dev/LibCompiler/AAL/CPU/amd64.h | 2 |
2 files changed, 7 insertions, 10 deletions
diff --git a/dev/LibCompiler/AAL/AssemblyInterface.h b/dev/LibCompiler/AAL/AssemblyInterface.h index 6425821..19f768a 100644 --- a/dev/LibCompiler/AAL/AssemblyInterface.h +++ b/dev/LibCompiler/AAL/AssemblyInterface.h @@ -58,14 +58,12 @@ namespace LibCompiler AssemblyInterface* fMounted{nullptr}; }; - union NumberCastBase - { + union NumberCastBase { NumberCastBase() = default; ~NumberCastBase() = default; }; - union NumberCast64 final - { + union NumberCast64 final { NumberCast64() = default; explicit NumberCast64(UInt64 raw) : raw(raw) @@ -81,8 +79,7 @@ namespace LibCompiler UInt64 raw; }; - union NumberCast32 final - { + union NumberCast32 final { NumberCast32() = default; explicit NumberCast32(UInt32 raw) : raw(raw) @@ -98,8 +95,7 @@ namespace LibCompiler UInt32 raw; }; - union NumberCast16 final - { + union NumberCast16 final { NumberCast16() = default; explicit NumberCast16(UInt16 raw) : raw(raw) @@ -115,8 +111,7 @@ namespace LibCompiler UInt16 raw; }; - union NumberCast8 final - { + union NumberCast8 final { NumberCast8() = default; explicit NumberCast8(UInt8 raw) : raw(raw) diff --git a/dev/LibCompiler/AAL/CPU/amd64.h b/dev/LibCompiler/AAL/CPU/amd64.h index 5de8a5a..02f008e 100644 --- a/dev/LibCompiler/AAL/CPU/amd64.h +++ b/dev/LibCompiler/AAL/CPU/amd64.h @@ -18,6 +18,8 @@ typedef uint8_t i64_byte_t; typedef uint16_t i64_hword_t; typedef uint32_t i64_word_t; +#define kAsmRegisterPrefix "r" + struct CpuOpcodeAMD64 { std::string fName; |
