summaryrefslogtreecommitdiff
path: root/z80_to_x86.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2019-04-18 19:48:04 -0700
committerMichael Pavone <pavone@retrodev.com>2019-04-18 19:48:04 -0700
commit2a700065e99ba29857b9f429aa8997af24116760 (patch)
treefbe37eeb5514198f7f31a4ac6923a0a44964a696 /z80_to_x86.c
parentaa41d9724e763de7a64776a7a2c262a5757383f9 (diff)
parent05af6e2720d03b538e64a73a84af1f4c4f8ce762 (diff)
Merge
Diffstat (limited to 'z80_to_x86.c')
-rw-r--r--z80_to_x86.c2
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