# HG changeset patch # User Michael Pavone # Date 1585982877 25200 # Node ID 6fdac0108e472957ca30c2828d50331a51820fc3 # Parent b91c35bce3e9d2ee9b07d4735d08e6a16e06086e Fix bug in in (c) instruction in Z80 dynarec diff -r b91c35bce3e9 -r 6fdac0108e47 z80_to_x86.c --- a/z80_to_x86.c Fri Apr 03 23:47:17 2020 -0700 +++ b/z80_to_x86.c Fri Apr 03 23:47:57 2020 -0700 @@ -2327,7 +2327,7 @@ 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) {