diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-05-17 15:40:31 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-05-17 15:40:31 -0700 |
commit | fabfa5cb07a4d407146f22afdb5349cdde8016b2 (patch) | |
tree | 55d8d4da3f2f517cdda160c799238ad8027a0055 | |
parent | 247d94aefe4260638e35bc13b006e0b9330c5fe7 (diff) |
Fix crash bug in Z80 interpreter
-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 313a8bb..1f8d477 100644 --- a/z80_to_x86.c +++ b/z80_to_x86.c @@ -1674,7 +1674,7 @@ code_info z80_make_interp_stub(z80_context * context, uint16_t address) call(code, opts->gen.save_context); mov_irdisp(code, address, opts->gen.context_reg, offsetof(z80_context, pc), SZ_W); push_r(code, opts->gen.context_reg); - call_args(code, (code_ptr)z80_interp_handler, 2, opts->gen.scratch1, opts->gen.scratch2); + call_args(code, (code_ptr)z80_interp_handler, 2, opts->gen.scratch1, opts->gen.context_reg); mov_rr(code, RAX, opts->gen.scratch1, SZ_PTR); pop_r(code, opts->gen.context_reg); call(code, opts->gen.load_context); |