diff options
author | Michael Pavone <pavone@retrodev.com> | 2019-04-07 00:06:29 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2019-04-07 00:06:29 -0700 |
commit | 376bef93cfadf5d0f778ac887500ee8d5d70fbcc (patch) | |
tree | cf003a31f4362bf3484e6bee1608a7ceae0f507b /z80_to_x86.c | |
parent | d8e444e15c16fc80e513c43e99dbb33c30f72a51 (diff) |
Get 64-bit builds working for Windows target
Diffstat (limited to 'z80_to_x86.c')
-rw-r--r-- | z80_to_x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/z80_to_x86.c b/z80_to_x86.c index c263e56..9c77674 100644 --- a/z80_to_x86.c +++ b/z80_to_x86.c @@ -3601,7 +3601,7 @@ void init_z80_opts(z80_options * options, memmap_chunk const * chunks, uint32_t 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 |