Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
1827:c945a25aa75c | 1828:37afb9cf58be |
---|---|
61 } x86_size; | 61 } x86_size; |
62 | 62 |
63 #ifdef X86_64 | 63 #ifdef X86_64 |
64 #define SZ_PTR SZ_Q | 64 #define SZ_PTR SZ_Q |
65 #define MAX_INST_LEN 14 | 65 #define MAX_INST_LEN 14 |
66 #ifdef _WIN32 | |
67 #define FIRST_ARG_REG RCX | |
68 #define SECOND_ARG_REG RDX | |
69 #else | |
70 #define FIRST_ARG_REG RDI | |
71 #define SECOND_ARG_REG RSI | |
72 #endif | |
66 #else | 73 #else |
67 #define SZ_PTR SZ_D | 74 #define SZ_PTR SZ_D |
68 #define MAX_INST_LEN 11 | 75 #define MAX_INST_LEN 11 |
69 #endif | 76 #endif |
70 | 77 |