summaryrefslogtreecommitdiffhomepage
path: root/include/CompilerKit
diff options
context:
space:
mode:
Diffstat (limited to 'include/CompilerKit')
-rw-r--r--include/CompilerKit/Detail/AMD64.h6
-rw-r--r--include/CompilerKit/Detail/PreConfig.h2
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