diff options
author | Michael Pavone <pavone@retrodev.com> | 2020-04-03 23:47:57 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2020-04-03 23:47:57 -0700 |
commit | f800328d2c7e5e05557e957aea5bb768ff0aa709 (patch) | |
tree | e6707ba2a02bff28a765d52f01e6fd4eff17ec42 | |
parent | 74746f4da558abed6b5f6a000d4e915a0a57d21e (diff) |
Fix bug in in (c) instruction in Z80 dynarec
-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 d447ee3..a175a9e 100644 --- a/z80_to_x86.c +++ b/z80_to_x86.c @@ -2327,7 +2327,7 @@ void translate_z80inst(z80inst * inst, z80_context * context, uint16_t address, if (inst->addr_mode == Z80_IMMED_INDIRECT) { mov_ir(code, inst->immed, opts->gen.scratch1, SZ_B); } else { - zreg_to_native(opts, Z80_C, opts->gen.scratch2); + zreg_to_native(opts, Z80_C, opts->gen.scratch1); } call(code, opts->read_io); if (inst->addr_mode != Z80_IMMED_INDIRECT) { |