diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-18 19:40:59 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-18 19:49:20 +0100 |
| commit | 300eb04e2567a284f23edff7a8eef96bcd267254 (patch) | |
| tree | fb3c5e1a8bfa74613fddfe345a5f765a97de6c88 /include/CompilerKit | |
| parent | bfc06a997671134e7b747557251d2434f8cb8c2e (diff) | |
feat: compiler_kit: improvements on the assembler and linker.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/CompilerKit')
| -rw-r--r-- | include/CompilerKit/Detail/AMD64.h | 6 | ||||
| -rw-r--r-- | include/CompilerKit/Detail/PreConfig.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/CompilerKit/Detail/AMD64.h b/include/CompilerKit/Detail/AMD64.h index f1c0671..449ebd1 100644 --- a/include/CompilerKit/Detail/AMD64.h +++ b/include/CompilerKit/Detail/AMD64.h @@ -48,9 +48,9 @@ inline std::vector<CpuOpcodeAMD64> kOpcodesAMD64 = { CK_ASM_OPCODE("int3", 0xC3) CK_ASM_OPCODE("iret", 0xCF) CK_ASM_OPCODE("retf", 0xCB) CK_ASM_OPCODE("retn", 0xC3) CK_ASM_OPCODE("ret", 0xC3) CK_ASM_OPCODE("sti", 0xfb) CK_ASM_OPCODE("cli", 0xfa) CK_ASM_OPCODE("hlt", 0xf4) CK_ASM_OPCODE("nop", 0x90) - CK_ASM_OPCODE("mov", 0x48) CK_ASM_OPCODE("call", 0xFF) - CK_ASM_OPCODE("syscall", 0x0F) CK_ASM_OPCODE("xor", 0x48) CK_ASM_OPCODE( - "push", kAsmPushOpcode) CK_ASM_OPCODE("pop", kAsmPopOpcode)}; + CK_ASM_OPCODE("mov", 0x48) CK_ASM_OPCODE("call", 0xFF) CK_ASM_OPCODE( + "syscall", 0x0F) CK_ASM_OPCODE("xor", 0x48) CK_ASM_OPCODE("cmp", 0x39) + CK_ASM_OPCODE("push", kAsmPushOpcode) CK_ASM_OPCODE("pop", kAsmPopOpcode)}; #define kAsmRegisterLimit 16 diff --git a/include/CompilerKit/Detail/PreConfig.h b/include/CompilerKit/Detail/PreConfig.h index c581c76..093917d 100644 --- a/include/CompilerKit/Detail/PreConfig.h +++ b/include/CompilerKit/Detail/PreConfig.h @@ -48,8 +48,8 @@ #include <time.h> #include <unistd.h> #include <cassert> -#include <string> #include <fstream> +#include <string> #define ToString(X) Stringify(X) #define Stringify(X) #X |
