diff gen_x86.h @ 1828:37afb9cf58be

Get 64-bit builds working for Windows target
author Michael Pavone <pavone@retrodev.com>
date Sun, 07 Apr 2019 00:06:29 -0700
parents 5d41d0574863
children e45a317802bd
line wrap: on
line diff
--- a/gen_x86.h	Sat Apr 06 21:38:11 2019 -0700
+++ b/gen_x86.h	Sun Apr 07 00:06:29 2019 -0700
@@ -63,6 +63,13 @@
 #ifdef X86_64
 #define SZ_PTR SZ_Q
 #define MAX_INST_LEN 14
+#ifdef _WIN32
+#define FIRST_ARG_REG RCX
+#define SECOND_ARG_REG RDX
+#else
+#define FIRST_ARG_REG RDI
+#define SECOND_ARG_REG RSI
+#endif
 #else
 #define SZ_PTR SZ_D
 #define MAX_INST_LEN 11