From 300eb04e2567a284f23edff7a8eef96bcd267254 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 18 Jan 2026 19:40:59 +0100 Subject: feat: compiler_kit: improvements on the assembler and linker. Signed-off-by: Amlal El Mahrouss --- include/CompilerKit/Detail/AMD64.h | 6 +++--- include/CompilerKit/Detail/PreConfig.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'include/CompilerKit') 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 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 #include #include -#include #include +#include #define ToString(X) Stringify(X) #define Stringify(X) #X -- cgit v1.2.3