Mercurial > repos > blastem
comparison gen_x86.h @ 1840:3d0b20e9a187
Merge
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 18 Apr 2019 19:48:04 -0700 |
parents | 37afb9cf58be |
children | e45a317802bd |
comparison
equal
deleted
inserted
replaced
1838:0c1491818f4b | 1840:3d0b20e9a187 |
---|---|
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 |