Mercurial > repos > blastem
diff z80_to_x86.c @ 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 | 8a29c250f352 |
children | 62166274e6c0 |
line wrap: on
line diff
--- a/z80_to_x86.c Sat Apr 06 21:38:11 2019 -0700 +++ b/z80_to_x86.c Sun Apr 07 00:06:29 2019 -0700 @@ -3601,7 +3601,7 @@ tmp_stack_off = code->stack_off; save_callee_save_regs(code); #ifdef X86_64 - mov_rr(code, RDI, options->gen.context_reg, SZ_PTR); + mov_rr(code, FIRST_ARG_REG, options->gen.context_reg, SZ_PTR); #else mov_rdispr(code, RSP, 5 * sizeof(int32_t), options->gen.context_reg, SZ_PTR); #endif