Mercurial > repos > blastem
diff z80_to_x86.c @ 1840:3d0b20e9a187
Merge
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 18 Apr 2019 19:48:04 -0700 |
parents | 37afb9cf58be |
children | 62166274e6c0 |
line wrap: on
line diff
--- a/z80_to_x86.c Thu Apr 18 19:47:50 2019 -0700 +++ b/z80_to_x86.c Thu Apr 18 19:48:04 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